Forum Discussion
astafev
13 years agoOccasional Contributor
In MockService you can use variable mockRunner to get to WsdlProject, than use it.
Sorry, but i don't have more time to extend this example...
Or, you can use Apache HttpClient v4.1 right from groovy script (i think so, i only saw that classes are available) if you don't want to work with TestSuites).
import com.eviware.soapui.impl.wsdl.*
WsdlProject proj = mockRunner.getMockService().getProject();
for(WsdlTestSuite suite : proj.getTestSuiteList())
{
log.info(suite.getLabel())
//use this runner
com.eviware.soapui.model.testsuite.TestSuiteRunner runner = suite.run((com.eviware.soapui.support.types.StringToObjectMap)context, true)
log.info(runner.getClass())
}
Sorry, but i don't have more time to extend this example...
Or, you can use Apache HttpClient v4.1 right from groovy script (i think so, i only saw that classes are available) if you don't want to work with TestSuites).