LogcatCrashResultForwarder
public class LogcatCrashResultForwarder
extends ResultForwarder
Listener speciale: in caso di guasti (crash del processo di strumentazione) tenterà di estrarre dal logcat il crash e di aggiungerlo al messaggio di fallimento associato al test.
Riepilogo
Costanti
MAX_NUMBER_CRASH
public static final int MAX_NUMBER_CRASH
Valore costante: 3 (0x00000003)
Campi
MESSAGGIO DI ERRORE
public static final String ERROR_MESSAGE
Messaggio di errore speciale dalla strumentazione quando qualcosa va storto sul lato del dispositivo.
MESSAGGIO_INCOMPLETO
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
TIMEOUT_MESSAGGI
public static final TIMEOUT_MESSAGES
Costruttori pubblici
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device,
ITestInvocationListener... listeners)
Parametri |
---|
device | ITestDevice |
listeners | ITestInvocationListener |
Metodi pubblici
getDevice
public ITestDevice getDevice ()
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametri |
---|
test | TestDescription |
endTime | long |
testMetrics | |
prova non riuscita
public void testFailed (TestDescription test,
FailureDescription failure)
Parametri |
---|
test | TestDescription |
failure | FailureDescription |
prova non riuscita
public void testFailed (TestDescription test,
String trace)
Parametri |
---|
test | TestDescription |
trace | String |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parametri |
---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription error)
Parametri |
---|
error | FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Parametri |
---|
errorMessage | String |
testAvviato
public void testStarted (TestDescription test,
long startTime)
Parametri |
---|
test | TestDescription |
startTime | long |