How can we close browser when test fail
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
Keyword Tests
-
Test Run
-
Web Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks vinniew!
Hi @sudam_SL! Doep the reply help? Please let the Community know.
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @vinniew
Thanks for the reply.
Can we do it with Keyword Test? i'm building my test with Keyword test.
Thanks,
Sudam.
