TestResultListener
public abstract class TestResultListener
extends Object
implements ITestLifeCycleReceiver
java.lang.Object |
↳ | com.android.tradefed.result.TestResultListener |
Subkelas langsung yang diketahui |
Penyederhanaan ITestLifecycleListener untuk pelaksana yang hanya memperhatikan hasil pengujian individual.
Ini memfilter berbagai peristiwa siklus hidup hingga ke metode testResult.
Ini BUKAN thread safe - dan secara khusus 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
TestResultListener
public TestResultListener ()
Metode publik
testAssumptionFailure
public final void testAssumptionFailure (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
testEnded
public final void testEnded (TestDescription test,
testMetrics)
.dll
Parameter |
---|
test | TestDescription |
testMetrics | |
testEnded
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
Parameter |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testFailed
public final void testFailed (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
testIgnored
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 | |
testStarted
public final void testStarted (TestDescription test,
long startTime)
Parameter |
---|
test | TestDescription |
startTime | long |
testStarted
public final void testStarted (TestDescription test)
Parameter |
---|
test | TestDescription |