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

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.

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 Dec 06, 2018 in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,560 views 22 17
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