Sự kiệnLoggerListener

public class EventsLoggerListener
extends Object implements ILogSaverListener

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


Trình nghe ghi lại tất cả các sự kiện mà nó nhận được vào một tệp

Bản tóm tắt

Nhà thầu xây dựng công cộng

EventsLoggerListener (String name)

Phương pháp công khai

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)

Nhà thầu xây dựng công cộng

Sự kiệnLoggerListener

public EventsLoggerListener (String name)

Thông số
name String

Phương pháp công khai

sự kiện getLogged

public File getLoggedEvents ()

Trả lại
File

lời mờiĐã kết thúc

public void invocationEnded (long elapsedTime)

Thông số
elapsedTime long

lời gọi không thành công

public void invocationFailed (FailureDescription failure)

Thông số
failure FailureDescription

lời gọiBắt đầu

public void invocationStarted (IInvocationContext context)

Thông số
context IInvocationContext

logHiệp hội

public void logAssociation (String dataName, 
                LogFile logFile)

Thông số
dataName String

logFile LogFile

kiểm traGiả địnhThất bại

public void testAssumptionFailure (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

kiểm traGiả địnhThất bại

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Thông số
test TestDescription

failure FailureDescription

kiểm traĐã kết thúc

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

Thông số
test TestDescription

endTime long

testMetrics

thử nghiệm thất bại

public void testFailed (TestDescription test, 
                FailureDescription failure)

Thông số
test TestDescription

failure FailureDescription

thử nghiệm thất bại

public void testFailed (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

kiểm traBỏ qua

public void testIgnored (TestDescription test)

Thông số
test TestDescription

testModuleĐã kết thúc

public void testModuleEnded ()

testModuleBắt đầu

public void testModuleStarted (IInvocationContext moduleContext)

Thông số
moduleContext IInvocationContext

thử nghiệmChạyĐã kết thúc

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Thông số
elapsedTimeMillis long

runMetrics

thử nghiệm Chạy không thành công

public void testRunFailed (FailureDescription failure)

Thông số
failure FailureDescription

thử nghiệm Chạy không thành công

public void testRunFailed (String errorMessage)

Thông số
errorMessage String

thử nghiệmChạyBắt đầu

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

Thông số
runName String

testCount int

attemptNumber int

startTime long

thử nghiệmBắt đầu

public void testStarted (TestDescription test, 
                long startTime)

Thông số
test TestDescription

startTime long