Forum Discussion

Apitesting's avatar
Senior Member
7 years ago

Running a testcase from Project Setup Script

I am looking to run all my test cases in parallel but prior to execution I need to create members for which i have create a Test case and would like to call that test case from Project Setup. but as testRunner is not available there my test kept throwing error:

groovy.lang.MissingMethodException: No signature of method: is applicable for argument types: (, java.lang.Boolean) values: [, ...] Possible solutions: run(com.eviware.soapui.model.testsuite.TestCaseRunner, com.eviware.soapui.model.testsuite.TestCaseRunContext), find(), dump(), any(), grep(), wait()

I tried same code as a step , it works fine but from setup script it fails. Is it something wrong here.




import com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner
def properties = new () "Starting project execution"
def scripts = project.testSuites["GroovyLibrary"]; 
//com.eviware.soapui.model.testsuite.TestCaseRunner, com.eviware.soapui.model.testsuite.TestCaseRunContext
def trunner = new WsdlTestSuiteRunner(scripts, new StringToObjectMap())
//scripts.testCases["GroovyAutomationLibrary"].testSteps["APILibrary"].runSetupScript(trunner.getRunContext(), trunner)
def apilib=scripts.testCases["GroovyAutomationLibrary"].testSteps["APILibrary"], false);


No RepliesBe the first to reply