org.testng.util
Class RetryAnalyzerCount

java.lang.Object  extended by org.testng.util.RetryAnalyzerCount
All Implemented Interfaces:
IRetryAnalyzer

public abstract class RetryAnalyzerCount
extends Object
implements IRetryAnalyzer

An implementation of IRetryAnalyzer that allows you to specify the maximum number of times you want your test to be retried.

Author:
tocman@gmail.com (Jeremie Lenfant-Engelmann)


Constructor Summary
RetryAnalyzerCount()
           
 
Method Summary
protected  intgetCount()
          Return the current counter value
 booleanretry(ITestResult result)
          Retries the test if count is not 0.
abstract  booleanretryMethod(ITestResult result)
          The method implemented by the class that test if the test must be retried or not.
protected  voidsetCount(int count)
          Set the max number of time the method needs to be retried.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryAnalyzerCount

public RetryAnalyzerCount()
Method Detail

setCount

protected void setCount(int count)
Set the max number of time the method needs to be retried.

Parameters:
count -

getCount

protected int getCount()
Return the current counter value

Returns:

retry

public boolean retry(ITestResult result)
Retries the test if count is not 0.

Specified by:
retry in interface IRetryAnalyzer
Parameters:
result - The result of the test.
Returns:
true if the test method has to be retried, false otherwise.

retryMethod

public abstract boolean retryMethod(ITestResult result)
The method implemented by the class that test if the test must be retried or not.

Parameters:
result - The result of the test.
Returns:
true if the test must be retried, false otherwise.


Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14