Page 1 of 1

Code for ranorex class library to invoke remote agent

Posted: Thu Jul 11, 2019 2:08 pm
by sindhu
hi

i created ranorex class library in that i wrote all my test cases, and now i integrated that dll with visual studio project and i am trying to execute the test cases in remote machine.
Now those test cases in my local machine it is working fine. But how to work those in remote machine i am unable to do. i already installed agent in remote machine also.

can any one help??

Re: Code for ranorex class library to invoke remote agent

Posted: Fri Jul 12, 2019 9:58 am
by odklizec
Hi,

I'm not quite sure if there is public API for remote test execution, but you should be able to achieve what you want via command line...
https://www.ranorex.com/help/latest/ran ... norexAgent

Re: Code for ranorex class library to invoke remote agent

Posted: Wed Jul 17, 2019 1:01 pm
by sindhu
hi

Thanks for reply.

through command line i can able to execute ranorex agent and i can run test cases in remote machine. But the same thing i want to do in code (class library).

Application1: from this application 1(Visual Studio) i will send some test cases to Application 2

Application 2: its a ranorex class library project which is having all the test cases script. From this project i want to call ranorex agent.

how ?

Re: Code for ranorex class library to invoke remote agent

Posted: Wed Jul 17, 2019 1:12 pm
by odklizec
Hi,

If I'm not mistaken, there is currently no way (publicly available API) to achieve what you want from code. You can either do it via Ranorex Studio or command line. In other words, if you really want to do it from code, you have to implement command line execution in your test. In my opinion, you are trying to implement something, that would be much easier and much more reasonable to do via continuous integration.