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

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