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)

void testFailed(TestDescription test, FailureDescription failure)

void testFailed(TestDescription test, String trace)

void 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)

欄位

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