Odbiornik zdarzeńLogger
public class EventsLoggerListener
extends Object
implements ILogSaverListener
Obiekt Java.lang.Object |
↳ | com.android.tradefed.result.EventsLoggerListener |
Listener, który rejestruje wszystkie otrzymane zdarzenia w pliku
Streszczenie
Metody publiczne |
---|
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) |
Konstruktorzy publiczni
Odbiornik zdarzeńLogger
public EventsLoggerListener (String name)
Metody publiczne
getLoggedEvents
public File getLoggedEvents ()
wywołanieZakończone
public void invocationEnded (long elapsedTime)
Parametry |
---|
elapsedTime | long |
wywołanie nie powiodło się
public void invocationFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
wywołanieRozpoczęte
public void invocationStarted (IInvocationContext context)
Parametry |
---|
context | IInvocationContext |
stowarzyszenie log
public void logAssociation (String dataName,
LogFile logFile)
Parametry |
---|
dataName | String |
logFile | LogFile |
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription test,
String trace)
Parametry |
---|
test | TestDescription |
trace | String |
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Parametry |
---|
test | TestDescription |
failure | FailureDescription |
testZakończony
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametry |
---|
test | TestDescription |
endTime | long |
testMetrics | |
Test nieudany
public void testFailed (TestDescription test,
FailureDescription failure)
Parametry |
---|
test | TestDescription |
failure | FailureDescription |
Test nieudany
public void testFailed (TestDescription test,
String trace)
Parametry |
---|
test | TestDescription |
trace | String |
testIgnorowany
public void testIgnored (TestDescription test)
Parametry |
---|
test | TestDescription |
moduł testowyZakończony
public void testModuleEnded ()
Uruchomiono moduł testowy
public void testModuleStarted (IInvocationContext moduleContext)
Parametry |
---|
moduleContext | IInvocationContext |
testRunZakończony
public void testRunEnded (long elapsedTimeMillis,
runMetrics)
Parametry |
---|
elapsedTimeMillis | long |
runMetrics | |
testRun nie powiódł się
public void testRunFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
testRun nie powiódł się
public void testRunFailed (String errorMessage)
Parametry |
---|
errorMessage | String |
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Parametry |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
test rozpoczęty
public void testStarted (TestDescription test,
long startTime)
Parametry |
---|
test | TestDescription |
startTime | long |