子流程结果报告器
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
对象 |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
器具ITestInvocationListener
被指定为一个result_reporter和向前从所述子过程的测试中,测试运行,测试调用的结果。
概括
公共方法 |
---|
void | close () |
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | logAssociation (String dataName, LogFile logFile) |
void | printEvent (String key, Object event) 帮助打印事件键,然后打印 json 对象。 |
void | setOutputTestLog (boolean outputTestLog) 设置我们是否应该输出记录的测试。 |
boolean | supportGranularResults () |
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
void | testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) |
void | testFailed (TestDescription testId, FailureDescription failure) |
void | testFailed (TestDescription testId, String reason) |
void | testIgnored (TestDescription testId) |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String reason) |
void | testRunStarted (String runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long arg0) |
void | testStarted (TestDescription testId, long startTime) |
void | testStarted (TestDescription testId) |
公共构造函数
子流程结果报告器
public SubprocessResultsReporter ()
公共方法
获取摘要
public TestSummary getSummary ()
调用结束
public void invocationEnded (long elapsedTime)
调用失败
public void invocationFailed (FailureDescription failure)
参数 |
---|
failure | FailureDescription |
调用失败
public void invocationFailed (Throwable cause)
调用开始
public void invocationStarted (IInvocationContext context)
参数 |
---|
context | IInvocationContext |
日志关联
public void logAssociation (String dataName,
LogFile logFile)
参数 |
---|
dataName | String |
logFile | LogFile |
打印事件
public void printEvent (String key,
Object event)
帮助打印事件键,然后打印 json 对象。
参数 |
---|
key | String |
event | Object |
设置输出测试日志
public void setOutputTestLog (boolean outputTestLog)
设置我们是否应该输出记录的测试。
支持粒度结果
public boolean supportGranularResults ()
测试假设失败
public void testAssumptionFailure (TestDescription testId,
String trace)
参数 |
---|
testId | TestDescription |
trace | String |
测试假设失败
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
参数 |
---|
testId | TestDescription |
failure | FailureDescription |
测试结束
public void testEnded (TestDescription testId,
long endTime,
metrics)
参数 |
---|
testId | TestDescription |
endTime | long |
metrics | |
测试结束
public void testEnded (TestDescription testId,
metrics)
参数 |
---|
testId | TestDescription |
metrics | |
测试失败
public void testFailed (TestDescription testId,
FailureDescription failure)
参数 |
---|
testId | TestDescription |
failure | FailureDescription |
测试失败
public void testFailed (TestDescription testId,
String reason)
参数 |
---|
testId | TestDescription |
reason | String |
测试忽略
public void testIgnored (TestDescription testId)
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
参数 |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
测试模块结束
public void testModuleEnded ()
测试模块启动
public void testModuleStarted (IInvocationContext moduleContext)
参数 |
---|
moduleContext | IInvocationContext |
测试运行结束
public void testRunEnded (long time,
runMetrics)
测试运行失败
public void testRunFailed (FailureDescription failure)
参数 |
---|
failure | FailureDescription |
测试运行失败
public void testRunFailed (String reason)
测试运行开始
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
参数 |
---|
runName | String |
testCount | int |
attemptNumber | int |
测试运行开始
public void testRunStarted (String runName,
int testCount)
参数 |
---|
runName | String |
testCount | int |
测试运行开始
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
参数 |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
测试运行停止
public void testRunStopped (long arg0)
测试开始
public void testStarted (TestDescription testId,
long startTime)
参数 |
---|
testId | TestDescription |
startTime | long |
测试开始
public void testStarted (TestDescription testId)