Forum Discussion

ricky's avatar
ricky
Occasional Contributor
9 years ago

How do run all testsuites in XML in parallel with groovy ?

Hi, I m looking for a solution to run all my test suites in parallel via groovy or events. As my objective is to limit my test execution time as sequential takes more time.   Thanks in  advance f...
  • Radford's avatar
    Radford
    9 years ago

    If you want to always run your test suites in parallel, add the following code to your project Setup Script

     

    import com.eviware.soapui.model.testsuite.TestSuite
    project.setRunType(TestSuite.TestSuiteRunType.PARALLEL)

     

    Then when ever the project is run it will always run in parallel mode (Note: It looks odd, but it is correct that you use a TestSuite run type to set the Project run type, see here).

     

    A similar thing can be done to make your test cases also run in parralel  by setting the test suite run type.