Forum Discussion

go2khurram's avatar
go2khurram
Contributor
9 years ago

Help required to Validate a test from out side of your project

I am new to SoapUI and very beginner to groovy scripting. I am trying to establish a scenario where by using  groovy step I execute another test case outside the project and get  the result to establish that step is passed or not.

 

I have manage to write groovy script to execute a particular step of external test case but don’t know how to get the result of external step to use as assertion of my this step. Also this code I am sharing is able to access a particular external step of my test case , while I am wanted to execute the whole test case and get the result.

 

 

import com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext
myws=testRunner.testCase.testSuite.project.workspace
desireteststep = myws.projects["CurrencyConvertor"].testSuites["TestSuite 1"].testCases["INR_to_USD"].testSteps["USD-to-INR"]
desirecontext = new WsdlTestRunContext(desireteststep)
desireteststep.run(testRunner,desirecontext)

Any help will be highly appriciated. 

Regards,