GetApplicationInfo
Description
Use this command to get specific application info, given a key parameter for the requested information.
These types of information are supported for both platforms:
- Application version number.
- Application build number.
Parameters
Name | Type | Description |
---|---|---|
BundleId | String | Application package name. |
Key | String | The requested info key name. These are valid for iOS and Android: * releaseVersion - The application version. * versionName - The application release build number. In iOS , CFBundleShortVersionString can also be used instead of versionName. CFBundleVersion can also be used instead of releaseVersion In Android. versionCode can also be used instead of releaseVersion. |
iOS Additional Application Information
In addition to the application version number and the application build number, in iOS you can get additional application information.
This feature is only supported for primitive types, for example, objects whose value type is NSString, NSNumber, or NSDate.
Some commonly used properties are MinimumOSVersion, DTSDKName, and CFBundleDevelopmentVersion.
You can find more properties by inspecting the info.plist file in the application IPA.
Usage
info
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
Example
GetApplicationInfo
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
driver = new AndroidDriver(new URL("<server>"), dc);
client = new SeeTestClient(driver);
...
...
//Get Version name of the application name ... For Android
client.getApplicationInfo("com.experitest.Eribank","versionName");