動態系統準備器
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) 測試後執行目標清理/拆卸。 |
公共構造函數
動態系統準備器
public DynamicSystemPreparer ()
公共方法
設定
public void setUp (TestInformation testInfo)
執行測試目標設定。
參數 | |
---|---|
testInfo | TestInformation :呼叫的TestInformation 。 |
投擲 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
測試後執行目標清理/拆卸。
參數 | |
---|---|
testInfo | TestInformation :呼叫的TestInformation 。 |
e | Throwable :如果呼叫以異常結束,則這將是在呼叫層級捕獲的異常。否則,將為null 。 |
投擲 | |
---|---|
DeviceNotAvailableException |