Description
The Android SDK plug-in includes steps to achieve continuous delivery of Android applications by interacting with emulators and physical devices.
The Android SDK plug-in includes steps to achieve continuous delivery of Android applications by interacting with emulators and physical devices.
The Google Android SDK plugin includes steps to achieve continuous delivery of Android applications by interacting with emulators and physical devices.
This plugin includes one or more steps, click Steps for step details and properties.
This plugin requires HCL Launch 6.0.1 and later.
See Installing plugins in HCL Launch for installing and removing plugins.
The following table describes the changes made in each plugin version.
Version | Description |
---|---|
3 | Minor enhancements |
The Android SDK plugin includes steps to achieve continuous delivery of Android applications by interacting with emulators and physical devices. Use the plugin to do the following tasks:
To access this plug-in in the palette, click Mobile > Android.
The following process steps are available in the Android SDK plugin.
Runs the Android Debug Bridge command.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the adb command. The format can be a path to a file or a space-separated list of arguments. For example, C:\test.properties or devices. |
No | additionalArgs |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Runs the Android tool command.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the Android command. The format can be a path to a file or a space-separated list of arguments. For example, C:\test.properties or list targets. |
Yes | additionalArgs |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Creates an emulator.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the emulator creation command. The format can be a path to a file or a space-separated list of arguments. For example, C:\test.properties or -c 512M. |
No | additionalArgs |
CPU | String | The CPU or ABI of the emulator to create. If the target contains more than one, this value must be specified. | No | cpu |
Create Snapshot | Boolean | Create a snapshot for the emulator. This process can help improve emulator startup performance. | No | snapshot |
Emulator Name | String | The name of the emulator to create. | Yes | name |
Force Creation | Boolean | Force the creation of the emulator. | No | force |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Target ID | String | The target ID to create the emulator with. | Yes | id |
Installs the Android APK application.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the adb install command. The format can be a path to a file or a space-separated list of arguments. For example, C:\test.properties or -l -s. |
No | additionalArgs |
Application Path | String | The Android application package (.apk) to install on the target. | Yes | appPath |
Install Into | Enumeration | Install the application into an emulator or physical device. When you use the “Serial Number” option, specify a serial number in the “Serial Number” property. Values are default, emu, dev, and serial. |
No | target |
Reinstall | Boolean | Reinstall the app and keep existing data. | No | reinstall |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Serial Number | String | The serial number of the device or emulator to use. The “Install into” property must be set to “Serial Number”. | No | serialNumber |
Runs the monkey command for random UI Testing.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the adb shell monkey command. The format can be a path to a file or a space separated list of arguments. For example, C:\test.properties or -v –throttle 100. |
No | additionalArgs |
Event Count | String | The number of events to send to the test. | Yes | eventCount |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Serial Number | String | The serial number of the device or emulator to use. The “Install into” property must be set to “Serial Number”. | No | serialNumber |
Test Against | Enumeration | Tests the application on an emulator or physical device. When you use the “Serial Number” option, specify a serial number in the “Serial Number” property. Values are default, emu, dev, and serial. | No | target |
Removes the Android application.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Keep Data | Boolean | Keep data and cache directories. | No | keepData |
Package Name | String | The package name of the application to be removed. | Yes | pkgName |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Serial Number | String | The serial number of the device or emulator to use. The “Install into” property must be set to “Serial Number”. | No | serialNumber |
Uninstall From | Enumeration | Removes the application from an emulator or physical device. When you use the “Serial Number” option, specify a serial number in the “Serial Number” property. Values are default, emu, dev, and serial. | No | target |
Removes an emulator.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Emulator Name | String | The name of the emulator to create. | Yes | name |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Starts an emulator.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the emulator creation command. The format can be a path to a file or a space-separated list of arguments. For example, C:\test.properties or -c 512M. |
No | additionalArgs |
Emulator Name | String | The name of the emulator to start. | Yes | name |
Load from Snapshot | Boolean | Specifies whether to load the emulator from a snapshot on startup. This process can help improve emulator startup performance. |
No | loadSnapshot |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Stops an emulator.
Name | Type | Description | Required | Property |
---|---|---|---|---|
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Save to Snapshot | Boolean | Saves the emulator snapshot on shutdown. | No | saveSnapshot |
Serial Number | String | The serial number of the emulator to stop. The “Target” property must be set to “Serial Number”. | No | serialNumber |
Target | Enumeration | Specifies the emulator to stop. When you use the “Serial Number” option, specify a serial number in the “Serial Number” property. Values are default, emu, and serial. |
No | target |
Runs the specified UI test against the application.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the adb shell am instrument command. The format can be a path to a file or a space-separated list of arguments. For example, C:\test.properties or -e outputFormat simple. |
No | additionalArgs |
JAR Files | String | The JAR files that contain the UI tests. The format is a space-separated list of files. | Yes | jars |
Push to Target Path | String | The path on the target where to push the JAR files. If no path is provided, existing resources on the target are used. | No | jarPath |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Serial Number | String | The serial number of the device or emulator to use. The “Install into” property must be set to “Serial Number”. | No | serialNumber |
Test Against | Enumeration | Runs the UI test against an emulator or physical device. When you use the “Serial Number” option, specify a serial number in the “Serial Number” property. Values are default, emu, dev, and serial. | No | target |
Test Classes | String | The class or package name for the test to run. The format can be a path to a file or a space-separated list of classes. | Yes | classes |
Runs the specified unit test against the application.
Name | Type | Description | Required | Property |
---|---|---|---|---|
Additional Arguments | String | Allows for providing additional arguments that are not provided in the step properties for the adb shell am instrument command. The format can be a path to a file or a space-separated list of arguments. For example, C:\test.properties or -e key value –no-windows-animation. |
No | additionalArgs |
Package Name | String | The package name for the tests. | Yes | pkgName |
Raw Format | Boolean | Output the results in raw format. | No | rawOutput |
Runner Class | String | The class name for the instrumented test runner. | Yes | runner |
SDK Installation Path | String | The path to the Android SDK installation. For example, C:\android-sdk. | Yes | pathToSDK |
Serial Number | String | The serial number of the device or emulator to use. The “Install into” property must be set to “Serial Number”. | No | serialNumber |
Test Against | Enumeration | Runs the unit test against an emulator or physical device. When you use the “Serial Number” option, specify a serial number in the “Serial Number” property. Values are default, emu, dev, and serial. | No | target |