RetryResultForwarder

public class RetryResultForwarder
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.result.RetryResultForwarder


An Extension of ResultForwarder that always push to a given attempt number.

Summary

Public constructors

RetryResultForwarder(int attemptNumber, ITestInvocationListener... listeners)

Public methods

void testRunStarted(String runName, int testCount)

Reports the start of a test run.

void testRunStarted(String runName, int testCount, int attemptNumber)

Reports the start of a test run.

Public constructors

RetryResultForwarder

public RetryResultForwarder (int attemptNumber, 
                ITestInvocationListener... listeners)

Parameters
attemptNumber int

listeners ITestInvocationListener

Public methods

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)

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.