LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

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


Специальный прослушиватель: при сбоях (сбой процесса инструментария) он будет пытаться извлечь из журнала сбоя и добавить его в сообщение об ошибке, связанное с тестом.

Резюме

Константы

int MAX_NUMBER_CRASH

Поля

public static final String ERROR_MESSAGE

Специальное сообщение об ошибке от приборов, когда что-то идет не так на стороне устройства.

public static final String INCOMPLETE_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

public static final TIMEOUT_MESSAGES

Общественные конструкторы

LogcatCrashResultForwarder (ITestDevice device, ITestInvocationListener... listeners)

Публичные методы

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)

Константы

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Постоянное значение: 3 (0x00000003)

Поля

СООБЩЕНИЕ ОБ ОШИБКЕ

public static final String ERROR_MESSAGE

Специальное сообщение об ошибке от приборов, когда что-то идет не так на стороне устройства.

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

Общественные конструкторы

LogcatCrashResultForwarder

public LogcatCrashResultForwarder (ITestDevice device, 
                ITestInvocationListener... listeners)

Параметры
device ITestDevice

listeners ITestInvocationListener

Публичные методы

getDevice

public ITestDevice getDevice ()

Возврат
ITestDevice

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Параметры
test TestDescription

endTime long

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Параметры
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Параметры
test TestDescription

trace String

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Параметры
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription error)

Параметры
error FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Параметры
errorMessage String

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Параметры
test TestDescription

startTime long