Forum Discussion

adelabarra's avatar
adelabarra
New Contributor
13 years ago

How to run multiple TestSuites with testrunner ?

Is there a way to specify which TestSuites to run with testrunner in the command line?

For example, something along the lines of:

./testrunner.bat -sSuite1 -Suite2 ....

OR

./testrunner.bat -sSuite* .... (as a regular expression)

If not, is there any way to do so with a load script or anything similar?

Thank you.

5 Replies

  • adelabarra's avatar
    adelabarra
    New Contributor
    remove -s (that means don't specify one) then can run all test suites in project


    I need to run multiple testSuites but not all of them. Just a subset of ones that share a similar name.
    • tcea's avatar
      tcea
      New Contributor

      Hi!

       

      I have the same trouble here.

       

      I would like to run several test suites but not all of them within the same project.

      Same scenario at the test case level would be, running just a group of test cases within a test suite, and not all of them.

       

      Usually testing frameworks allow this functionalities, so I think it would be a nice to have.

      • nmrao's avatar
        nmrao
        Champion Level 3
        Cab be done by writing a groovy or java program.

        So, that you can all the suites in one go. See #2 in the below link.
        https://www.soapui.org/test-automation/junit/junit-integration.html


        If you do not prefer the above way, then
        you already know how to run a suite using testrunner. Run it multiple times with different suitename. If you do not want to call multiple times manually, put all the commands into a batch script and you are done.
  • Aaronliu's avatar
    Aaronliu
    Frequent Contributor
    remove -s (that means don't specify one) then can run all test suites in project