Google is committed to advancing racial equity for Black communities. See how.

TestResultListener

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

java.lang.Object
   ↳ com.android.tradefed.result.TestResultListener


A simplification of ITestLifecycleListener for implementers that only care about individual test results.

It filters the various lifecycle events down to a testResult method.

It is NOT thread safe - and in particular assumes that the ITestLifecycleListener events are received in order.

Summary

Public constructors

TestResultListener()

Public methods

final void testAssumptionFailure(TestDescription test, String trace)
final void testEnded(TestDescription test, testMetrics)
final void testEnded(TestDescription test, long endTime, testMetrics)
final void testFailed(TestDescription test, String trace)
final void testIgnored(TestDescription test)
abstract void testResult(TestDescription test, TestResult result)
void testRunEnded(long elapsedTimeMillis, runMetrics)
final void testStarted(TestDescription test, long startTime)
final void testStarted(TestDescription test)

Public constructors

TestResultListener

public TestResultListener ()

Public methods

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Parameters
test TestDescription

trace String

testEnded

public final void testEnded (TestDescription test, 
                 testMetrics)

Parameters
test TestDescription

testMetrics

testEnded

public final void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Parameters
test TestDescription

endTime long

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                String trace)

Parameters
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

Parameters
test TestDescription

testResult

public abstract void testResult (TestDescription test, 
                TestResult result)

Parameters
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Parameters
elapsedTimeMillis long

runMetrics

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

Parameters
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

Parameters
test TestDescription