TestResultListener

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

java.lang.Object의 클래스
   ↳ com.android.tradefed.result.TestResultListener의 클래스


개별 테스트에만 관심이 있는 구현자를 위해 ITestLifecycleListener를 간소화했습니다. 있습니다.

다양한 수명 주기 이벤트를 testResult 메서드로 필터링합니다.

스레드로부터 안전하지 않으며 특히 ITestLifecycleListener 이벤트가 순서대로 받습니다.

요약

공개 생성자

TestResultListener()

공개 메서드

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)

공개 생성자

TestResultListener

public TestResultListener ()

공개 메서드

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

testEnded

public final void testEnded (TestDescription test, 
                 testMetrics)

매개변수
test TestDescription

testMetrics

testEnded

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

매개변수
test TestDescription

endTime long

testMetrics

테스트 실패

public final void testFailed (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

매개변수
test TestDescription

testResult

public abstract void testResult (TestDescription test, 
                TestResult result)

매개변수
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

매개변수
elapsedTimeMillis long

runMetrics

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

매개변수
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

매개변수
test TestDescription