LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

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


מאזין מיוחד: בכשלים (קריסת תהליך המכשור) הוא ינסה לחלץ מה-logcat את הקריסה ויוסיף אותו להודעת הכשל הקשורה לבדיקה.

סיכום

קבועים

int MAX_NUMBER_CRASH

שדות

public static final String ERROR_MESSAGE

הודעת שגיאה מיוחדת מהמכשור כאשר משהו משתבש בצד המכשיר.

public static final String INCOMPLETE_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

public static final TIMEOUT_MESSAGES

בנאים ציבוריים

LogcatCrashResultForwarder (ITestDevice device, ITestInvocationListener... listeners)

שיטות ציבוריות

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)

קבועים

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

ערך קבוע: 3 (0x00000003)

שדות

הודעת שגיאה

public static final String ERROR_MESSAGE

הודעת שגיאה מיוחדת מהמכשור כאשר משהו משתבש בצד המכשיר.

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

בנאים ציבוריים

LogcatCrashResultForwarder

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

פרמטרים
device ITestDevice

listeners ITestInvocationListener

שיטות ציבוריות

getDevice

public ITestDevice getDevice ()

החזרות
ITestDevice

הבדיקה הסתיים

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

פרמטרים
test TestDescription

endTime long

testMetrics

מבחן נכשל

public void testFailed (TestDescription test, 
                FailureDescription failure)

פרמטרים
test TestDescription

failure FailureDescription

מבחן נכשל

public void testFailed (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

פרמטרים
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription error)

פרמטרים
error FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

פרמטרים
errorMessage String

הבדיקה התחילה

public void testStarted (TestDescription test, 
                long startTime)

פרמטרים
test TestDescription

startTime long