Stay organized with collections Save and categorize content based on your preferences.

PythonBinaryHostTest.PythonForwarder

public static class PythonBinaryHostTest.PythonForwarder
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.testtype.python.PythonBinaryHostTest.PythonForwarder


Result forwarder to replace the run name by the binary name.

Summary

Public constructors

PythonForwarder(ITestInvocationListener listener, String name)

Ctor with the run name using the binary name.

Public methods

void testRunStarted(String runName, int testCount)

Reports the start of a test run.

void testRunStarted(String runName, int testCount, int attempt, long startTime)

Reports the start of a test run.

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

Reports the start of a test run.

Public constructors

PythonForwarder

public PythonForwarder (ITestInvocationListener listener, 
                String name)

Ctor with the run name using the binary name.

Parameters
listener ITestInvocationListener

name String

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 attempt, 
                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

attempt 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 attempt)

Reports the start of a test run.

Parameters
runName String: the test run name

testCount int: total number of tests in test run

attempt 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.