LogcatCrashResultForwarder
public class LogcatCrashResultForwarder
extends ResultForwarder
מאזין מיוחד: בכשלים (קריסת תהליך המכשור) הוא ינסה לחלץ מה-logcat את הקריסה ויוסיף אותו להודעת הכשל הקשורה לבדיקה.
סיכום
קבועים
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 ()
הבדיקה הסתיים
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 |