Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

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), kilitlenmeyi logcat'ten çıkarmaya çalışır ve bunu testle ilişkili hata mesajına ekler.

Özet

Sabitler

int MAX_NUMBER_CRASH

Alanlar

public static final String ERROR_MESSAGE

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

public static final String SYSTEM_CRASH_MESSAGE

public static final String[] 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 özel hata mesajı.

SYSTEM_CRASH_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

TIMEOUT_MESSAGES

public static final String[] TIMEOUT_MESSAGES

Kamu inşaatçılar

LogcatCrashResultForwarder

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

Parametreler
device ITestDevice

listeners ITestInvocationListener

Genel yöntemler

getDevice

public ITestDevice getDevice ()

İadeler
ITestDevice

testEnded

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

testRunFailed

public void testRunFailed (FailureDescription error)

Parametreler
error FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parametreler
errorMessage String

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Parametreler
test TestDescription

startTime long