Forum Discussion

MartinSpamer's avatar
MartinSpamer
Frequent Contributor
13 years ago

Run TestSuite

We have an Test Step that is Run TestCase but no TestStep to Run TestSuites, having both with provide significant enhancement to the way Test Projects where structured.

We can do this easily with the following Groovy, so this is entirely possible.


import com.eviware.soapui.support.types.StringToObjectMap;
def targetTestSuite = "Smoke TestSuite"

log.info "When we execute "+targetTestSuite
project = testRunner.getTestCase().testSuite.getProject()
contextMap = new StringToObjectMap( context )
project.getTestSuiteByName(targetTestSuite).run( contextMap, false )

1 Reply