RemoteTestTimeOutEnforcer

public class RemoteTestTimeOutEnforcer
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.testtype.suite.RemoteTestTimeOutEnforcer


特定のテスト構成の実行時間をチェックし、特定のタイムアウトを超えた場合に失敗させることができるリスナー。

このエンフォーサーはテストを中断しませんが、テストを失敗させることに注意してください。

まとめ

田畑

public static final String REMOTE_TEST_TIMEOUT_DESCRIPTION

public static final String REMOTE_TEST_TIMEOUT_OPTION

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

RemoteTestTimeOutEnforcer ( ModuleListener listener, ModuleDefinition moduleDefinition, IRemoteTest test, Duration timeOut)

強制する指定されたタイムアウトでRemoteTestTimeOutEnforcerを作成します。

公開メソッド

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

テスト実行の終了を報告します。

田畑

REMOTE_TEST_TIMEOUT_DESCRIPTION

public static final String REMOTE_TEST_TIMEOUT_DESCRIPTION

REMOTE_TEST_TIMEOUT_OPTION

public static final String REMOTE_TEST_TIMEOUT_OPTION

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

RemoteTestTimeOutEnforcer

public RemoteTestTimeOutEnforcer (ModuleListener listener, 
                ModuleDefinition moduleDefinition, 
                IRemoteTest test, 
                Duration timeOut)

強制する指定されたタイムアウトでRemoteTestTimeOutEnforcerを作成します。

パラメーター
listener ModuleListener : 各テスト実行のModuleListener

moduleDefinition ModuleDefinition : 実行するテスト モジュールのModuleDefinition

test IRemoteTest : 実行されるIRemoteTest

timeOut Duration : テスト実行ごとのタイムアウトのERROR(/Duration)

公開メソッド

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

テスト実行の終了を報告します。 FIXME: タイプの異なる 2 つの Map<> インターフェイスを持つことはできないため、ここでは HashMap を使用する必要があります。

パラメーター
elapsedTime long : デバイスが報告した経過時間 (ミリ秒)

runMetrics : Metricでのテスト実行の最後に報告されるキーと値のペア。