하위 프로세스결과보고자
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
알려진 직접 서브클래스 레거시 하위 프로세스결과보고자 | 상위 클래스의 변경에도 불구하고 이전 버전의 TF/CTS(예: 8+)와 호환성을 유지해야 하는 하위 프로세스 결과 보고자의 고정 구현입니다. |
|
result_reporter로 지정될 ITestInvocationListener
구현하고 하위 프로세스에서 테스트 결과, 테스트 실행, 테스트 호출을 전달합니다.
요약
공개 메소드 |
---|
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 ()
공개 메소드
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 |