SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.객체 |
↳ | 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) |
공개 생성자
SubprocessResultsReporter
public SubprocessResultsReporter ()
공개 메서드
getSummary
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 |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
기록된 테스트를 출력할지 여부를 설정합니다.
매개변수 |
---|
outputTestLog | boolean |
지원 세분화된 결과
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)
매개변수 |
---|
testId | TestDescription |
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)
매개변수 |
---|
time | long |
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)
매개변수 |
---|
testId | TestDescription |