Finan
14 years agoFrequent Contributor
[Resolved] Script to run all testSuite.tearDownScripts
Hi,
I have a project which contains multiple testSuites, of which each testSuite has a tearDownScript.
I want to create a groovy script which can run the tearDownScripts of all other testSuites. (See code below)
However, I receive the following error:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.runTearDownScript() is applicable for argument types: () values: [] Possible solutions: runTearDownScript(com.eviware.soapui.model.testsuite.TestSuiteRunContext, com.eviware.soapui.model.testsuite.TestSuiteRunner), getTearDownScript(), setTearDownScript(java.lang.String)
Any idea how to solve this?
I have a project which contains multiple testSuites, of which each testSuite has a tearDownScript.
I want to create a groovy script which can run the tearDownScripts of all other testSuites. (See code below)
However, I receive the following error:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.runTearDownScript() is applicable for argument types: () values: [] Possible solutions: runTearDownScript(com.eviware.soapui.model.testsuite.TestSuiteRunContext, com.eviware.soapui.model.testsuite.TestSuiteRunner), getTearDownScript(), setTearDownScript(java.lang.String)
Any idea how to solve this?
project = testRunner.getTestCase().testSuite.getProject()
count = project.getTestSuiteCount()
log.info count
for( int i = 0; i < count; i++)
{
log.info i;
log.info project.getTestSuiteAt(i).name;
b = project.getTestSuiteAt(i)
b.runTearDownScript();
}