调用到JUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.InitationToJUnitResultForwarder |
已知的直接子类文本结果报告器 | 将结果转发到 JUnit 文本结果打印机的测试结果报告器。 |
|
侦听ITestInvocationListener
事件并将其转发到TestListener
类。
概括
公共构造函数
调用到JUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
参数 |
---|
junitListener | TestListener |
公共方法
获取摘要
public TestSummary getSummary ()
调用结束
public void invocationEnded (long elapsedTime)
调用失败
public void invocationFailed (Throwable cause)
调用开始
public void invocationStarted (IInvocationContext context)
参数 |
---|
context | IInvocationContext |
测试假设失败
public void testAssumptionFailure (TestDescription testId,
String trace)
参数 |
---|
testId | TestDescription |
trace | String |
测试结束
public void testEnded (TestDescription test,
testMetrics)
参数 |
---|
test | TestDescription |
testMetrics | |
测试失败
public void testFailed (TestDescription testId,
String trace)
参数 |
---|
testId | TestDescription |
trace | String |
测试被忽略
public void testIgnored (TestDescription test)
public void testLog (String dataName,
LogDataType logData,
InputStreamSource dataStream)
参数 |
---|
dataName | String |
logData | LogDataType |
dataStream | InputStreamSource |
测试运行结束
public void testRunEnded (long elapsedTime,
runMetrics)
参数 |
---|
elapsedTime | long |
runMetrics | |
测试运行失败
public void testRunFailed (String errorMessage)
测试运行开始
public void testRunStarted (String runName,
int testCount)
参数 |
---|
runName | String |
testCount | int |
测试运行停止
public void testRunStopped (long elapsedTime)
测试开始
public void testStarted (TestDescription test)
受保护的方法
获取JUnitListener
protected TestListener getJUnitListener ()