Continuous Testing cloud platform provides additional application capabilities for your Appium based tests.
These capabilities give you better control over the state of the application before a tests is run.
Name | Description |
---|---|
app | The path to the application files, which would be installed and launched
|
instrumentApp | Instrument the application. Default: false |
noReset |
|
fullReset | Uninstall the application completely before installing it again. Relevant only when the app capability specified. Upon test completion, the application will be uninstalled (driver.quit()). When appears with noReset = true the application will stay on the device at the end of the test (when app capability is provided) When appears with noReset = false the application will not be uninstalled at the beginning, only at the end of the test (when app capability is not provided) Default: false |
applicationClearData | Clears the application data. See application clear data for more information When one of noReset or fullReset or both is set true, then applicationClearData will have no effect. Default: false |
autoWebview | Moves application into web view context. |
appBuildVersion (formerly appVersion) | Used only when installing a cloud application. Specifies the application build version for installation. |
appReleaseVersion | Used only when installing a cloud application. Specifies the application release version for installation. |
installOnlyForUpdate | Install the application only if the desired version is different from the application version on the device (or if the app does not exist on the device). Otherwise, keep the application on the device. That will greatly improve session creation time for testings on the same application version The following desired capability must also be specified if using this feature:
The installation of the package on the device will happen in the following cases:
iOS Example dc.setCapability(MobileCapabilityType.APP, "cloud:com.experitest.ExperiBank"); dc.setCapability(IOSMobileCapabilityType.BUNDLE_ID, "com.experitest.ExperiBank"); dc.setCapability("appBuildVersion", "2.23"); dc.setCapability("installOnlyForUpdate", true); Android Example dc.setCapability(MobileCapabilityType.APP, "cloud:com.experitest.ExperiBank/.LoginActivity"); dc.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, "com.experitest.ExperiBank"); dc.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, ".LoginActivity"); dc.setCapability("appBuildVersion", "4352"); dc.setCapability("appReleaseVersion", "1.01"); dc.setCapability("installOnlyForUpdate", true); |
dontGoHomeOnQuit | The device will remain in last left state even after ending the test Default: false |