Forum Discussion
EBaethke
13 years agoContributor
I found a way to force parallel processing of all my testCases with TestRunner.bat CLI
Now I can execute a specific TestSuite in 5 seconds (parallel) instead of 45 seconds in sequence.
Create a Groovy Script as the first testStep of your first testCase.
Copy these line into this groovy script:
Be sure to locate this Groovy Script at the top of your test cases.
Reference:
http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/WsdlProject.html
Chris Lessard
Now I can execute a specific TestSuite in 5 seconds (parallel) instead of 45 seconds in sequence.
Create a Groovy Script as the first testStep of your first testCase.
Copy these line into this groovy script:
import com.eviware.soapui.model.testsuite.TestSuite.TestSuiteRunType
log.info testRunner.testCase.testSuite.getRunType()
testRunner.testCase.testSuite.setRunType(TestSuiteRunType.PARALLEL)
assert testRunner.testCase.testSuite.getRunType() == TestSuiteRunType.PARALLEL
Be sure to locate this Groovy Script at the top of your test cases.
TestSuite
TestCase_1
TestStep
ThisGroovyScript
TestCase_2
TestCase_3
...
Reference:
http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/WsdlProject.html
Chris Lessard
Related Content
- 2 years ago
- 4 years ago
- 5 years ago
- 8 years ago
Recent Discussions
- 21 days ago