sudam_SL
3 years agoContributor
How can we close browser when test fail
Is there any way to close the browser instance when the test case gets failed? (otherwise, it trying to continue the next test case on the same browser instance) i need to start each test with the new browser instance. please help me with this.
Hi sudam_SL
Hope you are well.
We could use an event handler for this, more specifically OnStopTest/OnStopTestCase events.
For the general description of TestComplete events see
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/about.html, https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handl...
There is also a thread about this
KR
Vincent