コレクションでコンテンツを整理 必要に応じて、コンテンツの保存と分類を行います。

RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

java.lang.Object
com.android.tradefed.invoker.InvocationExecution
com.android.tradefed.invoker.RemoteInvocationExecution


実装InvocationExecutionリモート実行を駆動します。

概要

定数

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

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

RemoteInvocationExecution

public RemoteInvocationExecution ()

パブリックメソッド

doCleanUp

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

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

パラメーター
context IInvocationContextIInvocationContext呼び出しの。

config IConfigurationIConfigurationこのテスト実行の。

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

doSetup

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

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

パラメーター
testInfo TestInformationTestInformation呼び出しの。

config IConfigurationIConfigurationこのテスト実行の。

logger ITestLoggerITestLoggerセットアップの失敗ログをレポートします。

投げる
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

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

パラメーター
testInfo TestInformationTestInformation呼び出しの。

config IConfigurationIConfigurationこのテスト実行の。

logger ITestLoggerITestLoggerログをレポートします。

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

fetchBuild

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

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

パラメーター
testInfo TestInformationTestInformation呼び出しの。

config IConfigurationIConfigurationこのテスト実行の。

rescheduler IReschedulerIRescheduler 、他のリソース(単数または複数)上で実行するための呼び出しの部分を再スケジューリングするための

listener ITestInvocationListenerITestInvocationレポートビルドのダウンロードに失敗します。

戻り値
booleanビルドのダウンロードに成功した場合はtrue、それ以外の場合はfalse。

投げる
BuildRetrievalError
DeviceNotAvailableException

runTests

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

テストを実行します。

パラメーター
info TestInformationTestInformationでテストを実行します。

config IConfigurationIConfiguration実行します

listener ITestInvocationListenerITestInvocationListener試験結果の

保護されたメソッド

CustomizeDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

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

パラメーター
config IConfiguration :呼び出しの設定。

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

getAdbVersion

protected String getAdbVersion ()

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

戻り値
String