Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

结果转发器

public class ResultForwarder
extends Object implements ITestInvocationListener

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


一个ITestInvocationListener ,它将调用结果转发到其他侦听器列表。

摘要

公共建设者

ResultForwarder ( listeners) ResultForwarder ( listeners)

创建一个ResultForwarder

ResultForwarder (ITestInvocationListener... listeners)

ResultForwarder备用变量arg构造ResultForwarder

受保护的构造函数

ResultForwarder ()

使用延迟的侦听器设置创建一个ResultForwarder

公开方法

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount, int attemptNumber)

void testRunStarted (String runName, int testCount)

void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test, long startTime)

void testStarted (TestDescription test)

受保护的方法

getListeners ()

获取侦听器列表。

void setListeners ( listeners) setListeners ( listeners)

构建后设置侦听器。

void setListeners (ITestInvocationListener... listeners)

构建后设置侦听器。

公共建设者

结果转发器

public ResultForwarder ( listeners)

创建一个ResultForwarder

参量
listeners :真正的ITestInvocationListener ,将结果转发到

结果转发器

public ResultForwarder (ITestInvocationListener... listeners)

ResultForwarder备用变量arg构造ResultForwarder

参量
listeners ITestInvocationListener :将结果转发到的实际ITestInvocationListener

受保护的构造函数

结果转发器

protected ResultForwarder ()

使用延迟的侦听器设置创建一个ResultForwarder 。仅供子类使用。

公开方法

getSummary

public TestSummary getSummary ()

退货
TestSummary

调用结束

public void invocationEnded (long elapsedTime)

参量
elapsedTime long

调用失败

public void invocationFailed (FailureDescription failure)

参量
failure FailureDescription

调用失败

public void invocationFailed (Throwable cause)

参量
cause Throwable

调用开始

第643章

参量
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

参量
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

参量
test TestDescription

failure FailureDescription

testEnded

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

参量
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

参量
test TestDescription

testMetrics

测试失败

public void testFailed (TestDescription test, 
                FailureDescription failure)

参量
test TestDescription

failure FailureDescription

测试失败

public void testFailed (TestDescription test, 
                String trace)

参量
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

参量
test TestDescription

测试日志

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

参量
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

参量
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

参量
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

参量
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

参量
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

参量
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

参量
runName String

testCount int

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

参量
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long elapsedTime)

参量
elapsedTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

参量
test TestDescription

startTime long

testStarted

public void testStarted (TestDescription test)

参量
test TestDescription

受保护的方法

getListeners

protected  getListeners ()

获取侦听器列表。仅供子类使用。

退货
ITestInvocationListener的列表。

setListeners

protected void setListeners ( listeners)

构建后设置侦听器。仅供子类使用。

参量
listeners :真正的ITestInvocationListener ,将结果转发到

setListeners

protected void setListeners (ITestInvocationListener... listeners)

构建后设置侦听器。仅供子类使用。

参量
listeners ITestInvocationListener :将结果转发到的实际ITestInvocationListener