EventsLoggerListener

public class EventsLoggerListener
extends Object implements ILogSaverListener

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


Pendengar yang mencatat semua peristiwa yang diterimanya ke dalam sebuah file

Ringkasan

Konstruktor publik

EventsLoggerListener (String name)

Metode publik

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)

Konstruktor publik

EventsLoggerListener

public EventsLoggerListener (String name)

Parameter
name String

Metode publik

dapatkanLoggedEvents

public File getLoggedEvents ()

Kembali
File

doaBerakhir

public void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

doaGagal

public void invocationFailed (FailureDescription failure)

Parameter
failure FailureDescription

doaDimulai

public void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Parameter
dataName String

logFile LogFile

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

tesBerakhir

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

Parameter
test TestDescription

endTime long

testMetrics

tesGagal

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

tesGagal

public void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

tesIgnored

public void testIgnored (TestDescription test)

Parameter
test TestDescription

testModuleBerakhir

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Parameter
elapsedTimeMillis long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parameter
errorMessage String

tesRunStarted

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

Parameter
runName String

testCount int

attemptNumber int

startTime long

tesDimulai

public void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long