DynamicSystemPreparer
public
class
DynamicSystemPreparer
extends BaseTargetPreparer
implements
ILabPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.DynamicSystemPreparer |
一个 ITargetPreparer
,用于在具有动态系统更新的设备 build 之上设置系统映像。
摘要
公共构造函数 | |
---|---|
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 |