Unfortunately i haven't had time to investigate thoroughly but my simple IRetryAnalyzer implementation now retries forever from this version to current (6.8.14 works fine). I suspect it might have something to do with
. I tried to look through the code but its a little cryptic to fresh eyes.
I haven't spotted any other comments of anyone else seeing this so i thought i would post here to see if this is common knowledge.
public class RetryAnalyzer implements IRetryAnalyzer {
private int retryCount = 0;
private int maxRetryCount;
private static int maxRetryCountInitializer = 2;
public static void setMaxRetryCountInitializer(int maxRetryCount) {
RetryAnalyzer.maxRetryCountInitializer = maxRetryCount;
}
public RetryAnalyzer() {
this.retryCount = 0;
this.maxRetryCount = maxRetryCountInitializer;
}
@Override
public boolean retry(ITestResult result) {
if (hasRetriesRemaining()) {
retryCount++;
return true;
}
return false;
}
private boolean hasRetriesRemaining() {
return (retryCount < this.maxRetryCount);
}
}