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)
필드
오류 메시지
public static final String ERROR_MESSAGE
기기 측에서 문제가 발생하는 경우 계측에서 제공하는 특별한 오류 메시지입니다.
INCOMPLETE_MESSAGE
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
메시지 시간 초과
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 |
|
테스트 실패
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 |
testStarted
public void testStarted (TestDescription test, long startTime)
매개변수 | |
---|---|
test |
TestDescription |
startTime |
long |