Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created April 11, 2024 08:04
Show Gist options
  • Select an option

  • Save SarahElson/9b1379931a44e303bd5e4a94add9e79a to your computer and use it in GitHub Desktop.

Select an option

Save SarahElson/9b1379931a44e303bd5e4a94add9e79a 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 ">
<listeners>
<listener class-name="io.github.mfaisalkhatri.listeners.RetryListener"/>
</listeners>
<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