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

公共构造函数

ConsoleResultReporter

public ConsoleResultReporter ()

公共方法

invocationEnded

public void invocationEnded (long elapsedTime)

参数
elapsedTime long

invocationStarted

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 (FailureDescription failure)

参数
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

参数
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

参数
runName String

testCount int