LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

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


Özel dinleyici: arızalarda (enstrümantasyon işleminin çökmesi), logcat'tan çökmeyi çıkarmaya çalışacak ve bunu testle ilişkili arıza mesajına ekleyecektir.

Özet

Sabitler

int MAX_NUMBER_CRASH

Alanlar

public static final String ERROR_MESSAGE

Cihaz tarafında bir şeyler ters gittiğinde enstrümantasyondan gelen özel hata mesajı.

public static final String INCOMPLETE_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

public static final TIMEOUT_MESSAGES

Kamu inşaatçıları

LogcatCrashResultForwarder (ITestDevice device, ITestInvocationListener... listeners)

Genel yöntemler

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)

Sabitler

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Sabit Değer: 3 (0x00000003)

Alanlar

HATA MESAJI

public static final String ERROR_MESSAGE

Cihaz tarafında bir şeyler ters gittiğinde enstrümantasyondan gelen özel hata mesajı.

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

Kamu inşaatçıları

LogcatCrashResultForwarder

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

Parametreler
device ITestDevice

listeners ITestInvocationListener

Genel yöntemler

cihaz al

public ITestDevice getDevice ()

İadeler
ITestDevice

testSonlandı

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

Parametreler
test TestDescription

endTime long

testMetrics

test başarısız

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parametreler
test TestDescription

failure FailureDescription

test başarısız

public void testFailed (TestDescription test, 
                String trace)

Parametreler
test TestDescription

trace String

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametreler
elapsedTime long

runMetrics

testRun Başarısız

public void testRunFailed (FailureDescription error)

Parametreler
error FailureDescription

testRun Başarısız

public void testRunFailed (String errorMessage)

Parametreler
errorMessage String

testBaşladı

public void testStarted (TestDescription test, 
                long startTime)

Parametreler
test TestDescription

startTime long