InstallAllTestZipAppsSetup

public class InstallAllTestZipAppsSetup
extends BaseTargetPreparer

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

buildInfo IBuildInfo

抛出
DeviceNotAvailableException
TargetSetupError

拆解

public void tearDown (ITestDevice device, 
                IBuildInfo buildInfo, 
                Throwable e)

参数
device ITestDevice

buildInfo IBuildInfo

e Throwable

抛出
DeviceNotAvailableException