AppSetup
public
class
AppSetup
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.AppSetup |
用于安装 apk 及其测试的 ITargetPreparer
。
设置 --uninstall 时,PATH 上需要有“aapt”
摘要
公共构造函数 | |
---|---|
AppSetup()
|
公共方法 | |
---|---|
void
|
setUp(ITestDevice device, IBuildInfo buildInfo)
|
void
|
tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
|
公共构造函数
AppSetup
public AppSetup ()
公共方法
setUp
public void setUp (ITestDevice device, IBuildInfo buildInfo)
参数 | |
---|---|
device |
ITestDevice |
buildInfo |
IBuildInfo |
抛出 | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)
参数 | |
---|---|
device |
ITestDevice |
buildInfo |
IBuildInfo |
e |
Throwable |
抛出 | |
---|---|
DeviceNotAvailableException |