1 package org.testng; 2 3 /** 4 * Interface to implement to be able to have a chance to retry a failed test. 5 * 6 * @author tocman@gmail.com (Jeremie Lenfant-Engelmann) 7 * 8 */ 9 public interface IRetryAnalyzer { 10 11 /** 12 * Returns true if the test method has to be retried, false otherwise. 13 * 14 * @param result The result of the test method that just ran. 15 * @return true if the test method has to be retried, false otherwise. 16 */ retry(ITestResult result)17 public boolean retry(ITestResult result); 18 } 19