Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created April 11, 2024 07:57
Show Gist options
  • Save SarahElson/44286bec0ab5cb3ef08f9bf613eb33fc to your computer and use it in GitHub Desktop.
Save SarahElson/44286bec0ab5cb3ef08f9bf613eb33fc to your computer and use it in GitHub Desktop.
How To Retry Failed Tests Using IRetryAnalyzer In TestNG
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="LambdaTest ecommerce playground website test suite ">
<test name="Search Product tests ">
<parameter name="browser" value="remote_chrome_lambdatest"/>
<classes>
<class name="io.github.mfaisalkhatri.tests.retrytests.RetryFailedTests">
<methods>
<include name="testSearchProduct"/>
<include name="testNavigationToLoginPage"/>
</methods>
</class>
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment