Forum Discussion

ankush's avatar
ankush
Occasional Contributor
5 years ago

Tear down script at project level does not get executed when execution is done from java code

I have a testSuites tear down script  at project level .

 

 

I am executing my code from java as below:

 

SoapUITestCaseRunner testCaseRunner = new SoapUITestCaseRunner();

testCaseRunner.setProjectFile(path);

testCaseRunner.run();

 

The execution happens but the tearDownscript at project level does not get executed.

 

Is there any solution to this ?

or a workaround to explicitly invoke the project level teardown scripts from soap ui api using java?

 

--I can move my script to individual suite teardowns but i am also capturing projetc level execution details

so as a workaround is it possible to get the project level runner from testSuite Level to get details like timeTaken and Status etc at project level?