RetryLogSaverResultForwarder
public
class
RetryLogSaverResultForwarder
extends LogSaverResultForwarder
| java.lang.Object | |||
| ↳ | com.android.tradefed.result.ResultForwarder | ||
| ↳ | com.android.tradefed.result.LogSaverResultForwarder | ||
| ↳ | com.android.tradefed.retry.RetryLogSaverResultForwarder | ||
Forwarder that also handles passing the current attempt we are at.
Summary
Public constructors | |
|---|---|
RetryLogSaverResultForwarder(ILogSaver logSaver,
|
|
Public methods | |
|---|---|
void
|
incrementAttempt()
Increment the attempt number. |
void
|
testRunStarted(String runName, int testCount)
Reports the start of a test run. |
void
|
testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
Reports the start of a test run. |
void
|
testRunStarted(String runName, int testCount, int attemptNumber)
Reports the start of a test run. |
Public constructors
RetryLogSaverResultForwarder
public RetryLogSaverResultForwarder (ILogSaver logSaver,listeners, IConfiguration config)
| Parameters | |
|---|---|
logSaver |
ILogSaver |
listeners |
|
config |
IConfiguration |
Public methods
incrementAttempt
public void incrementAttempt ()
Increment the attempt number.
testRunStarted
public void testRunStarted (String runName,
int testCount)Reports the start of a test run.
| Parameters | |
|---|---|
runName |
String: the test run name |
testCount |
int: total number of tests in test run |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)Reports the start of a test run.
| Parameters | |
|---|---|
runName |
String: the test run name |
testCount |
int: total number of tests in test run |
attemptNumber |
int: order number, identifying the different attempts of the same runName
that run multiple times. The attemptNumber is 0-indexed and should increment everytime a
new run happens. e.g. A test is granular retried 3 times, it should have 4 total runs
under the same runName and the attemptNumber is from 0 to 3. |
startTime |
long: the time the run started, measured via System.currentTimeMillis() |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)Reports the start of a test run.
| Parameters | |
|---|---|
runName |
String: the test run name |
testCount |
int: total number of tests in test run |
attemptNumber |
int: order number, identifying the different attempts of the same runName
that run multiple times. The attemptNumber is 0-indexed and should increment everytime
a new run happens. e.g. A test is granular retried 3 times, it should have 4 total
runs under the same runName and the attemptNumber is from 0 to 3. |