public abstract class RetryAnalyzerCount extends java.lang.Object implements IRetryAnalyzer
Constructor and Description |
---|
RetryAnalyzerCount() |
Modifier and Type | Method and Description |
---|---|
protected int |
getCount()
Return the current counter value
|
boolean |
retry(ITestResult result)
Retries the test if count is not 0.
|
abstract boolean |
retryMethod(ITestResult result)
The method implemented by the class that test if the test
must be retried or not.
|
protected void |
setCount(int count)
Set the max number of time the method needs to be retried.
|
protected void setCount(int count)
protected int getCount()
public boolean retry(ITestResult result)
retry
in interface IRetryAnalyzer
result
- The result of the test.public abstract boolean retryMethod(ITestResult result)
result
- The result of the test.