TestResultListener

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

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


Đơn giản hoá ITestLifecycleListener cho những người triển khai chỉ quan tâm đến kết quả kiểm thử cá nhân.

Phương thức này lọc các sự kiện trong vòng đời xuống một phương thức testResult.

Phương thức này 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ự.

Tóm tắt

Hàm khởi tạo công khai

TestResultListener()

Phương thức công khai

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)

Hàm khởi tạo công khai

TestResultListener

public TestResultListener ()

Phương thức công khai

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Tham số
test TestDescription

trace String

testEnded

public final void testEnded (TestDescription test, 
                 testMetrics)

Tham số
test TestDescription

testMetrics

testEnded

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

Tham số
test TestDescription

endTime long

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                String trace)

Tham số
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

Tham số
test TestDescription

testResult

public abstract void testResult (TestDescription test, 
                TestResult result)

Tham số
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Tham số
elapsedTimeMillis long

runMetrics

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

Tham số
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

Tham số
test TestDescription