cancel
Showing results for 
Search instead for 
Did you mean: 

Soapui lib run from an app won't stop

Highlighted
New Contributor

Soapui lib run from an app won't stop

Hi,

I'm trying to run a test case using the soapui-4.5.1 lib run from a java application. I have the following code:

WsdlProject project = new WsdlProject("path/projectName-soapui-project.xml");
WsdlTestSuite testSuite = project.getTestSuiteByName("TestSuite");
WsdlTestCase testCase = testSuite.getTestCaseByName("TestClass");
TestCaseRunner runner = new WsdlTestCaseRunner(testCase, new StringToObjectMap());
runner.start(false);

The test case runs successfully, but on completion the thread hangs and won't end. What am I missing here? I've tried using release() on all levels and that doesn't work.

Thanks,

Jason
3 REPLIES 3
Super Contributor

Why don't you use the test case runner?
see


SoapUITestCaseRunner runner = new SoapUITestCaseRunner("My soapui runner");
runner.setProjectFile(projectFile);
runner.setTestSuite(testSuite);
runner.setTestCase(testCase);
runner.run();
Highlighted
New Contributor

I have the same issue with SoapUITestCaseRunner. I used the WsdlTestCaseRunner because I have better access to the response message body through the getResults() method.
Highlighted
Occasional Contributor

Hello,

Same here, did you resolve it?

 

Thank you!

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors