Słuchacz wyników testu

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

Obiekt Java.lang.Object
com.android.tradefed.result.TestResultListener


Uproszczenie ITestLifecycleListener dla wdrażających, którym zależy tylko na indywidualnych wynikach testów.

Filtruje różne zdarzenia cyklu życia aż do metody testResult.

NIE jest to bezpieczne dla wątków - w szczególności zakłada, że ​​zdarzenia ITestLifecycleListener są odbierane w kolejności.

Streszczenie

Konstruktorzy publiczni

TestResultListener ()

Metody publiczne

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)

Konstruktorzy publiczni

Słuchacz wyników testu

public TestResultListener ()

Metody publiczne

testZałożenieNiepowodzenie

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Parametry
test TestDescription

trace String

testZakończony

public final void testEnded (TestDescription test, 
                 testMetrics)

Parametry
test TestDescription

testMetrics

testZakończony

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

Parametry
test TestDescription

endTime long

testMetrics

Test nieudany

public final void testFailed (TestDescription test, 
                String trace)

Parametry
test TestDescription

trace String

testIgnorowany

public final void testIgnored (TestDescription test)

Parametry
test TestDescription

wynik testu

public abstract void testResult (TestDescription test, 
                TestResult result)

Parametry
test TestDescription

result TestResult

testRunZakończony

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Parametry
elapsedTimeMillis long

runMetrics

test rozpoczęty

public final void testStarted (TestDescription test, 
                long startTime)

Parametry
test TestDescription

startTime long

test rozpoczęty

public final void testStarted (TestDescription test)

Parametry
test TestDescription