DynamicSystemPreparer

public class DynamicSystemPreparer
extends BaseTargetPreparer implements ILabPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.DynamicSystemPreparer


使用動態系統更新,在裝置版本上設定系統映像檔的 ITargetPreparer

摘要

公用建構函式

DynamicSystemPreparer()

公用方法

void setUp(TestInformation testInfo)

執行目標設定以進行測試。

void tearDown(TestInformation testInfo, Throwable e)

在測試後執行目標清除/拆除作業。

公用建構函式

DynamicSystemPreparer

public DynamicSystemPreparer ()

公用方法

setUp

public void setUp (TestInformation testInfo)

執行目標設定以進行測試。

參數
testInfo TestInformation:呼叫的 TestInformation

擲回
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

在測試後執行目標清除/拆除作業。

參數
testInfo TestInformation:呼叫的 TestInformation

e Throwable:如果叫用作業結束時發生例外狀況,則此值會是叫用層級偵測到的例外狀況。否則,將為 null

擲回
DeviceNotAvailableException