Google is committed to advancing racial equity for Black communities. See how.
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

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 SYSTEM_CRASH_MESSAGE

public static final String[] 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

當設備端出現問題時,來自儀器的特殊錯誤消息。

SYSTEM_CRASH_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

TIMEOUT_MESSAGES

public static final String[] TIMEOUT_MESSAGES

公共建設者

LogcatCrashResultForwarder

public LogcatCrashResultForwarder (ITestDevice device, 
                ITestInvocationListener... listeners)

參量
device ITestDevice

listeners ITestInvocationListener

公開方法

getDevice

public ITestDevice getDevice ()

退貨
ITestDevice

testEnded

82

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

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