Trigger the appln on a remote machine using Process.Start

Best practices, code snippets for common functionality, examples, and guidelines.
sherinjab
Posts: 23
Joined: Wed Oct 08, 2014 2:57 pm

Trigger the appln on a remote machine using Process.Start

Post by sherinjab » Wed Sep 09, 2015 11:45 am

Hi,

I'm trying to run my automated Ranorex UI tests through teamcity ,which were created using Visual Studio IDE. I've created the a configuration on teamcity to do the build and run the tests using MSTest. I want these tests to be executed on a remote machine , which I have logged into and also have kept desktop visible to enable user interaction as mentioned in http://www.ranorex.com/support/user-gui ... norex.html

I've also disabled my Teamcity agent service and started it using the command line as mentioned in http://www.ranorex.com/blog/integrating ... ci-process that "To run Ranorex automation on your build agents, you have to make sure not to start them as a windows service since a service does not have sufficient rights to start UI-applications. "

However, the application that I want lo load isn't started and the test fails at the next step where it searches for controls in that application window based on the Rxpath provided.( "No element found for path '/form[@title='Region' and @enabled='True']' within 10s")

I'm using the following line of code to start the application and it works fine on my local machine:

Code: Select all

System.Diagnostics.Process.Start("C:/Windows/System32/intl.cpl");


Could someone please suggest what can I do for the process to start the application on the remote machine?

Thanks,
Sherin.

sherinjab
Posts: 23
Joined: Wed Oct 08, 2014 2:57 pm

Re: Trigger the appln on a remote machine using Process.Start

Post by sherinjab » Wed Sep 09, 2015 2:35 pm

Hi,

I tried to get it working and it now works for me after following the steps mentioned in http://jake.ginnivan.net/teamcity-ui-test-agent/, mainly the one to do the agent start from Startup and after doing a restart of my teamcity agent.

Thanks,
Sherin