LogcatCrashResultForwarder
public class LogcatCrashResultForwarder
extends ResultForwarder
Oyente especial: ante fallas (falla del proceso de instrumentación) intentará extraer del logcat la falla y la agregará al mensaje de falla asociado con la prueba.
Resumen
Constantes
MAX_NUMBER_CRASH
public static final int MAX_NUMBER_CRASH
Valor constante: 3 (0x00000003)
Los campos
MENSAJE DE ERROR
public static final String ERROR_MESSAGE
Mensaje de error especial de la instrumentación cuando algo sale mal en el lado del dispositivo.
INCOMPLETE_MESSAGE
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
TIMEOUT_MESSAGES
public static final TIMEOUT_MESSAGES
Constructores públicos
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device,
ITestInvocationListener... listeners)
Parámetros |
---|
device | ITestDevice |
listeners | ITestInvocationListener |
Métodos públicos
getDevice
public ITestDevice getDevice ()
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parámetros |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testFailed
public void testFailed (TestDescription test,
FailureDescription failure)
Parámetros |
---|
test | TestDescription |
failure | FailureDescription |
testFailed
public void testFailed (TestDescription test,
String trace)
Parámetros |
---|
test | TestDescription |
trace | String |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parámetros |
---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription error)
Parámetros |
---|
error | FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Parámetros |
---|
errorMessage | String |
testStarted
public void testStarted (TestDescription test,
long startTime)
Parámetros |
---|
test | TestDescription |
startTime | long |