Google is committed to advancing racial equity for Black communities. See how.
本頁面由 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