컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.

ResultAggregator

public class ResultAggregator
extends CollectingTestListener

java.lang.객체
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 ()

공개 생성자

ResultAggregator

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

매개변수
listeners

strategy RetryStrategy

공개 메서드

cleanEvents파일

public void cleanEventsFiles ()

forwardAggregatedInvocationLogs

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

testLog저장됨

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[]