Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Mar 19, 2020 14:56

Note: In preparation for the Flash end-of-life (EOL) at the end of 2020, we have made a new solution available that replaces the Perfecto native automation commands clean device, reboot device, and get network settings. For details, see Create, execute, and schedule maintenance scripts (Perfecto IDE alternative).

Command: network.settings

Subcommand: get

Supported Platforms: Native, UFT, Selenium, Appium

Supported OS: Android, iOS

Retrieves the network settings and can insert its value into a defined variable. Use the Property parameter to specify the network setting to retrieve.

Description

Returns the status of the network settings properties wifi, data, and airplane-mode for both Android and iOS devices.

This method returns information regarding which of these are enabled/disabled:

  • WiFi,
  • Data (only valid for devices with a valid SIM card installed),
  • Airplane Mode.

Note: If Airplane Mode is enabled then Data will be disabled.

Parameters

 * Mandatory parameter

Request & Response

Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_09_26_26_940?operation=command&securityToken=<your_token>&command=network.settings&subcommand=get&param.deviceId=6370E775
JSON Response
 {
  "reason": "Success",
  "timer.elapsed": "109",
  "returnValue": "{airplanemode=true, wifi=false, data=false}",
  "testGridReportUrl": "https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "description": "Success",
  "timer.system": "109",
  "completed": "true",
  "flowEndCode": "SUCCEEDED",
  "executionId": "john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "timer.ux": "0",
  "singleTestReportUrl": "https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml&ownerId=john@perfectomobile.com&sharingCode=166ca97d-a844-443e-bb78-99da59f69f8f",
  "reportKey": "PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml",
  "timer.device": "0"
}