RetryStrategy

public final enum RetryStrategy
extends Enum<RetryStrategy>

java.lang.Object
   ↳ java.lang.Enum<com.android.tradefed.retry.RetryStrategy>
     ↳ com.android.tradefed.retry.RetryStrategy


The Retry Strategy to be used when re-running some tests.

Summary

Enum values

RetryStrategy  ITERATIONS

Rerun all the tests for the number of attempts specified. 

RetryStrategy  NO_RETRY

Do not attempt any retry 

RetryStrategy  RERUN_UNTIL_FAILURE

Rerun all the tests until the max count is reached or a failure occurs whichever come first. 

RetryStrategy  RETRY_ANY_FAILURE

Rerun all the test run and test cases failures until passed or the max number of attempts specified. 

Public methods

static RetryStrategy valueOf(String name)
static final RetryStrategy[] values()

Enum values

ITERATIONS

public static final RetryStrategy ITERATIONS

Rerun all the tests for the number of attempts specified.

NO_RETRY

public static final RetryStrategy NO_RETRY

Do not attempt any retry

RERUN_UNTIL_FAILURE

public static final RetryStrategy RERUN_UNTIL_FAILURE

Rerun all the tests until the max count is reached or a failure occurs whichever come first.

RETRY_ANY_FAILURE

public static final RetryStrategy RETRY_ANY_FAILURE

Rerun all the test run and test cases failures until passed or the max number of attempts specified. Test run failures are rerun in priority (a.k.a. if a run failure and a test case failure occur, the run failure is rerun).

Public methods

valueOf

public static RetryStrategy valueOf (String name)

Parameters
name String

Returns
RetryStrategy

values

public static final RetryStrategy[] values ()

Returns
RetryStrategy[]