I have run into a problem while writing JUnittest cases for an automation project i have been handed over for a few weeks. Will try to give you as much details as possible, if i miss anything let me know. Here goes:
1. The testing involves 6 test suites each test suite has around 8 test cases.
2. The test suites are executed via ant.
The Junit test cases mostly include Selenium to automate web browser validations.
The issue i am facing is:
When one of the major validations in one of the test case fails, lets say in the 4th test case, it should stop executing the remaining of the test suite and skip over to the next test suite. Is there any way of achieving this?