Google is committed to advancing racial equity for Black communities. See how.
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

SubprocessResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
com.android.tradefed.result.SubprocessResultsReporter


實現ITestInvocationListener ,將其指定為result_reporter,並從子流程轉發測試,測試運行,測試調用的結果。

摘要

公共建設者

SubprocessResultsReporter ()

公開方法

void close ()

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void printEvent (String key, Object event)

幫助程序先打印事件鍵,然後再打印json對象。

void setOutputTestLog (boolean outputTestLog)

設置是否輸出已記錄的測試。

boolean supportGranularResults ()
void testAssumptionFailure (TestDescription testId, String trace)

void testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics)

void testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics)

void testFailed (TestDescription testId, String reason)

void testIgnored (TestDescription testId)

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String reason)

void testRunStarted (String runName, int testCount, int attemptNumber)

void testRunStarted (String runName, int testCount)

void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)

void testRunStopped (long arg0)

void testStarted (TestDescription testId, long startTime)

void testStarted (TestDescription testId)

公共建設者

SubprocessResultsReporter

public SubprocessResultsReporter ()

公開方法

public void close ()

getSummary

public TestSummary getSummary ()

退貨
TestSummary

調用結束

public void invocationEnded (long elapsedTime)

參量
elapsedTime long

調用失敗

public void invocationFailed (FailureDescription failure)

參量
failure FailureDescription

調用失敗

public void invocationFailed (Throwable cause)

參量
cause Throwable

調用開始

public void invocationStarted (IInvocationContext context)

參量
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

參量
dataName String

logFile LogFile

printEvent

public void printEvent (String key, 
                Object event)

幫助程序先打印事件鍵,然後再打印json對象。

參量
key String

event Object

setOutputTestLog

657

設置是否輸出已記錄的測試。

參量
outputTestLog boolean

supportGranularResults

public boolean supportGranularResults ()

退貨
boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

參量
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription testId, 
                long endTime, 
                 metrics)

參量
testId TestDescription

endTime long

metrics

testEnded

public void testEnded (TestDescription testId, 
                 metrics)

參量
testId TestDescription

metrics

測試失敗

public void testFailed (TestDescription testId, 
                String reason)

參量
testId TestDescription

reason String

testIgnored

public void testIgnored (TestDescription testId)

參量
testId TestDescription

測試日誌

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

參量
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

參量
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

參量
time long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

參量
failure FailureDescription

testRunFailed

public void testRunFailed (String reason)

參量
reason String

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

參量
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

參量
runName String

testCount int

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

參量
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long arg0)

參量
arg0 long

testStarted

public void testStarted (TestDescription testId, 
                long startTime)

參量
testId TestDescription

startTime long

testStarted

public void testStarted (TestDescription testId)

參量
testId TestDescription