ParentSandboxInvocationExecution
public
class
ParentSandboxInvocationExecution
extends InvocationExecution
| java.lang.Object | ||
| ↳ | com.android.tradefed.invoker.InvocationExecution | |
| ↳ | com.android.tradefed.invoker.sandbox.ParentSandboxInvocationExecution | |
サンドボックスの実行時に親呼び出しの特別なアクション用の InvocationExecution のバージョン。
概要
パブリック コンストラクタ | |
|---|---|
ParentSandboxInvocationExecution()
|
|
保護されたメソッド | |
|---|---|
IConfigurationFactory
|
getFactory()
構成の作成に使用された |
|
getLabPreparersToRun(IConfiguration config, String deviceName)
このデバイスで実行するラボ準備ツールのリストを取得します。 |
IRunUtil
|
getRunUtil()
|
|
getTargetPreparersToRun(IConfiguration config, String deviceName)
このデバイスで実行するターゲット準備ツールのリストを取得します。 |
boolean
|
prepareAndRunSandbox(TestInformation info, IConfiguration config, ITestInvocationListener listener)
サンドボックスの実行結果のステータスを返します。 |
パブリック コンストラクタ
ParentSandboxInvocationExecution
public ParentSandboxInvocationExecution ()
パブリック メソッド
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 listener)
target_preparer と multi_target_preparer の setUp ステップを実行します。テストの実行に必要なすべてのデバイスが設定されている。
| パラメータ | |
|---|---|
testInfo |
TestInformation: 呼び出しの TestInformation。 |
config |
IConfiguration: このテスト実行の IConfiguration。 |
listener |
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 |
|
reportLogs
public void reportLogs (ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)
呼び出しのさまざまな段階でデバイスログの一部を報告します。例: logcat。
| パラメータ | |
|---|---|
device |
ITestDevice: ログを報告するデバイス。 |
logger |
ITestLogger: ログのロガー。 |
stage |
TestInvocation.Stage: 呼び出しの進行状況。 |
runDevicePostInvocationTearDown
public void runDevicePostInvocationTearDown (IInvocationContext context, IConfiguration config, Throwable exception)
呼び出しの各デバイス部分に対して ITestDevice.postInvocationTearDown(Throwable) を呼び出します。
| パラメータ | |
|---|---|
context |
IInvocationContext: 呼び出しの IInvocationContext。 |
config |
IConfiguration: このテスト実行の IConfiguration。 |
exception |
Throwable: テストの実行によってスローされた元の例外(存在する場合)。 |
runDevicePreInvocationSetup
public void runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger)
呼び出しの各デバイス部分に対して ERROR(ITestDevice.preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice.preInvocationSetup(IBuildInfo)) を呼び出します。
| パラメータ | |
|---|---|
context |
IInvocationContext: 呼び出しの IInvocationContext。 |
config |
IConfiguration: このテスト実行の IConfiguration。 |
logger |
ITestLogger: ログを報告する ITestLogger。 |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
runTests
public void runTests (TestInformation info, IConfiguration config, ITestInvocationListener listener)
テストを実行します。
| パラメータ | |
|---|---|
info |
TestInformation: テストを実行する TestInformation。 |
config |
IConfiguration: 実行する IConfiguration |
listener |
ITestInvocationListener: テスト結果の ITestInvocationListener |
保護されたメソッド
getFactory
protected IConfigurationFactory getFactory ()
構成の作成に使用された IConfigurationFactory を返します。
| 戻り値 | |
|---|---|
IConfigurationFactory |
|
getLabPreparersToRun
protectedgetLabPreparersToRun (IConfiguration config, String deviceName)
このデバイスで実行するラボ準備ツールのリストを取得します。
サンドボックス クラスでオーバーライドされ、ラボ準備ツールがサンドボックスの子内で実行されないように制限
| パラメータ | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| 戻り値 | |
|---|---|
|
|
getTargetPreparersToRun
protectedgetTargetPreparersToRun (IConfiguration config, String deviceName)
このデバイスで実行するターゲット準備ツールのリストを取得します。
サンドボックス クラスでオーバーライドされ、ラボ準備ツールがサンドボックスの子内で実行されないように制限
| パラメータ | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| 戻り値 | |
|---|---|
|
|
prepareAndRunSandbox
protected boolean prepareAndRunSandbox (TestInformation info, IConfiguration config, ITestInvocationListener listener)
サンドボックスの実行結果のステータスを返します。
| パラメータ | |
|---|---|
info |
TestInformation |
config |
IConfiguration |
listener |
ITestInvocationListener |
| 戻り値 | |
|---|---|
boolean |
|