控制台结果报告器

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 (FailureDescription failure)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount)

公共构造函数

控制台结果报告器

public ConsoleResultReporter ()

公共方法

调用结束

public void invocationEnded (long elapsedTime)

参数
elapsedTime long

调用开始

public void invocationStarted (IInvocationContext context)

参数
context IInvocationContext

日志关联

public void logAssociation (String dataName, 
                LogFile logFile)

参数
dataName String

logFile LogFile

测试日志已保存

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

测试运行结束

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

参数
elapsedTimeMillis long

metrics

测试运行失败

public void testRunFailed (FailureDescription failure)

参数
failure FailureDescription

测试运行失败

public void testRunFailed (String errorMessage)

参数
errorMessage String

测试运行开始

public void testRunStarted (String runName, 
                int testCount)

参数
runName String

testCount int