Legacy | Application.Info

  • Command: application

  • Subcommand: info

  • Supported Platforms: Native (legacy), UFT (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: iOS

Description

Retrieves the specified application property and can insert the value into a defined variable. Use the Property parameter to specify the webpage property to retrieve. Use the Property parameter to specify the application property, application version or orientation, to retrieve. Only one property value or performance value can be specified in each command.

The Response provides the value of the requested property value in the returnValue field.

Parameters

Name Value Default Description
deviceId*     The device for this command.
name     The application name as it is displayed on the device screen.
identifier     The identifier of the application.
property     The application property, application version, or orientation to retrieve.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-12-08_08_14_17_415?operation=command&securityToken=<your_token>&command=application&subcommand=info&param.deviceId=6BA14A93C1DE5748D3E65C555CCE67FCC9EBD4CA&param.property=orientation
Copy

JSON response

{
    "reason":"Success",
    "timer.elapsed":"469",
    "returnValue":"1",
    "testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-12-08_08_14_17_415",
    "description":"Success",
    "timer.system":"78",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "executionId":"john@perfectomobile.com_controller_16-12-08_08_14_17_415",
    "timer.ux":"391",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161208/controller_16-12-08_08_14_17_415.xml&ownerId=john@perfectomobile.com&sharingCode=a29ae726-7600-44b3-b56e-2b48313f1301",
    "reportKey":"PRIVATE:controller/161208/controller_16-12-08_08_14_17_415.xml",
    "scopes":"0",
    "timer.device":"391"}