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 |