01: package org.testng;
02:
03: /**
04: * Interface to implement to be able to have a chance to retry a failed test.
05: *
06: * @author tocman@gmail.com (Jeremie Lenfant-Engelmann)
07: *
08: */
09: 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: */
17: public boolean retry(ITestResult result);
18: }
|