LogcatCrashResultForwarder
public class LogcatCrashResultForwarder
extends ResultForwarder
特別なリスナー:失敗(インストルメンテーションプロセスのクラッシュ)時に、logcatからクラッシュを抽出し、テストに関連付けられた失敗メッセージに追加しようとします。
概要
定数
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
TIMEOUT_MESSAGES
public static final TIMEOUT_MESSAGES
パブリックコンストラクター
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device,
ITestInvocationListener... listeners)
パラメーター |
---|
device | ITestDevice |
listeners | ITestInvocationListener |
パブリックメソッド
getDevice
public ITestDevice getDevice ()
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 |