Google is committed to advancing racial equity for Black communities. See how.
Halaman ini diterjemahkan oleh 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


Pendengar khusus: saat mengalami kegagalan (proses instrumentasi mogok), ia akan mencoba mengekstrak kerusakan dari logcat dan menambahkannya ke pesan kegagalan yang terkait dengan pengujian.

Ringkasan

Konstanta

int MAX_NUMBER_CRASH

Fields

public static final String ERROR_MESSAGE

Pesan kesalahan khusus dari instrumentasi ketika terjadi kesalahan di sisi perangkat.

public static final String SYSTEM_CRASH_MESSAGE

public static final String[] TIMEOUT_MESSAGES

Konstruktor publik

LogcatCrashResultForwarder (ITestDevice device, ITestInvocationListener... listeners)

Metode publik

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)

Konstanta

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Nilai Konstanta: 3 (0x00000003)

Fields

PESAN EROR

public static final String ERROR_MESSAGE

Pesan kesalahan khusus dari instrumentasi ketika terjadi kesalahan di sisi perangkat.

SYSTEM_CRASH_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

TIMEOUT_MESSAGES

public static final String[] TIMEOUT_MESSAGES

Konstruktor publik

LogcatCrashResultForwarder

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

Parameter
device ITestDevice

listeners ITestInvocationListener

Metode publik

getDevice

public ITestDevice getDevice ()

Kembali
ITestDevice

testEnded

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

Parameter
test TestDescription

endTime long

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parameter
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription error)

Parameter
error FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parameter
errorMessage String

testStarted

public void testStarted (TestDescription test, 
                long startTime)
.dll

Parameter
test TestDescription

startTime long