ReportPassedTests
public class ReportPassedTests
extends CollectingTestListener
implements IConfigurationReceiver , ISupportGranularResults
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.result.ReportPassedTests |
合格したテストを除外する可能性のあるフィルターをファイルで報告します。
まとめ
パブリック コンストラクター | |
---|---|
ReportPassedTests () |
公開メソッド | |
---|---|
void | invocationEnded (long elapsedTime) 呼び出しが正常に終了したか、何らかのエラー状態により終了したことを報告します。 |
void | invocationFailed ( FailureDescription failure) 何らかのエラー状態による不完全な呼び出しを報告します。 |
void | invocationStarted ( IInvocationContext context) テスト呼び出しの開始を報告します。 |
void | setConfiguration ( IConfiguration configuration) 使用中の |
void | setLogger ( ITestLogger logger) |
boolean | supportGranularResults () レポーターが詳細な結果をサポートしている場合は True を返し、そうでない場合は False を返します。 |
void | testModuleEnded () モジュール実行の終了を報告します。 |
void | testModuleStarted ( IInvocationContext moduleContext) 実行中のモジュールの開始を報告します。 |
void | testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics) テスト実行の終了を報告します。 |
パブリック コンストラクター
ReportPassedTests
public ReportPassedTests ()
公開メソッド
呼び出し終了
public void invocationEnded (long elapsedTime)
呼び出しが正常に終了したか、何らかのエラー状態により終了したことを報告します。
TradeFederation フレームワークによって自動的に呼び出されます。パラメーター | |
---|---|
elapsedTime | long : 呼び出しの経過時間 (ミリ秒) |
呼び出し失敗
public void invocationFailed (FailureDescription failure)
何らかのエラー状態による不完全な呼び出しを報告します。
TradeFederation フレームワークによって自動的に呼び出されます。
パラメーター | |
---|---|
failure | FailureDescription : 失敗の原因を説明するFailureDescription |
呼び出し開始
public void invocationStarted (IInvocationContext context)
テスト呼び出しの開始を報告します。
TradeFederation フレームワークによって自動的に呼び出されます。レポーターは、複数のデバイス レポートをサポートするために、このメソッドをオーバーライドする必要があります。
パラメーター | |
---|---|
context | IInvocationContext : 呼び出しに関する情報 |
setConfiguration
public void setConfiguration (IConfiguration configuration)
使用中のIConfiguration
を挿入します。
パラメーター | |
---|---|
configuration | IConfiguration |
supportGranularResults
public boolean supportGranularResults ()
レポーターが詳細な結果をサポートしている場合は True を返し、そうでない場合は False を返します。
戻り値 | |
---|---|
boolean |
testModuleEnded
public void testModuleEnded ()
モジュール実行の終了を報告します。
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
実行中のモジュールの開始を報告します。このコールバックはtestModuleEnded()
に関連付けられており、シーケンスではオプションです。モジュールを使用する実行中にのみ使用されます: スイートベースのランナー。
パラメーター | |
---|---|
moduleContext | IInvocationContext : モジュールのIInvocationContext 。 |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
テスト実行の終了を報告します。 FIXME: タイプの異なる 2 つの Map<> インターフェイスを持つことはできないため、ここでは HashMap を使用する必要があります。
パラメーター | |
---|---|
elapsedTime | long : デバイスが報告した経過時間 (ミリ秒) |
runMetrics | Metric でのテスト実行の最後に報告されるキーと値のペア。 |