LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.result.LogcatCrashResultForwarder


Objeto de escucha especial: En caso de fallas (falla del proceso de instrumentación), intentará extraer la falla de logcat y agregarla al mensaje de falla asociado con la prueba.

Resumen

Constantes

int MAX_NUMBER_CRASH

Campos

public static final String ERROR_MESSAGE

Es un mensaje de error especial de la instrumentación cuando se produce un error en el dispositivo.

public static final String INCOMPLETE_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

public static final TIMEOUT_MESSAGES

Constructores públicos

LogcatCrashResultForwarder(ITestDevice device, ITestInvocationListener... listeners)

Métodos públicos

ITestDevice getDevice()
void testEnded(TestDescription test, long endTime, testMetrics)

void testFailed(TestDescription test, FailureDescription failure)

void testFailed(TestDescription test, String trace)

void testRunEnded(long elapsedTime, runMetrics)

void testRunFailed(FailureDescription error)

void testRunFailed(String errorMessage)

void testStarted(TestDescription test, long startTime)

Constantes

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Valor constante: 3 (0x00000003)

Campos

ERROR_MESSAGE

public static final String ERROR_MESSAGE

Es un mensaje de error especial de la instrumentación cuando se produce un error en el 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 ()

Muestra
ITestDevice

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