EventsLoggerListener

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)

Общественные конструкторы

EventsLoggerListener

public EventsLoggerListener (String name)

Параметры
name String

Публичные методы

getLoggedEvents

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

logAssociation

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

testEnded

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

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Параметры
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Параметры
elapsedTimeMillis long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Параметры
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Параметры
errorMessage String

testRunStarted

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