EventsLoggerListener

public class EventsLoggerListener
extends Object implements ILogSaverListener

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


Ouvinte que registra todos os eventos que recebe em um arquivo

Resumo

Construtores públicos

EventsLoggerListener (String name)

Métodos públicos

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)

Construtores públicos

EventsLoggerListener

public EventsLoggerListener (String name)

Parâmetros
name String

Métodos públicos

getLoggedEvents

public File getLoggedEvents ()

Devoluções
File

invocaçãoEnded

public void invocationEnded (long elapsedTime)

Parâmetros
elapsedTime long

invocaçãoFailed

public void invocationFailed (FailureDescription failure)

Parâmetros
failure FailureDescription

invocaçãoiniciada

public void invocationStarted (IInvocationContext context)

Parâmetros
context IInvocationContext

logAssociação

public void logAssociation (String dataName, 
                LogFile logFile)

Parâmetros
dataName String

logFile LogFile

testeAssunçãoFalha

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parâmetros
test TestDescription

trace String

testeAssunçãoFalha

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parâmetros
test TestDescription

failure FailureDescription

teste finalizado

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

Parâmetros
test TestDescription

endTime long

testMetrics

teste falhou

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parâmetros
test TestDescription

failure FailureDescription

teste falhou

public void testFailed (TestDescription test, 
                String trace)

Parâmetros
test TestDescription

trace String

testeIgnorado

public void testIgnored (TestDescription test)

Parâmetros
test TestDescription

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parâmetros
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Parâmetros
elapsedTimeMillis long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parâmetros
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parâmetros
errorMessage String

testRunStarted

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

Parâmetros
runName String

testCount int

attemptNumber int

startTime long

teste iniciado

public void testStarted (TestDescription test, 
                long startTime)

Parâmetros
test TestDescription

startTime long