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 |