Forum Discussion

jaysmith's avatar
jaysmith
New Contributor
11 years ago

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

  • redfish4ktc2's avatar
    redfish4ktc2
    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();
  • jaysmith's avatar
    jaysmith
    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.
    • mblel's avatar
      mblel
      Occasional Contributor

      Hello,

      Same here, did you resolve it?

       

      Thank you!