RetryRescheduler

public final class RetryRescheduler
extends Object implements IRemoteTest, IConfigurationReceiver

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.retry.RetryRescheduler


A special runner that allows to reschedule a previous run tests that failed or where not executed.

TODO: Ensure a configuration should not have several of that runner. Consider having this configuration built-in TF.

Summary

Nested classes

enum RetryRescheduler.RetryType

The types of the tests that can be retried. 

Fields

public static final String PREVIOUS_LOADER_NAME

Public constructors

RetryRescheduler()

Public methods

IConfiguration getRetryConfiguration()

Returns the IConfiguration that should be retried.

void run(ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setConfiguration(IConfiguration configuration)

Injects the IConfiguration in use.

void setRescheduler(IRescheduler rescheduler)

Fields

PREVIOUS_LOADER_NAME

public static final String PREVIOUS_LOADER_NAME

Public constructors

RetryRescheduler

public RetryRescheduler ()

Public methods

getRetryConfiguration

public IConfiguration getRetryConfiguration ()

Returns the IConfiguration that should be retried.

Returns
IConfiguration

run

public void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration

setRescheduler

public void setRescheduler (IRescheduler rescheduler)

Parameters
rescheduler IRescheduler