args does not contain debug command line when run from rxtst

Ranorex Studio, Spy, Recorder, and Driver.
lyn5000
Posts: 50
Joined: Mon Feb 13, 2012 5:52 pm

args does not contain debug command line when run from rxtst

Post by lyn5000 » Thu Oct 11, 2012 6:35 pm

When using Ranorex Studio, select the Ranorex assembly exe (generated when making a new Ranorex test suite) that contains the generated Program.cs -> Properties -> Debug -> Add a command line parameter to the Command line box.

When you use the "Run compiled exe" button at the top of Studio (on the toolbar) the command line is used (Program.Main args contains the command line parameter you specified).

However, when you use the Run button in the rxtst, the command line parameter you specified is not used (Program.Main args only contains the "/runconfig" parameter passed from the rxtst. The command line parameter that you added to the assembly is not used as well). Same if you right-click a test case and select "Run Selected test case" (only uses "/testcase").

Obviously I can use "Run compiled exe" button but some people here have encountered this issue when making use of the convenience of running the tests from the rxtst.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: args does not contain debug command line when run from rxtst

Post by Support Team » Mon Oct 15, 2012 9:55 am

Hi,

This is unfortunately a bug, the arguments should be added.
I already added the bug to our internal bug tracking system and it will be fixed in one of the next releases.
Thank you for reporting this bug!

Regards,
Markus
Ranorex Support Team