InstallAllTestZipAppsSetup

public class InstallAllTestZipAppsSetup
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.InstallAllTestZipAppsSetup


在测试 zip 中安装所有应用程序的ITargetPreparer 。对于单独的测试应用程序安装,请查看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 ()

公共方法

设置清理

public void setCleanup (boolean cleanup)

参数
cleanup boolean

设置失败时停止安装

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