Ranorex Studio, Remote Desktop, and Ranorex Agent

Ranorex Spy, Recorder, and Studio.
mvlismas
Posts: 6
Joined: Wed Apr 25, 2018 4:00 pm

Ranorex Studio, Remote Desktop, and Ranorex Agent

Post by mvlismas » Wed Apr 25, 2018 4:11 pm

Here is my scenario.

I have a dual monitor system. On the left monitor I am using Ranorex Studio 8.1. On the right monitor I am using a remote desktop session that is running the Ranorex remote agent. After completing the test on the remote system I want to launch a command window on my local machine (left window) the executes the pskill command to remotely kill the Ranorex agent on the remote system. However with the remote session still open I run the following command:

Code: Select all

Report.Log(ReportLevel.Info, "Application", "Run application 'cmd.exe' with arguments '' in normal mode.", new RecordItemIndex(0));
Host.Local.RunApplication("cmd.exe", "", "C:\\windows\\system32\\", false);
Delay.Milliseconds(0);
But it opens a command window from the remote desktop machine and the pskill command fails. I want to know how to specify that I want to launch a command window from my local machine, NOT the remote machine while the remote desktop is still open?

mvlismas
Posts: 6
Joined: Wed Apr 25, 2018 4:00 pm

Re: Ranorex Studio, Remote Desktop, and Ranorex Agent

Post by mvlismas » Thu Apr 26, 2018 2:30 pm

I figured it out if any body is interested. For that particular cmd window call, I specified the command window from the list in the repository items.