TestResultListener

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

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


Penyederhanaan ITestLifecycleListener untuk implementer yang hanya memperhatikan setiap hasil pengujian.

Metode ini memfilter berbagai peristiwa siklus proses hingga ke metode testResult.

Ini TIDAK aman untuk thread - dan khususnya mengasumsikan bahwa peristiwa ITestLifecycleListener diterima secara berurutan.

Ringkasan

Konstruktor publik

TestResultListener()

Metode publik

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)

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)

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

testResult

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