Forum Discussion

ricky's avatar
ricky
Occasional Contributor
8 years ago
Solved

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 for the help.

  • Radford's avatar
    Radford
    8 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.

8 Replies

    • Radford's avatar
      Radford
      Super Contributor

      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.

      • ricky's avatar
        ricky
        Occasional Contributor

        Thanks so much , this helped me !