Execute failed test cases using TestNG in Selenium – By using “testng-failed.xml”
Steps to follow:
if some of your TestNG scripts fail, we can adopt following steps to re-execute only failed tests.
1. Open the “”test-output” folder and look for “testng-failed.xml” (which is generated only to capture failed test methods details)
2. Run “testng-failed.xml” to execute the failed test cases again.