Forum Discussion
nmrao
9 years agoCommunity Hero
Are you executing the tests using java (api) or using testrunner ?
dspasojevic
9 years agoOccasional Contributor
Hi - using the Java API.
try {
final SoapUIProTestCaseRunner proTestCaseRunner = new SoapUIProTestCaseRunner();
proTestCaseRunner.setEnableUI(false);
...
proTestCaseRunner.run();
}
finally {
SoapUI.shutdown();
}- nmrao9 years agoCommunity HeroNot sure. Never seen "SoapUI.shutdown()" statement.
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.