安裝所有TestZipApps安裝程序

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)

公共構造函數

安裝所有TestZipApps安裝程序

public InstallAllTestZipAppsSetup ()

公共方法

設定清理

public void setCleanup (boolean cleanup)

參數
cleanup boolean

設定停止安裝失敗

public void setStopInstallOnFailure (boolean stopInstallOnFailure)

參數
stopInstallOnFailure boolean

設定測試郵遞區號名稱

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