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,
|
void
|
testFailed(TestDescription testId, String trace)
|
void
|
testIgnored(TestDescription test)
|
void
|
testLog(String dataName, LogDataType logData, InputStreamSource dataStream)
|
void
|
testRunEnded(long elapsedTime,
|
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 |
invocationEnded
public void invocationEnded (long elapsedTime)
参数 | |
---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (Throwable cause)
参数 | |
---|---|
cause |
Throwable |
invocationStarted
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 |
|
testFailed
public void testFailed (TestDescription testId, String trace)
参数 | |
---|---|
testId |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
参数 | |
---|---|
test |
TestDescription |
testLog
public void testLog (String dataName, LogDataType logData, InputStreamSource dataStream)
参数 | |
---|---|
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
public void testRunStopped (long elapsedTime)
参数 | |
---|---|
elapsedTime |
long |
testStarted
public void testStarted (TestDescription test)
参数 | |
---|---|
test |
TestDescription |
受保护的方法
getJUnitListener
protected TestListener getJUnitListener ()
返回 | |
---|---|
TestListener |