Page 1 of 1

Trigger multiple tests via Command line arguments

Posted: Wed Sep 18, 2019 1:39 pm
by nikolang
I am trying to trigger multiple tests from Jenkins that I want to set in the "Command line arguments" Field in Jenkins (Run a Ranorex test suite/Advanced)

I tried

/tc:XXXxxx

and it works but I can only select one test with this method. How can I pass what tests ranorex should run from Jenkins?

Re: Trigger multiple tests via Command line arguments

Posted: Wed Sep 18, 2019 2:06 pm
by odklizec
Hi,

If you want to run multiple test cases, you must specify them in separate command lines, like this:
test.exe /tc: testcaseA
test.exe /tc: testcaseB
test.exe /tc: testcaseC
...
Ranorex command line currently does not support multiple test cases in one command line. Only the last one specified in command line is executed. For more details about selective run of tests, check this user guide section:
https://www.ranorex.com/help/latest/ran ... ivetestrun

I would personally suggest to implement multiple run configurations, where each run configuration keeps list of test cases you want to run (e.g. smoke_test, full _test,etc...). And then in command line simply specify, which run configuration should be used (using /rc: RunConfigName parameter).