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
رسالة خطأ خاصة من الأجهزة عندما يحدث خطأ ما من جانب الجهاز.
رسالة غير كاملة
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 |
الأساليب العامة
com.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 | |
فشل تشغيل الاختبار
public void testRunFailed (FailureDescription error)
حدود |
---|
error | FailureDescription |
فشل تشغيل الاختبار
public void testRunFailed (String errorMessage)
testStarted
public void testStarted (TestDescription test,
long startTime)
حدود |
---|
test | TestDescription |
startTime | long |