Run test setup locally then run rest of the test remotely

Best practices, code snippets for common functionality, examples, and guidelines.
CWhiting
Posts: 6
Joined: Thu Mar 08, 2018 9:32 pm

Run test setup locally then run rest of the test remotely

Post by CWhiting » Wed Jun 06, 2018 3:17 pm

I have the need to run tests on a remote VM. The Ranorex agent can run the tests remotely. I need to do some initialization of the database locally before running remotely. How do I as part of a smart folder run tests locally then remotely then finally locally to do the cleanup?

My tests are coded in C#. I could use the API but it is unclear how to execute tests remotely via the agent and the API.

User avatar
RobinHood42
Posts: 238
Joined: Fri Jan 09, 2015 3:24 pm

Re: Run test setup locally then run rest of the test remotely

Post by RobinHood42 » Thu Jun 07, 2018 9:25 am

Hi CWhiting,
How do I as part of a smart folder run tests locally then remotely then finally locally to do the cleanup?
I'm afraid that this scenario can't be tested. You would at least need two or even three separate tests. The initial test or automation to setup your DB, the 2nd one, which runs remotely on your agent and the final test again on your local machine. Also, there is definitely no way to synchronize those tests just using Ranorex.

Cheers,
Robin :mrgreen: