Pendengar Hasil Tes
public abstract class TestResultListener
extends Object
implements ITestLifeCycleReceiver
java.lang.Objek |
↳ | com.android.tradefed.result.TestResultListener |
Subkelas langsung yang diketahui |
Penyederhanaan ITestLifecycleListener untuk pelaksana yang hanya peduli pada hasil pengujian individual.
Ini memfilter berbagai peristiwa siklus hidup ke metode testResult.
Ini TIDAK aman untuk thread - dan khususnya mengasumsikan bahwa peristiwa ITestLifecycleListener diterima secara berurutan.
Ringkasan
Metode publik |
---|
final void | testAssumptionFailure (TestDescription test, String trace) |
final void | testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics) |
final void | testEnded (TestDescription test, long endTime, testMetrics) 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) testRunEnded (long elapsedTimeMillis, runMetrics) |
final void | testStarted (TestDescription test, long startTime) |
final void | testStarted (TestDescription test) |
Konstruktor publik
Pendengar Hasil Tes
public TestResultListener ()
Metode publik
testAssumptionFailure
public final void testAssumptionFailure (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
tesBerakhir
public final void testEnded (TestDescription test,
testMetrics)
Parameter |
---|
test | TestDescription |
testMetrics | |
tesBerakhir
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
Parameter |
---|
test | TestDescription |
endTime | long |
testMetrics | |
tesGagal
public final void testFailed (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
tesIgnored
public final void testIgnored (TestDescription test)
Parameter |
---|
test | TestDescription |
hasil tes
public abstract void testResult (TestDescription test,
TestResult result)
Parameter |
---|
test | TestDescription |
result | TestResult |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
runMetrics)
Parameter |
---|
elapsedTimeMillis | long |
runMetrics | |
tesDimulai
public final void testStarted (TestDescription test,
long startTime)
Parameter |
---|
test | TestDescription |
startTime | long |
tesDimulai
public final void testStarted (TestDescription test)
Parameter |
---|
test | TestDescription |