Google is committed to advancing racial equity for Black communities. See how.
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

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) 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)

公共建設者

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

測試結果

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