During the test execution, the test cases may fail and that is inevitable. We have to rerun the failed test cases to verify whether its a temporary failure or not. There are three ways we can rerun the failed test cases.
1. We can run testng-failed.xml manually.
2. Using IRetryAnalyzer Interface we can rerun the failed test cases automatically.
3. Using IAnnotationTransformer also we can rerun the failed test cases automatically.
#TestNG #InterviewQuestions #RerunFailedTests #LearnAutomationOnline
Best way to reach me (replies will be faster): YouTube comment section
Also, you can follow me on Facebook and Instagram.
Facebook: https://bit.ly/2TqPlis
Instagram: https://bit.ly/2Ez36rH