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

InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

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


侦听ITestInvocationListener事件并将其转发到TestListener

摘要

公共建设者

InvocationToJUnitResultForwarder (TestListener junitListener)

公开方法

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription testId, String trace)
void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription testId, String trace)

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

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test)

受保护的方法

TestListener getJUnitListener ()

公共建设者

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

参量
junitListener TestListener

公开方法

getSummary

public TestSummary getSummary ()

退货
TestSummary

调用结束

public void invocationEnded (long elapsedTime)

参量
elapsedTime long

调用失败

public void invocationFailed (Throwable cause)

参量
cause Throwable

调用开始

public void invocationStarted (IInvocationContext context)

参量
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

参量
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

参量
test TestDescription

testMetrics

测试失败

public void testFailed (TestDescription testId, 
                String trace)

参量
testId TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

参量
test TestDescription

测试日志

31

参量
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

参量
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

参量
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

参量
runName String

testCount int

testRunStopped

1

参量
elapsedTime long

testStarted

public void testStarted (TestDescription test)

参量
test TestDescription

受保护的方法

getJUnitListener

protected TestListener getJUnitListener ()

退货
TestListener