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.
args does not contain debug command line when run from rxtst
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: args does not contain debug command line when run from rxtst
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
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