Forum Discussion
SmartBear_Suppo
Alumni
11 years agoHi,
Try this, Add your testSuite, testCase and testStep name in the code.
Thanks,
Jeshtha
Try this, Add your testSuite, testCase and testStep name in the code.
public void testRunner() throws Exception {
WsdlProjectPro project = new WsdlProjectPro("SoapUIWorkspace/Sample-soapui-project.xml");
TestSuite testSuite = project.getTestSuiteByName(testSuiteName) ;
TestCase testCase =testSuite.getTestCaseByName(testCaseName)
TestStep testStep = testCase.getTestStepByName(stepName)
TestCaseRunner testCaseRunner = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner(testCase, null)
TestCaseRunContext testStepContext = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext(testStep)
testStep.run(testCaseRunner, testStepContext)
}
Thanks,
Jeshtha