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, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)

void testFailed (TestDescription test, String trace)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

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

TIMEOUT_MESSAGES

public static final  TIMEOUT_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