Legacy | Device info
-
Command: device
-
Subcommand: info
-
Supported Platforms: Native (legacy), Selenium, Appium
All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.
-
Supported OS: Android, iOS
Description
Retrieves the specified device property and inserts its value into a defined variable. Use the Property parameter to specify the device property to retrieve.
Parameters
Name | Value | Default | Description |
---|---|---|---|
deviceID* | The device for this command. | ||
property |
manufacturer (Manufacturer) model (Model) phoneNumber (Phone number) deviceId (Device ID) resolution (Resolution) resolutionWidth (Resolution width) resolutionHeight (Resolution height) os (OS) osVersion (OS version (Major)) firmware (Firmware) location (Location) network (Network) distributer (Distributer) language (Language) imsi (Imsi) nativeImei (Native Imei) wifiMacAddress (Wi-Fi MAC address) cradleId (Cradle ID) status (Status) inUse (In use) description (Description) position (Position) method (Method) rotation (Rotation) locked (Locked) currentActivity (Current activity) currentPackage (Current package) operabilityRatingScore (Operability score) hasAudio (Has audio) automationInfrastructure (Automation infrastructure) all () capability () roles () operabilityRatingDescription () powerSource () offlineCharging () |
The device property to be retrieved. | |
variable | The identifier of the application. |
* Mandatory parameter
Request & Response
The following example retrieves the location property from the device.
Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-02_12_21_16_829?operation=command&securityToken=<your_token>&command=device&subcommand=info¶m.property=location¶m.deviceId=6370E775
JSON response
{
"executionId":"john@perfectomobile.com_controller_16-11-02_12_21_16_829",
"reason":"Success",
"returnValue":"US-MA-QA Test Lab",
"testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-02_12_21_16_829",
"singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161102/controller_16-11-02_12_21_16_829.xml&ownerId=john@perfectomobile.com&sharingCode=e967892e-5541-4b12-aa04-dc039ed8908f",
"description":"Success",
"reportKey":"PRIVATE:controller/161102/controller_16-11-02_12_21_16_829.xml",
"completed":"true",
"flowEndCode":"SUCCEEDED"}