How to rerun the failed tests again in TestNG?
● In my TestNG framework, failed tests are reported
in the testng_failed_.xml file in the targetfolder.
● We can add this file in the pom file so that maven
will try to run the failed tests every time.
● If will only run when there are failures in the test.