SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
器具ITestInvocationListener
result_reporterとして指定され、サブプロセスからテスト、テストの実行、テスト呼び出しの結果を転送します。
概要
パブリックメソッド |
---|
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) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) 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) 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 ()
パブリックメソッド
getSummary
public TestSummary getSummary ()
invocationEnded
public void invocationEnded (long elapsedTime)
invocationFailed
public void invocationFailed (FailureDescription failure)
パラメーター |
---|
failure | FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
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 ()
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 |
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)
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)
testStarted
public void testStarted (TestDescription testId,
long startTime)
パラメーター |
---|
testId | TestDescription |
startTime | long |
testStarted
public void testStarted (TestDescription testId)
パラメーター |
---|
testId | TestDescription |