Trigger multiple tests via Command line arguments

Ask general questions here.
Posts: 7
Joined: Mon May 06, 2019 9:45 am

Trigger multiple tests via Command line arguments

Post by nikolang » Wed Sep 18, 2019 1:39 pm

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


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

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6798
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Trigger multiple tests via Command line arguments

Post by odklizec » Wed Sep 18, 2019 2:06 pm


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: ... 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).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration