RemoteInvocationExecution
  public
  
  
  
  class
  RemoteInvocationExecution
  
  
  
  
    extends InvocationExecution
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | 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 のクリーンアップ ステップを実行します。 | 
| 
        
        
        
        
        
        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 のクリーンアップ ステップを実行します。デバイスがクリーンアップされます。
| パラメータ | |
|---|---|
| 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 | |
doTeardown
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: テストの実行によってスローされた元の例外。 | 
fetchBuild
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 | |
runTests
public void runTests (TestInformation info, IConfiguration config, ITestInvocationListener listener)
テストを実行します。
| パラメータ | |
|---|---|
| info | TestInformation: テストを実行するTestInformation。 | 
| config | IConfiguration: 実行するIConfiguration | 
| listener | ITestInvocationListener: テスト結果のITestInvocationListener | 
保護されたメソッド
customizeDevicePreInvocation
protected void customizeDevicePreInvocation (IConfiguration config, IInvocationContext context)
preInvocationSetup の前にデバイスの一部をカスタマイズできるようにします。
| パラメータ | |
|---|---|
| config | IConfiguration: 呼び出しの構成。 | 
| context | IInvocationContext: 現在の呼び出しコンテキスト。 | 
getAdbVersion
protected String getAdbVersion ()
呼び出しに使用されている adb バージョンを返します。
| 戻り値 | |
|---|---|
| String | |
