Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 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

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

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