リモート呼び出し実行

public class RemoteInvocationExecution
extends InvocationExecution

java.lang.オブジェクト
com.android.tradefed.invoker.InvocationExecution
com.android.tradefed.invoker.RemoteInvocationExecution


リモート実行を駆動するInvocationExecutionの実装。

まとめ

入れ子になったクラス

class RemoteInvocationExecution.FileOptionValueTransformer

定数

long JOIN_CLEAN_TIMEOUT_MS

long LAUNCH_EXTRA_DEVICE

long NEW_USER_TIMEOUT

long PULL_RESULT_TIMEOUT

long PUSH_TF_TIMEOUT

long REMOTE_PROCESS_RUNNING_WAIT

long SETUP_REMOTE_DIR_TIMEOUT

田畑

public static final String GLOBAL_REMOTE_CONFIG

public static final String PROTO_RESULT_NAME

public static final String REMOTE_CONFIG

public static final String REMOTE_USER_DIR

public static final String START_FEATURE_SERVER

public static final String STDERR_FILE

public static final String STDOUT_FILE

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

RemoteInvocationExecution ()

パブリックメソッド

void doCleanUp ( IInvocationContext context, IConfiguration config, Throwable exception)

target_preparer および multi_target_preparer cleanUp ステップを実行します。

void doSetup ( TestInformation testInfo, IConfiguration config, ITestLogger logger)

target_preparer および multi_target_preparer の setUp ステップを実行します。

void doTeardown ( TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)

target_preparer および multi_target_preparer のティアダウン ステップを実行します。

boolean fetchBuild ( TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)

呼び出しの build_provider ステップを実行します。

void runTests ( TestInformation info, IConfiguration config, ITestInvocationListener listener)

テストを実行します。

保護されたメソッド

void customizeDevicePreInvocation ( IConfiguration config, IInvocationContext context)

preInvocationSetup の前に、デバイスの一部をカスタマイズする機会を与えてください。

String getAdbVersion ()

呼び出しに使用されている adb のバージョンを返します。

定数

JOIN_CLEAN_TIMEOUT_MS

public static final long JOIN_CLEAN_TIMEOUT_MS

定数値: 120000 (0x000000000001d4c0)

LAUNCH_EXTRA_DEVICE

public static final long LAUNCH_EXTRA_DEVICE

定数値: 900000 (0x00000000000dbba0)

NEW_USER_TIMEOUT

public static final long NEW_USER_TIMEOUT

定数値: 300000 (0x00000000000493e0)

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

定数値: 180000 (0x000000000002bf20)

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

定数値: 150000 (0x00000000000249f0)

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

定数値: 15000 (0x0000000000003a98)

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

定数値: 600000 (0x00000000000927c0)

田畑

GLOBAL_REMOTE_CONFIG

public static final String GLOBAL_REMOTE_CONFIG

PROTO_RESULT_NAME

public static final String PROTO_RESULT_NAME

REMOTE_CONFIG

public static final String REMOTE_CONFIG

REMOTE_USER_DIR

public static final String REMOTE_USER_DIR

START_FEATURE_SERVER

public static final String START_FEATURE_SERVER

STDERR_FILE

public static final String STDERR_FILE

STDOUT_FILE

public static final String STDOUT_FILE

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

リモート呼び出し実行

public RemoteInvocationExecution ()

パブリックメソッド

クリーンアップする

public void doCleanUp (IInvocationContext context, 
                IConfiguration config, 
                Throwable exception)

target_preparer および multi_target_preparer cleanUp ステップを実行します。デバイスはクリーンアップされますか。

パラメーター
context IInvocationContext : 呼び出しのIInvocationContext

config IConfiguration : このテスト実行のIConfiguration

exception Throwable : テストの実行によってスローされた元の例外。

doSetup

public void doSetup (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger logger)

target_preparer および multi_target_preparer の setUp ステップを実行します。テストの実行に必要なすべてのデバイスのセットアップを実行します。

パラメーター
testInfo TestInformation : 呼び出しのTestInformation

config IConfiguration : このテスト実行のIConfiguration

logger ITestLogger : セットアップ失敗ログを報告するITestLogger

投げる
BuildError
DeviceNotAvailableException
TargetSetupError

分解する

public void doTeardown (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger logger, 
                Throwable exception)

target_preparer および multi_target_preparer のティアダウン ステップを実行します。デバイスはセットアップに関連して分解されますか?

パラメーター
testInfo TestInformation : 呼び出しのTestInformation

config IConfiguration : このテスト実行のIConfiguration

logger ITestLogger : ログをレポートするITestLogger

exception Throwable : テストの実行によってスローされた元の例外。

フェッチビルド

public boolean fetchBuild (TestInformation testInfo, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener listener)

呼び出しの build_provider ステップを実行します。

パラメーター
testInfo TestInformation : 呼び出しのTestInformation

config IConfiguration : このテスト実行のIConfiguration

rescheduler IRescheduler : IRescheduler 、別のリソースで実行する呼び出しの一部を再スケジュールするための

listener ITestInvocationListener : ビルドのダウンロードの失敗を報告するITestInvocation

戻り値
booleanビルドが正常にダウンロードされた場合は true、それ以外の場合は false。

投げる
BuildRetrievalError
DeviceNotAvailableException

テストを実行する

public void runTests (TestInformation info, 
                IConfiguration config, 
                ITestInvocationListener listener)

テストを実行します。

パラメーター
info TestInformation : テストを実行するためのTestInformation

config IConfiguration : 実行するIConfiguration

listener ITestInvocationListener : テスト結果のITestInvocationListener

保護されたメソッド

カスタマイズDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

preInvocationSetup の前に、デバイスの一部をカスタマイズする機会を与えてください。

パラメーター
config IConfiguration : 呼び出しの構成。

context IInvocationContext : 現在の呼び出しコンテキスト。

getAdbVersion

protected String getAdbVersion ()

呼び出しに使用されている adb のバージョンを返します。

戻り値
String