1 package test.retryAnalyzer; 2 3 import org.testng.ITestResult; 4 import org.testng.util.RetryAnalyzerCount; 5 6 public class MyRetry extends RetryAnalyzerCount { 7 8 public MyRetry(){ 9 setCount(3); 10 } 11 12 @Override 13 public boolean retryMethod(ITestResult arg0) { 14 // TODO Auto-generated method stub 15 return true; 16 } 17 18 } 19