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
デバイス側で問題が発生した場合にインストルメンテーションからの特別なエラー メッセージ。
未完了のメッセージ
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 |