Google is committed to advancing racial equity for Black communities. See how.
Se usó la API de Cloud Translation para traducir esta página.
Switch to English

LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

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


Oyente especial: en 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

int MAX_NUMBER_CRASH

Campos

public static final String ERROR_MESSAGE

Mensaje de error especial de la instrumentación cuando algo sale mal en el lado del dispositivo.

public static final String SYSTEM_CRASH_MESSAGE

public static final String[] TIMEOUT_MESSAGES

Constructores públicos

LogcatCrashResultForwarder (ITestDevice device, ITestInvocationListener... listeners)

Métodos públicos

ITestDevice getDevice ()
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 testRunEnded (long elapsedTime, runMetrics) 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

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.

SYSTEM_CRASH_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

TIMEOUT_MESSAGES

public static final String[] 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 ()

Devoluciones
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