결과 수집자

public class ResultAggregator
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.retry.ResultAggregator


수행된 재시도 전략에 따라 필요할 때 결과를 집계하는 특수 전달자입니다.

요약

공개 생성자

ResultAggregator ( listeners, RetryStrategy strategy) ResultAggregator ( listeners, RetryStrategy strategy)

공개 메소드

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

세부적인 결과를 지원하지 않는 결과 보고자에게 모든 호출 수준 로그를 전달합니다.

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void setLogSaver (ILogSaver logSaver)

void setUpdatedReporting (boolean updatedReporting)

새로운 보고를 설정합니다.

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)
void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String name, int testCount, int attemptNumber, long startTime)

void testStarted (TestDescription test, long startTime)

보호된 방법

File[] getEventsLogs ()

공개 생성자

결과 수집자

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

매개변수
listeners

strategy RetryStrategy

공개 메소드

cleanEvents파일

public void cleanEventsFiles ()

앞으로 AggregatedInvocationLogs

public final void forwardAggregatedInvocationLogs ()

세부적인 결과를 지원하지 않는 결과 보고자에게 모든 호출 수준 로그를 전달합니다.

호출종료됨

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

setLogSaver

public void setLogSaver (ILogSaver logSaver)

매개변수
logSaver ILogSaver

setUpdated보고

public void setUpdatedReporting (boolean updatedReporting)

새로운 보고를 설정합니다.

매개변수
updatedReporting boolean

테스트가정실패

public void testAssumptionFailure (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

테스트가정실패

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

매개변수
test TestDescription

failure FailureDescription

테스트 종료됨

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

매개변수
test TestDescription

endTime long

testMetrics

테스트 실패

public void testFailed (TestDescription test, 
                FailureDescription failure)

매개변수
test TestDescription

failure FailureDescription

테스트 실패

public void testFailed (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

테스트는 무시됨

public void testIgnored (TestDescription test)

매개변수
test TestDescription

테스트로그

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

매개변수
dataName String

dataType LogDataType

dataStream InputStreamSource

테스트로그저장됨

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

매개변수
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

테스트모듈종료됨

public void testModuleEnded ()

테스트모듈시작됨

public void testModuleStarted (IInvocationContext moduleContext)

매개변수
moduleContext IInvocationContext

테스트실행이 종료됨

public void testRunEnded (long elapsedTime, 
                 runMetrics)

매개변수
elapsedTime long

runMetrics

테스트실행실패

public void testRunFailed (FailureDescription failure)

매개변수
failure FailureDescription

테스트실행실패

public void testRunFailed (String errorMessage)

매개변수
errorMessage String

테스트실행시작됨

public void testRunStarted (String name, 
                int testCount, 
                int attemptNumber, 
                long startTime)

매개변수
name String

testCount int

attemptNumber int

startTime long

테스트시작됨

public void testStarted (TestDescription test, 
                long startTime)

매개변수
test TestDescription

startTime long

보호된 방법

getEventsLogs

protected File[] getEventsLogs ()

보고
File[]