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 |