Coded UI Tests on Bamboo On-Demand

I'm using Visual Studio 2013 to create Coded UI Tests and would like to get them running with Bamboo On-Demand. Note that I don't use TFS (Team Foundation Server).
I have tried using the 'MS Test Runner' and calling MsTest.exe and vstest.command.exe directly. With each one I get this error "To run tests that interact with the desktop, you must set up the test agent to run as an interactive process."
I can remote desktop into the elastic image and successfully run the tests from the command prompt. It just seems to be an issue when the tests are ran from a build plan. Presumably because mstest doesn't run as an interactive process. But as far as I can see you can't just make an executable run in interactive mode. A service perhaps.

Has anyone been able to get Coded UI Tests running from a build plan? If so have you any ideas as to where I'm going wrong? I know there is such a thing as the Microsoft Test Agent but this is a TFS thing I think and can't be called from the command line?

 

2 answers

This widget could not be displayed.

We're using the Telerik Test Framework, running MSTest, and have Bamboo locally (not on-demand) but this may help. For Windows, any version past Server 2003, the service must run as the Local System Account and have "Allow service to interact with desktop"  selected. Prior and including 2003, you could select a similar feature but for any user. You will likely need to restart the service as well.

Capture.PNG

Thanks for the advice. However, it doesn't look like bamboo on-demand makes that particular service accessible to the end user. Most of the infrastructure is managed by Atlassian themselves and the VM that I get to customise is just a temporary workspace for the builds.

This widget could not be displayed.

If you look at the documentation for creating a custom elastic image (windows) there are some expandable sections that include the information required to allow desktop interaction.

The documentation is available here:

https://confluence.atlassian.com/display/BAMBOOCLOUD/Creating+a+custom+elastic+image+-+Windows 

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked yesterday in Data Center

Hi! I'm Cameron Deatsch, enterprise enthusiast and Head of Server at Atlassian. AMA!

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. At our European Summit just a few weeks ago, I spoke about the latest regarding our Server and Data center products and o...

19,251 views 4 4
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you