TestRunToTestInvocationForwarder

public class TestRunToTestInvocationForwarder
extends Object implements ITestRunListener

java.lang.Object
   ↳ com.android.tradefed.result.ddmlib.TestRunToTestInvocationForwarder


Forwarder from ddmlib ITestRunListener to ITestLifeCycleReceiver. Interface that ensure the convertion of results from ddmlib interface to Tradefed Interface.

Ddmlib interface is linked to running instrumentation tests.

Summary

Public constructors

TestRunToTestInvocationForwarder(Collection<ITestLifeCycleReceiver> listeners)
TestRunToTestInvocationForwarder(ITestLifeCycleReceiver listener)

Public methods

void testAssumptionFailure(TestIdentifier testId, String trace)
void testEnded(TestIdentifier testId, long endTime, Map<String, String> testMetrics)
void testEnded(TestIdentifier testId, Map<String, String> testMetrics)
void testFailed(TestIdentifier testId, String trace)
void testIgnored(TestIdentifier testId)
void testRunEnded(long elapsedTime, Map<String, String> runMetrics)
void testRunFailed(String failure)
void testRunStarted(String runName, int testCount)
void testRunStopped(long elapsedTime)
void testStarted(TestIdentifier testId)
void testStarted(TestIdentifier testId, long startTime)

Public constructors

TestRunToTestInvocationForwarder

public TestRunToTestInvocationForwarder (Collection<ITestLifeCycleReceiver> listeners)

Parameters
listeners Collection

TestRunToTestInvocationForwarder

public TestRunToTestInvocationForwarder (ITestLifeCycleReceiver listener)

Parameters
listener ITestLifeCycleReceiver

Public methods

testAssumptionFailure

public void testAssumptionFailure (TestIdentifier testId, 
                String trace)

Parameters
testId TestIdentifier

trace String

testEnded

public void testEnded (TestIdentifier testId, 
                long endTime, 
                Map<String, String> testMetrics)

Parameters
testId TestIdentifier

endTime long

testMetrics Map

testEnded

public void testEnded (TestIdentifier testId, 
                Map<String, String> testMetrics)

Parameters
testId TestIdentifier

testMetrics Map

testFailed

public void testFailed (TestIdentifier testId, 
                String trace)

Parameters
testId TestIdentifier

trace String

testIgnored

public void testIgnored (TestIdentifier testId)

Parameters
testId TestIdentifier

testRunEnded

public void testRunEnded (long elapsedTime, 
                Map<String, String> runMetrics)

Parameters
elapsedTime long

runMetrics Map

testRunFailed

public void testRunFailed (String failure)

Parameters
failure String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parameters
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

Parameters
elapsedTime long

testStarted

public void testStarted (TestIdentifier testId)

Parameters
testId TestIdentifier

testStarted

public void testStarted (TestIdentifier testId, 
                long startTime)

Parameters
testId TestIdentifier

startTime long