Trình nghe kết quả kiểm tra

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

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


Đơn giản hóa ITestLifecycleListener dành cho những người triển khai chỉ quan tâm đến kết quả kiểm tra riêng lẻ.

Nó lọc các sự kiện vòng đời khác nhau thành phương thức testResult.

Nó KHÔNG an toàn cho luồng - và đặc biệt giả định rằng các sự kiện ITestLifecycleListener được nhận theo thứ tự.

Bản tóm tắt

Nhà thầu xây dựng công cộng

TestResultListener ()

Phương pháp công khai

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)

Nhà thầu xây dựng công cộng

Trình nghe kết quả kiểm tra

public TestResultListener ()

Phương pháp công khai

kiểm traGiả địnhThất bại

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

kiểm traĐã kết thúc

public final void testEnded (TestDescription test, 
                 testMetrics)

Thông số
test TestDescription

testMetrics

kiểm traĐã kết thúc

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

Thông số
test TestDescription

endTime long

testMetrics

thử nghiệm thất bại

public final void testFailed (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

kiểm traBỏ qua

public final void testIgnored (TestDescription test)

Thông số
test TestDescription

kết quả kiểm tra

public abstract void testResult (TestDescription test, 
                TestResult result)

Thông số
test TestDescription

result TestResult

thử nghiệmChạyĐã kết thúc

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Thông số
elapsedTimeMillis long

runMetrics

thử nghiệmBắt đầu

public final void testStarted (TestDescription test, 
                long startTime)

Thông số
test TestDescription

startTime long

thử nghiệmBắt đầu

public final void testStarted (TestDescription test)

Thông số
test TestDescription