하위 프로세스결과보고자

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
com.android.tradefed.result.SubprocessResultsReporter


result_reporter로 지정될 ITestInvocationListener 구현하고 하위 프로세스에서 테스트 결과, 테스트 실행, 테스트 호출을 전달합니다.

요약

공개 생성자

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, 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 void close ()

getSummary

public TestSummary getSummary ()

보고
TestSummary

호출종료됨

public void invocationEnded (long elapsedTime)

매개변수
elapsedTime long

호출 실패

public void invocationFailed (FailureDescription failure)

매개변수
failure FailureDescription

호출 실패

public void invocationFailed (Throwable cause)

매개변수
cause Throwable

호출시작됨

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 ()

보고
boolean

테스트가정실패

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)

매개변수
reason String

테스트실행시작됨

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)

매개변수
arg0 long

테스트시작됨

public void testStarted (TestDescription testId, 
                long startTime)

매개변수
testId TestDescription

startTime long

테스트시작됨

public void testStarted (TestDescription testId)

매개변수
testId TestDescription