Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.
Tetap teratur dengan koleksi Simpan dan kategorikan konten berdasarkan preferensi Anda.

LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

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


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

Ringkasan

Konstanta

int MAX_NUMBER_CRASH

bidang

public static final String ERROR_MESSAGE

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

public static final String INCOMPLETE_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

public static final 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 Konstan: 3 (0x00000003)

bidang

PESAN EROR

public static final String ERROR_MESSAGE

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

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

Konstruktor publik

LogcatCrashResultForwarder

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

Parameter
device ITestDevice

listeners ITestInvocationListener

Metode publik

dapatkanPerangkat

public ITestDevice getDevice ()

Kembali
ITestDevice

tesBerakhir

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

Parameter
test TestDescription

endTime long

testMetrics

tesGagal

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

tesGagal

public void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testRunEnd

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

tesMulai

public void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long