LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

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


Pemroses khusus: jika terjadi kegagalan (proses instrumentasi mengalami error), pemroses akan mencoba mengekstrak error dari logcat dan menambahkannya ke pesan kegagalan yang terkait dengan pengujian.

Ringkasan

Konstanta

int MAX_NUMBER_CRASH

Kolom

public static final String ERROR_MESSAGE

Pesan error khusus dari instrumentasi saat terjadi error 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)

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)

Konstanta

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Nilai Konstanta: 3 (0x00000003)

Kolom

ERROR_MESSAGE

public static final String ERROR_MESSAGE

Pesan error khusus dari instrumentasi saat terjadi error 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

getDevice

public ITestDevice getDevice ()

Hasil
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)

Parameter
test TestDescription

startTime long