サブプロセス結果レポーター
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.オブジェクト |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
既知の直接サブクラスレガシーサブプロセス結果レポーター | サブプロセス結果レポーターの凍結された実装。スーパークラスの変更にもかかわらず、以前のバージョンの TF/CTS (例: 8+) との互換性を維持する必要があります。 |
|
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) |
パブリックコンストラクター
サブプロセス結果レポーター
public SubprocessResultsReporter ()
パブリックメソッド
get概要
public TestSummary getSummary ()
呼び出し終了
public void invocationEnded (long elapsedTime)
呼び出し失敗
public void invocationFailed (FailureDescription failure)
パラメーター |
---|
failure | FailureDescription |
呼び出し失敗
public void invocationFailed (Throwable cause)
呼び出し開始
public void invocationStarted (IInvocationContext context)
パラメーター |
---|
context | IInvocationContext |
ログ関連付け
public void logAssociation (String dataName,
LogFile logFile)
パラメーター |
---|
dataName | String |
logFile | LogFile |
印刷イベント
public void printEvent (String key,
Object event)
イベントキーを出力してからjsonオブジェクトを出力するヘルパー。
パラメーター |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
テストのログを出力するかどうかを設定します。
パラメーター |
---|
outputTestLog | boolean |
サポート粒状の結果
public boolean supportGranularResults ()
テスト仮定失敗
public void testAssumptionFailure (TestDescription testId,
String trace)
パラメーター |
---|
testId | TestDescription |
trace | String |
テスト仮定失敗
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
パラメーター |
---|
testId | TestDescription |
failure | FailureDescription |
テスト終了
public void testEnded (TestDescription testId,
long endTime,
metrics)
パラメーター |
---|
testId | TestDescription |
endTime | long |
metrics | |
テスト終了
public void testEnded (TestDescription testId,
metrics)
パラメーター |
---|
testId | TestDescription |
metrics | |
テスト失敗
public void testFailed (TestDescription testId,
FailureDescription failure)
パラメーター |
---|
testId | TestDescription |
failure | FailureDescription |
テスト失敗
public void testFailed (TestDescription testId,
String reason)
パラメーター |
---|
testId | TestDescription |
reason | String |
テスト無視されました
public void testIgnored (TestDescription testId)
パラメーター |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
パラメーター |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
テストモジュール終了
public void testModuleEnded ()
テストモジュールが開始されました
public void testModuleStarted (IInvocationContext moduleContext)
パラメーター |
---|
moduleContext | IInvocationContext |
テスト実行終了
public void testRunEnded (long time,
runMetrics)
パラメーター |
---|
time | long |
runMetrics | |
テスト実行失敗
public void testRunFailed (FailureDescription failure)
パラメーター |
---|
failure | FailureDescription |
テスト実行失敗
public void testRunFailed (String reason)
テスト実行開始しました
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
パラメーター |
---|
runName | String |
testCount | int |
attemptNumber | int |
テスト実行開始しました
public void testRunStarted (String runName,
int testCount)
パラメーター |
---|
runName | String |
testCount | int |
テスト実行開始しました
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
パラメーター |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
テスト実行停止
public void testRunStopped (long arg0)
テスト開始
public void testStarted (TestDescription testId,
long startTime)
パラメーター |
---|
testId | TestDescription |
startTime | long |
テスト開始
public void testStarted (TestDescription testId)
パラメーター |
---|
testId | TestDescription |