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 |