Package org.testng

Interface IRetryAnalyzer

All Known Implementing Classes:
RetryAnalyzerCount

public interface IRetryAnalyzer
Interface to implement to be able to have a chance to retry a failed test.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the test method has to be retried, false otherwise.
  • Method Details

    • retry

      boolean retry(ITestResult result)
      Returns true if the test method has to be retried, false otherwise.
      Parameters:
      result - The result of the test method that just ran.
      Returns:
      true if the test method has to be retried, false otherwise.