Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

ConsoleResultReporter

public class ConsoleResultReporter
extends TestResultListener implements ILogSaverListener, ITestInvocationListener

java.lang.Object
com.android.tradefed.result.TestResultListener
com.android.tradefed.result.ConsoleResultReporter


结果报告器将测试结果打印到控制台。

打印每个测试运行,每个测试用例以及测试指标,测试日志和测试文件位置。

摘要

公共建设者

ConsoleResultReporter ()

公开方法

void invocationEnded (long elapsedTime)

void invocationStarted (IInvocationContext context)
void logAssociation (String dataName, LogFile logFile)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

void testResult (TestDescription test, TestResult result)
void testRunEnded (long elapsedTimeMillis, metrics) testRunEnded (long elapsedTimeMillis, metrics)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount)

公共建设者

ConsoleResultReporter

public ConsoleResultReporter ()

公开方法

调用结束

public void invocationEnded (long elapsedTime)

参量
elapsedTime long

调用开始

public void invocationStarted (IInvocationContext context)

参量
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

参量
dataName String

logFile LogFile

testLogSaved

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

参量
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

测试结果

public void testResult (TestDescription test, 
                TestResult result)

参量
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

参量
elapsedTimeMillis long

metrics

testRunFailed

public void testRunFailed (String errorMessage)

参量
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

参量
runName String

testCount int