Forum Discussion
SmartBear_Suppo
10 years agoSmartBear Alumni (Retired)
Hi,
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
Related Content
- 4 years agotradam
- 2 years agoKimdongart1
- 6 years ago678