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

公用方法

已叫用

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

testLog 已儲存

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

參數
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testResult

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