Google is committed to advancing racial equity for Black communities. See how.
This page was translated by the Cloud Translation API.
Switch to English

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