LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

對象
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

公共方法

獲取設備

public ITestDevice getDevice ()

退貨
ITestDevice

測試結束

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

測試運行結束

public void testRunEnded (long elapsedTime, 
                 runMetrics)

參數
elapsedTime long

runMetrics

測試運行失敗

public void testRunFailed (FailureDescription error)

參數
error FailureDescription

測試運行失敗

public void testRunFailed (String errorMessage)

參數
errorMessage String

測試開始

public void testStarted (TestDescription test, 
                long startTime)

參數
test TestDescription

startTime long