mkliba
15 years agoOccasional Contributor
How to run two Test Cases in parallel using a groovy
Hi:
Imagine I have a test suite TS with 3 TC's, TC, TC1 and TC2. In TC I'd like to write a groovy that launch both TC's, TC1 and TC2 in parallel. When both TC's execution are finished, I'd like to run a second groovy on TC. I have been trying on the lauch groovy with:
def properties = new com.eviware.soapui.support.types.StringToObjectMap()
testRunner.testCase.testSuite.project.testSuites["TS"].testCases["TC1"].run(properties,false)
testRunner.testCase.testSuite.project.testSuites["TS"].testCases["TC2"].run(properties,false)
But this run TC1 first, wait for it to finish and then run TC2. Then the second groovy is executed.
Is there any way I can ensure both, TC1 and TC2 are launch at the same time and when they finished continue with the next groovy step?
thanks in advance,
Michel
Imagine I have a test suite TS with 3 TC's, TC, TC1 and TC2. In TC I'd like to write a groovy that launch both TC's, TC1 and TC2 in parallel. When both TC's execution are finished, I'd like to run a second groovy on TC. I have been trying on the lauch groovy with:
def properties = new com.eviware.soapui.support.types.StringToObjectMap()
testRunner.testCase.testSuite.project.testSuites["TS"].testCases["TC1"].run(properties,false)
testRunner.testCase.testSuite.project.testSuites["TS"].testCases["TC2"].run(properties,false)
But this run TC1 first, wait for it to finish and then run TC2. Then the second groovy is executed.
Is there any way I can ensure both, TC1 and TC2 are launch at the same time and when they finished continue with the next groovy step?
thanks in advance,
Michel