TestResultListener

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

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


Es una simplificación de ITestLifecycleListener para los implementadores que solo se preocupan por los resultados de las pruebas individuales.

Filtra los diversos eventos del ciclo de vida hasta un método testResult.

NO es seguro para subprocesos y, en particular, supone que los eventos ITestLifecycleListener se reciben en orden.

Resumen

Constructores públicos

TestResultListener()

Métodos públicos

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)

Constructores públicos

TestResultListener

public TestResultListener ()

Métodos públicos

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

testEnded

public final void testEnded (TestDescription test, 
                 testMetrics)

Parámetros
test TestDescription

testMetrics

testEnded

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

Parámetros
test TestDescription

endTime long

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

Parámetros
test TestDescription

testResult

public abstract void testResult (TestDescription test, 
                TestResult result)

Parámetros
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Parámetros
elapsedTimeMillis long

runMetrics

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

Parámetros
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

Parámetros
test TestDescription