Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 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