InstallAllTestZipAppsSetup
public class InstallAllTestZipAppsSetup
extends BaseTargetPreparer
implements ITargetCleaner
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.InstallAllTestZipAppsSetup |
一个ITargetPreparer
,它将所有应用程序安装在测试zip中。对于单独的测试应用程序安装,请查看TestAppInstallSetup
。
概要
公共建设者 | |
---|---|
InstallAllTestZipAppsSetup () |
公开方法 | |
---|---|
void | setCleanup (boolean cleanup) |
void | setStopInstallOnFailure (boolean stopInstallOnFailure) |
void | setTestZipName (String testZipName) |
void | setUp ( ITestDevice device, IBuildInfo buildInfo) 执行目标设置以进行测试。 |
void | tearDown ( ITestDevice device, IBuildInfo buildInfo, Throwable e) 测试后执行目标清理/拆卸。 |
公共建设者
InstallAllTestZipAppsSetup
public InstallAllTestZipAppsSetup ()
公开方法
setCleanup
public void setCleanup (boolean cleanup)
参量 | |
---|---|
cleanup | boolean |
setStopInstallOnFailure
public void setStopInstallOnFailure (boolean stopInstallOnFailure)
参量 | |
---|---|
stopInstallOnFailure | boolean |
setTestZipName
public void setTestZipName (String testZipName)
参量 | |
---|---|
testZipName | String |
建立
public void setUp (ITestDevice device, IBuildInfo buildInfo)
执行目标设置以进行测试。
参量 | |
---|---|
device | ITestDevice :准备的ITestDevice 。 |
buildInfo | IBuildInfo :有关测试中的构建的数据。 |
投掷 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)
测试后执行目标清理/拆卸。
参量 | |
---|---|
device | ITestDevice :准备的ITestDevice 。 |
buildInfo | IBuildInfo :有关测试中的构建的数据。 |
e | Throwable :如果调用以异常结束,则将是在调用级别捕获的异常。否则,将为null 。 |
投掷 | |
---|---|
DeviceNotAvailableException |