SubprocessResultsReporter
public
class
SubprocessResultsReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
| java.lang.Object | |
| ↳ | com.android.tradefed.result.SubprocessResultsReporter |
实现 ITestInvocationListener 以指定为 result_reporter,并从子进程中转发测试、测试运行、测试调用的结果。
摘要
公共构造函数 | |
|---|---|
SubprocessResultsReporter()
|
|
公共方法 | |
|---|---|
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,
|
void
|
testEnded(TestDescription testId,
|
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,
|
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)
|
公共构造函数
SubprocessResultsReporter
public SubprocessResultsReporter ()
公共方法
关闭
public void close ()
getSummary
public TestSummary getSummary ()
| 返回 | |
|---|---|
TestSummary |
|
invocationEnded
public void invocationEnded (long elapsedTime)
| 参数 | |
|---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
| 参数 | |
|---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
| 参数 | |
|---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
| 参数 | |
|---|---|
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
| 参数 | |
|---|---|
dataName |
String |
logFile |
LogFile |
printEvent
public void printEvent (String key,
Object event)用于输出事件键和 JSON 对象的辅助程序。
| 参数 | |
|---|---|
key |
String |
event |
Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
设置是否应输出已记录的测试。
| 参数 | |
|---|---|
outputTestLog |
boolean |
supportGranularResults
public boolean supportGranularResults ()
| 返回 | |
|---|---|
boolean |
|
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId,
String trace)
| 参数 | |
|---|---|
testId |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
| 参数 | |
|---|---|
testId |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription testId,
long endTime,
metrics)
| 参数 | |
|---|---|
testId |
TestDescription |
endTime |
long |
metrics |
|
testEnded
public void testEnded (TestDescription testId,
metrics)
| 参数 | |
|---|---|
testId |
TestDescription |
metrics |
|
testFailed
public void testFailed (TestDescription testId,
FailureDescription failure)
| 参数 | |
|---|---|
testId |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription testId,
String reason)
| 参数 | |
|---|---|
testId |
TestDescription |
reason |
String |
testIgnored
public void testIgnored (TestDescription testId)
| 参数 | |
|---|---|
testId |
TestDescription |
testLog
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
| 参数 | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
| 参数 | |
|---|---|
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long time,
runMetrics)
| 参数 | |
|---|---|
time |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
| 参数 | |
|---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String reason)
| 参数 | |
|---|---|
reason |
String |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
| 参数 | |
|---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
| 参数 | |
|---|---|
runName |
String |
testCount |
int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
| 参数 | |
|---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
testRunStopped
public void testRunStopped (long arg0)
| 参数 | |
|---|---|
arg0 |
long |
testStarted
public void testStarted (TestDescription testId,
long startTime)
| 参数 | |
|---|---|
testId |
TestDescription |
startTime |
long |
testStarted
public void testStarted (TestDescription testId)
| 参数 | |
|---|---|
testId |
TestDescription |