Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
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 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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-08-03 UTC."],[],[]]