Legacy | Get WiFi IP address

  • Command: ipAddress

  • Subcommand: get

  • Supported Platforms: Native (legacy), UFT, Selenium,

    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, Windows, Blackberry

Description

Retrieves the internal IP address of the device. Verify that the device is connected to WiFi.

Returns the internal IP address of the device in Lab WiFi.

Parameters

Name Value Default Description
deviceID*     The device for this command.
variable     The variable name to receive the ip address.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-02_09_02_04_781?operation=command&securityToken=<your_token>&command=ipAddress&subcommand=get&param.deviceId=6370E775
Copy

JSON response

{
    "reportPdfUrl":"http://reporting-int.aws-stg.perfectomobile.com/export/api/v1/test-executions/pdf?externalId[0]=<session-id>",
    "reason":"Success",
    "timer.elapsed":"280",
    "returnValue":"1.0.52.17",
    "testGridReportUrl":"https://system-tests.reporting-stg.perfectomobile.com?externalId[0]=<session-id>",
    "description":"Success",
    "timer.system":"280",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "executionId":"<session-id>",
    "timer.ux":"0",
    "singleTestReportUrl":"<report-url>",
    "reportKey":"PRIVATE:controller/161226/controller_16-12-26_11_56_10_67.xml",
    "timer.device":"0"    }