Forum Discussion
Hi - using the Java API.
try {
final SoapUIProTestCaseRunner proTestCaseRunner = new SoapUIProTestCaseRunner();
proTestCaseRunner.setEnableUI(false);
...
proTestCaseRunner.run();
}
finally {
SoapUI.shutdown();
}Any reason for using this?
- dspasojevic9 years agoOccasional Contributor
Hi Rao,
I want SoapUI to shutdown after I have finished using it.
When the test case ends, SoapUI is still running (or has left parts of its connection pool running).
I don't really care about how it is done - SoapUI.shutdown() seemed like a reasonable candidate.
What is the correct way to shutdown SoapUI and all the threads it has spawned after the test case ends?
Thanks,
-Dan
- nmrao9 years agoCommunity HeroReferring to documentation where that particular statement (shutdown)is not seen. Where did you find that example?
https://www.soapui.org/test-automation/junit/junit-integration.html
Test case runner will end once the test cases are finished, and this is my understanding.- dspasojevic9 years agoOccasional Contributor
Hi Rao,
As I mentioned in my first post, SoapUI does not completely shutdown when the test case has completed. At the very least, the connection pool threads are still running.
Do you see those threads still running when the test case has completed?
Do you know how to shutdown those connection pool threads (and whatever other bits of SoapUI are still running)?
Thanks,
-Dan