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 testAssumptionFailure(TestDescription testId, FailureDescription failure)

void testEnded(TestDescription testId, long endTime, metrics)

void testEnded(TestDescription testId, metrics)

void testFailed(TestDescription testId, FailureDescription failure)

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)

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

invocationEnded

public void invocationEnded (long elapsedTime)

參數
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

參數
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

參數
cause Throwable

invocationStarted

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

public void setOutputTestLog (boolean outputTestLog)

設定是否應輸出記錄的測試。

參數
outputTestLog boolean

supportGranularResults

public boolean supportGranularResults ()

傳回
boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

參數
testId TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                FailureDescription failure)

參數
testId TestDescription

failure FailureDescription

testEnded

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

參數
testId TestDescription

endTime long

metrics

testEnded

public void testEnded (TestDescription testId, 
                 metrics)

參數
testId TestDescription

metrics

testFailed

public void testFailed (TestDescription testId, 
                FailureDescription failure)

參數
testId TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription testId, 
                String reason)

參數
testId TestDescription

reason String

testIgnored

public void testIgnored (TestDescription testId)

參數
testId TestDescription

testLog

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