List of Testcases - Execute

Ranorex Spy, Recorder, and Studio.
loonquawl
Posts: 64
Joined: Wed Nov 22, 2017 10:08 am

List of Testcases - Execute

Post by loonquawl » Thu Mar 28, 2019 4:13 pm

If anyone has bright ideas on this, it would make me very happy.

We have lists of tests that need to be executed - those lists change a lot, so it's no use making run configurations out of them. I'd need a way to feed this list to a script/batchfile/Ranorex, and have Ranorex execute them together (so they'll end up in the same report) - the tc flag for the commandline just takes one TestCase, if i understand it correctly, and triggering them serially would produce individual reports on every TC - has anybody solved something similar?

McTurtle
Posts: 227
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: List of Testcases - Execute

Post by McTurtle » Fri Mar 29, 2019 1:42 pm

Hi loonquawl,

You could do the following:
1. Have a run configuration with nothing selected.
2. Create a text file with the name of the test cases to be executed and read the file in code.
3. In the setup of the test suite have a code module that enables the test cases that are in the file:

TestSuite.Current.GetTestContainer(Testcasenaam).Checked = true;

Can you manage the code yourself or do your need help?
Would this help?

Regards,
McTurtle

loonquawl
Posts: 64
Joined: Wed Nov 22, 2017 10:08 am

Re: List of Testcases - Execute

Post by loonquawl » Fri Apr 05, 2019 1:59 pm

Should have known this was accessible programatically. Thanks a lot!