InstallAllTestZipAppsSetup

public class InstallAllTestZipAppsSetup
extends BaseTargetPreparer implements ITargetCleaner

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


A ITargetPreparer that installs all apps in a test zip. For individual test app install please look at TestAppInstallSetup.

Summary

Fields

List<String> mPackagesInstalled

Public constructors

InstallAllTestZipAppsSetup()

Public methods

void setCleanup(boolean cleanup)
void setStopInstallOnFailure(boolean stopInstallOnFailure)
void setTestZipName(String testZipName)
void setUp(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

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

Perform the target cleanup/teardown after testing.

Fields

mPackagesInstalled

List<String> mPackagesInstalled

Public constructors

InstallAllTestZipAppsSetup

InstallAllTestZipAppsSetup ()

Public methods

setCleanup

void setCleanup (boolean cleanup)

Parameters
cleanup boolean

setStopInstallOnFailure

void setStopInstallOnFailure (boolean stopInstallOnFailure)

Parameters
stopInstallOnFailure boolean

setTestZipName

void setTestZipName (String testZipName)

Parameters
testZipName String

setUp

void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

Throws
TargetSetupError
DeviceNotAvailableException

tearDown

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

Perform the target cleanup/teardown after testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

e Throwable: if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.

Throws
DeviceNotAvailableException