SubprocessResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

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


result_reporter として指定される ITestInvocationListener を実装し、テスト、テスト実行、テスト呼び出しの結果をサブプロセスから転送します。

概要

パブリック コンストラクタ

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