Creating dynamic list of test cases

Ask general questions here.
Mayra
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Creating dynamic list of test cases

Post by Mayra » Sat Jan 04, 2014 9:50 pm

HI,
Is there a way in ranorex to have test cases have a field, let's say priority defined.
Then somehow from the command line have all test cases with the specific priority execute?
Thanks.

swmatisa
Posts: 122
Joined: Fri Aug 05, 2011 7:52 am

Re: Creating dynamic list of test cases

Post by swmatisa » Mon Jan 06, 2014 8:42 am

SW

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Creating dynamic list of test cases

Post by krstcs » Mon Jan 06, 2014 5:10 pm

You can also use the simpler method of setting up test run configurations in your test suite. Each configuration will contain all of the test cases of the suite, but will only have certain test cases selected ("checked") for running.

You can set up whatever combination of test cases you need for each configuration and then pass the configuration into the command-line when you run the test, or select the configuration from the drop-down if you run the test from the test suite runner or Ranorex Studio.

The configuration is selected from the drop-down list next to the "Run" button on the test suite window. You can also create a new configuration from this list, which will open the configuration editor where you can add/rename/delete configurations. Note that deleting only deletes the configuration of selected test cases, it does not delete the cases, etc.

Just select the configuration you want, then check/un-check the desired test cases.

At the command-line, add the parameter "/rc:<name of your configuration>" after the test .exe. (You can use /rc or /runconfig.)

See this page for information on command line parameters:
http://www.ranorex.com/support/user-gui ... html#c3022
Shortcuts usually aren't...

Mayra
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Re: Creating dynamic list of test cases

Post by Mayra » Tue Jan 07, 2014 4:26 am

Thanks for replying, I will check into the proposed solutions.