Interactive TeamCity agent for GUI test cases (MsTest-2015)

Hello,

I am having a problem with running my GUI tests through TeamCity. Our applications are based on .NET, and using MSTEST 2015 (Coded UI) to run test cases

If I add the tests to the MSBUILD and then run through TeamCity, all the tests fail and logs showing to run the test agent interactively for this I have started the team city agent as process, this time the tests are able to execute when I ran through teamcity  but it's required me to open the RDP session for the team city agent so that Teamcity can access the desktop to run the GUI test cases. Soon I disconnected the RDP session the test cases are failed to execute.

Is there a way to get around this?


Would using VNC fix my problem? If so, how would I set this up in TeamCity?

I would be very grateful for any help.

Thanks,

0
2 comments
Official comment

Hello,

The case seems to be specific to your build script and OS environment, not that much to TeamCity behavior, so you probably need to figure out a way to run your tests in automated manner so that they pass (e.g. from command line on machine boot) and only then configure them in TeamCity the same way. Usually configuring the agent machine for automatic user logon and running the process on logon helps with this kind of cases. See the related links in the section.

Avatar
Permanently deleted user

Hi,

 

had a similar problem with a gcc compiler build.Try to own the teamcity agent service with a user account instead of local system. If possible the one you used for the rdp session. This fixed all my problems so know i use an dedicated teamcity user account for agents and the server. No problems ever since.

0

Please sign in to leave a comment.