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

이벤트 로거 리스너

public class EventsLoggerListener
extends Object implements ILogSaverListener

java.lang.객체
com.android.tradefed.result.EventsLoggerListener


수신한 모든 이벤트를 파일에 기록하는 리스너

요약

공개 생성자

EventsLoggerListener (String name)

공개 메서드

File getLoggedEvents ()
void invocationEnded (long elapsedTime)
void invocationFailed (FailureDescription failure)
void invocationStarted (IInvocationContext context)
void logAssociation (String dataName, LogFile logFile)
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 testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics)
void testRunFailed (FailureDescription failure)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
void testStarted (TestDescription test, long startTime)

공개 생성자

이벤트 로거 리스너

public EventsLoggerListener (String name)

매개변수
name String

공개 메서드

getLogged 이벤트

public File getLoggedEvents ()

보고
File

호출종료

public void invocationEnded (long elapsedTime)

매개변수
elapsedTime long

호출 실패

public void invocationFailed (FailureDescription failure)

매개변수
failure FailureDescription

호출 시작됨

public void invocationStarted (IInvocationContext context)

매개변수
context IInvocationContext

로그 협회

public void logAssociation (String dataName, 
                LogFile logFile)

매개변수
dataName String

logFile LogFile

테스트 가정 실패

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

테스트 모듈 시작됨

public void testModuleStarted (IInvocationContext moduleContext)

매개변수
moduleContext IInvocationContext

테스트 실행 종료

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

매개변수
elapsedTimeMillis long

runMetrics

테스트 실행 실패

public void testRunFailed (FailureDescription failure)

매개변수
failure FailureDescription

테스트 실행 실패

public void testRunFailed (String errorMessage)

매개변수
errorMessage String

테스트 실행 시작됨

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

매개변수
runName String

testCount int

attemptNumber int

startTime long

테스트 시작됨

public void testStarted (TestDescription test, 
                long startTime)

매개변수
test TestDescription

startTime long