Przekazywanie wyników usługi LogcatCrash

public class LogcatCrashResultForwarder
extends ResultForwarder

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


Specjalny detektor: w przypadku niepowodzenia (awarii procesu instrumentu) podejmie próbę wyodrębnienia danych z za pomocą dziennika dziennikowej awarii i doda ją do komunikatu o błędzie powiązanego z testem.

Podsumowanie

Stałe

int MAX_NUMBER_CRASH

Fieldsem

public static final String ERROR_MESSAGE

Specjalny komunikat o błędzie pochodzący z instrumentacji, gdy coś poszło nie tak po stronie urządzenia.

public static final String INCOMPLETE_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

public static final TIMEOUT_MESSAGES

Konstruktory publiczne

LogcatCrashResultForwarder(ITestDevice device, ITestInvocationListener... listeners)

Metody publiczne

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)

Stałe

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Wartość stała: 3 (0x00000003)

Fieldsem

ERROR_MESSAGE

public static final String ERROR_MESSAGE

Specjalny komunikat o błędzie pochodzący z instrumentacji, gdy coś poszło nie tak po stronie urządzenia.

INCOMPLETE_MESSAGE

public static final String INCOMPLETE_MESSAGE

KOMUNIKAT_SYSTEMOWY

public static final String SYSTEM_CRASH_MESSAGE

TIMEOUT_WIADOMOŚCI

public static final  TIMEOUT_MESSAGES

Konstruktory publiczne

Przekazywanie wyników usługi LogcatCrash

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

Parametry
device ITestDevice

listeners ITestInvocationListener

Metody publiczne

getDevice

public ITestDevice getDevice ()

Zwroty
ITestDevice

testZakończony

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

Parametry
test TestDescription

endTime long

testMetrics

Niepowodzenie testu

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parametry
test TestDescription

failure FailureDescription

Niepowodzenie testu

public void testFailed (TestDescription test, 
                String trace)

Parametry
test TestDescription

trace String

Zakończono bieg testowy

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametry
elapsedTime long

runMetrics

Niepowodzenie testu uruchomienia

public void testRunFailed (FailureDescription error)

Parametry
error FailureDescription

Niepowodzenie testu uruchomienia

public void testRunFailed (String errorMessage)

Parametry
errorMessage String

testStarted (rozpoczęto test)

public void testStarted (TestDescription test, 
                long startTime)

Parametry
test TestDescription

startTime long