Forum Discussion

dspasojevic's avatar
dspasojevic
Occasional Contributor
7 years ago

Shutdown Test Case Runner and all ReadyAPI / SoapUI resources after test case completes

Hi,

 

After running a test case using the SoapUIProTestCaseRunner (setEnableUI(false)) it seems that some SoapUI threads are still running. This is after the test has completed and returned a result:

 

2017-06-07 11:43:56,843 [Thread-15] DEBUG com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager - Closing expired connections
2017-06-07 11:43:56,843 [Thread-15] DEBUG com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager - Closing connections idle longer than 30 SECONDS

 

I've tried calling SoapUI.shutdown(), but the threads still continue to run.

 

What is the correct way to shutdown SoapUI completely after a test case has completed?

 

Thanks,

-Dan

8 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Are you executing the tests using java (api) or using testrunner ?
    • dspasojevic's avatar
      dspasojevic
      Occasional Contributor

      Hi - using the Java API.

       

      try {
                  final SoapUIProTestCaseRunner proTestCaseRunner = new SoapUIProTestCaseRunner();
                  proTestCaseRunner.setEnableUI(false);
      
                  ...
      
                  proTestCaseRunner.run();
      }
      finally {
                  SoapUI.shutdown();
      }
      • nmrao's avatar
        nmrao
        Champion Level 3
        Not sure. Never seen "SoapUI.shutdown()" statement.
        Any reason for using this?