EventsLoggerListener

public class EventsLoggerListener
extends Object implements ILogSaverListener

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


Écouteur qui enregistre tous les événements qu'il reçoit dans un fichier

Résumé

Constructeurs publics

EventsLoggerListener (String name)

Méthodes publiques

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)

Constructeurs publics

EventsLoggerListener

public EventsLoggerListener (String name)

Paramètres
name String

Méthodes publiques

getLoggedEvents

public File getLoggedEvents ()

Retour
File

invocationFin

public void invocationEnded (long elapsedTime)

Paramètres
elapsedTime long

échec de l'appel

public void invocationFailed (FailureDescription failure)

Paramètres
failure FailureDescription

invocationDémarrée

public void invocationStarted (IInvocationContext context)

Paramètres
context IInvocationContext

journalAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Paramètres
dataName String

logFile LogFile

testhypothèseéchec

public void testAssumptionFailure (TestDescription test, 
                String trace)

Paramètres
test TestDescription

trace String

testhypothèseéchec

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Paramètres
test TestDescription

failure FailureDescription

testFin

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

Paramètres
test TestDescription

endTime long

testMetrics

test échoué

public void testFailed (TestDescription test, 
                FailureDescription failure)

Paramètres
test TestDescription

failure FailureDescription

test échoué

public void testFailed (TestDescription test, 
                String trace)

Paramètres
test TestDescription

trace String

testIgnoré

public void testIgnored (TestDescription test)

Paramètres
test TestDescription

testModuleFin

public void testModuleEnded ()

testModuleDémarré

public void testModuleStarted (IInvocationContext moduleContext)

Paramètres
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Paramètres
elapsedTimeMillis long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Paramètres
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Paramètres
errorMessage String

testRunStarted

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

Paramètres
runName String

testCount int

attemptNumber int

startTime long

testDémarré

public void testStarted (TestDescription test, 
                long startTime)

Paramètres
test TestDescription

startTime long