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,
|
void
|
testFailed(TestDescription test, FailureDescription failure)
|
void
|
testFailed(TestDescription test, String trace)
|
void
|
testRunEnded(long elapsedTime,
|
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)
ช่อง
ERROR_MESSAGE
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 finalTIMEOUT_MESSAGES
ตัวสร้างแบบสาธารณะ
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device,
ITestInvocationListener... listeners)| พารามิเตอร์ | |
|---|---|
device |
ITestDevice |
listeners |
ITestInvocationListener |
เมธอดสาธารณะ
getDevice
public ITestDevice getDevice ()
| คิกรีเทิร์น | |
|---|---|
ITestDevice |
|
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
| พารามิเตอร์ | |
|---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testFailed
public void testFailed (TestDescription test,
FailureDescription failure)
| พารามิเตอร์ | |
|---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
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 |
testStarted
public void testStarted (TestDescription test,
long startTime)
| พารามิเตอร์ | |
|---|---|
test |
TestDescription |
startTime |
long |