InvocationToJUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder |
偵聽ITestInvocationListener
事件並將其轉發到TestListener
。
概要
公共建設者
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
參量 |
---|
junitListener | TestListener |
公開方法
getSummary
public TestSummary getSummary ()
調用結束
public void invocationEnded (long elapsedTime)
調用失敗
public void invocationFailed (Throwable cause)
調用開始
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)
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)
testRunStarted
public void testRunStarted (String runName,
int testCount)
參量 |
---|
runName | String |
testCount | int |
testRunStopped
public void testRunStopped (long elapsedTime)
testStarted
public void testStarted (TestDescription test)
受保護的方法
getJUnitListener
protected TestListener getJUnitListener ()