Install
Description
Use this command to install an application in run time.
Parameters
Name | Type | Description |
---|---|---|
Path | string | Path of the application to be installed. Can be either a URL or the application path in the cloud. |
Instrument | boolean | * True - Instrumented * False - Non-instrumented |
KeepData | boolean | * True - Upgrades the existing application installed without losing its data. * False - Reinstalls the application and deletes the old data. |
In iOS, KeepData
does not have effect. Data is kept when using same provision profile. Otherwise the data is lost.
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
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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);
Normally when using this command, you use the launch command with it.