Team Foundation Server Custom build controller for selenium tests

I am currently using Team Hosted Build Server. I have this setting with my cloud cloud service, so when I make a code change, the built-in build controller will create my changes and then the changes will be deployed to the staging environment in the cloud service. During build I also have a set of automated tests that run using NUnit.

All this works fine until the Selenium tests begin. Since IE and firefox are not deployed to the build server of the built TFS server, my tests fail. Currently, the TFS build assembly server is a VM image developed by Microsoft.

Is there an easy way to assign a custom virtual machine image that browsers will have, so that I can run these automated tests every time I check for code changes? Or, when a hosted assembly server is created, automatically install browsers so that they are available for testing?

Thanks!

Twilly

+4
source share
1 answer

I ended up working with the controllers of the newly built TFS assembly, since you cannot configure them.

I managed to create an azure virtual machine with a Windows 2012 server installed on it. I installed a TFS server and was able to link my TFS account with my built-in TFS build controller.

Since I use azure VM, I can configure it, so I was able to download all my browsers, install the Selenium IE driver and make the builds work.

I am still working on how to automate the launch of the virtual machine and reset it when it is not in use, so I do not charge for the computing hours when it is not in use, but it's nice to always support it so that it can automatically build after registering the code .

+2
source

All Articles