Install(app, Instrumented, KeepData )
Install the application on the tested device during runtime.
Note: Throws an exception if installation is not successful.
Application: Application name.
Application identifier which is available on the application manager
Path to the application on local disk
Install from URL (supported protocols HTTP/HTTPS (Default Ports: 80/443))
To install application from HTTPS: add the line "trust.ignore=true" to the app.properties file located in the %appdata% folder.
Instrument: Boolean (relevant only for installation not by the Application identifier).
true: will be installed instrumented
false: will be installed regularly without instrumentation
KeepData - (Only for android)
true: will upgrade the existing application installed without losing its data.
false: will run over the application
Scenario: In the following example we will use the application identifier as available on the application manager (No need to specify a version number)
|
|
|
|
|
Parameters:
Path: Application path – set to com.imdb.mobile/.Home
instrument: Not relevant - Will always be installed instrumented
KeepData: Will be set to True
client.install("com.imdb.mobile/.Home", true, true);client.Install("com.imdb.mobile/.Home", true, true);client.Install("com.imdb.mobile/.Home", true, true);self.client.install2("com.imdb.mobile/.Home", True, True);$client->install2("com.imdb.mobile/.Home", 1, 1);client.install("com.imdb.mobile/.Home", true, true);ic_install(&c, "com.imdb.mobile/.Home", IC_TRUE, IC_TRUE);Scenario: In the following example we will use the 'Install' command with a path to IMDb apk available on the local disk. We will set the instrument parameter to true in order to instrument the app during installation.
|
|
|
|
|
Parameters:
Path: Application path – set to C:\applications\com.imdb.mobile.apk
Instrument: Will be set to True
Keep Data: Will be set to True
client.Install("c:\\applications\\com.imdb.mobile.apk", true, true);client.Install("c:\\applications\\com.imdb.mobile.apk", true, true);client.Install("c:\\applications\\com.imdb.mobile.apk", true, true);self.client.install2("c:\\applications\\com.imdb.mobile.apk", True, True);$client->install2("c:\\applications\\com.imdb.mobile.apk", 1, 1);client.install("c:\\applications\\com.imdb.mobile.apk", true, true);ic_install(&c, "c:\\applications\\com.imdb.mobile.apk", IC_TRUE, IC_TRUE);Scenario: In the following example we will use the 'Install' command with a path to IMDb apk available at a specific url. We will set the instrument parameter to true to instrument the app during installation.
Note: Supported only for .ipa, .apk and .xap files.
|
|
|
|
Parameters:
Path: Application path – set to http://192.168.1.234/Application%20Collection/com.ebay.mobile.activities.eBay.2.apk
instrument: Will be set to True
Upgrade: Will be set to True
If authentication is needed, user can set the username and password in the URL like: http://username:password@www.buildserver.com/application.apk
Whenever the appPath supplied by the USER doesn’t contain a supported URL prefix the command will look for an app package on the local machine.
client.install("http://192.168.1.234/Application%20Collection/com.imdb.mobile-1.apk", true, true);client.Install("http://192.168.1.234/Application%20Collection/com.imdb.mobile-1.apk", true, true);client.Install("http://192.168.1.234/Application%20Collection/com.imdb.mobile-1.apk", true, true );self.client.install2("http://192.168.1.234/Application%20Collection/com.imdb.mobile-1.apk", True, True);$client->install2("http://192.168.1.234/Application%20Collection/com.imdb.mobile-1.apk", 1, 1);client.install("http://192.168.1.234/Application%20Collection/com.imdb.mobile-1.apk", true, true);ic_install(&c, "http://192.168.1.234/Application%20Collection/com.imdb.mobile-1.apk", IC_TRUE, IC_TRUE);
Download stops in the middle:
Command failure
.
Response: Download failure error message.
Download process takes a long time.
Response: Message indicating long timeout:
Command failure
.
URL is not valid:
Command failure
.
Response: URL related error message.
Authentication failure:
Command failure.
Response: Message indicating unauthorized download due to wrong credentials.
Instrumentation failure.
Downloaded app is not compatible to the device’s OS.
Response: Instrument and import the downloaded app anyway (command will fail on installation).
Downloaded app is not compatible to the device’s OS:
Command failure
.
Response: OS related error message.
SDK is not compatible with the downloaded app:
Command failure
.
Response: SDK related error message.
iOS device is not included in the provision:
Command failure
.
Response: Provision related error message.