Skip to main content

Install

Description

Use this command to install an application in run time.

Parameters

NameTypeDescription
PathstringPath of the application to be installed. Can be either a URL or the application path in the cloud.
Instrumentboolean* True - Instrumented

* False - Non-instrumented
KeepDataboolean* True - Upgrades the existing application installed without losing its data.

* False - Reinstalls the application and deletes the old data.
info

In iOS, KeepData does not have effect.  Data is kept when using same provision profile. Otherwise the data is lost.

info

Installing applications on grid clients from a local path has been deprecated. Instead, use cloud applications.

Use Case

Because the report is the sum of all steps (closely linked with the commands that you issued during the test), you may want to inject custom steps and messages into the report in order to enrich the report and provide additional information that is not found in the report, or is printed to the console instead. The command also lets you decide whether the step has failed or passed.

Example

info

Replace <server> with the appropriate URL.

Usage of Install Command

driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);


....
....


//installing from a url
seetest.install("http://d242m5chux1g9j.cloudfront.net/eribank.apk", true, true);
//installing from a cloud path
seetest.install("cloud:com.experitest.ExperiBank/.LoginActivity", true, true);
info

Normally when using this command, you use the launch command with it.