RE: How to stop TestNG executioner when exception occures?
I have a web driver automation framework using TestNg.
I would like to do some check to see if all the services needed for my tests is running. If it is not running, then I would like the Test Execution to stop and let me know via a message that the services are not up.
My questions is a below
- What’s the best way to force TestNG to stop execution when service is not running.?
- Capture the exception in console when executing programmatically?
Your help is very much needed and appreciated.