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

Last updated: Dec 17, 2019 19:10

Command: vnetwork

Subcommand: update

Supported Platforms: Native,UFT,Selenium,Appium

Supported OS: Android, iOS

Updates the network virtualization for the device with the specified conditions. For any condition that is not specified, the system will continue to use the existing value.

Description

For network conditions testing, the device being used is connected to the Web via Perfecto WiFi– setup is completed by Perfecto Mobile.

Use the Network virtualization start and update commands to activate and update the network conditions. Without this activation there is no effect on the device communication to the Web.

Click here to see typical network emulation values.

Emulation of problematic networks

Problematic LevelPacket loss (%)Corruption (%)Duplication(%)Reorder
Steady Network1002
Noisy Network2205
Unstable Network33210
Very Unstable Network55520

Parameters

 * Mandatory parameter

Request & Response 

Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-09_12_44_59_31771?operation=command&securityToken=<your_token>&command=vnetwork&subcommand=update&param.deviceId=FA53XYJ18894&param.profile=2g_gprs_average 
JSON Response
{
  "executionId": "john@perfectomobile.com_controller_16-11-09_12_44_59_31771",
  "reason": "Success",
  "timer.elapsed": "438",
  "testGridReportUrl": "https://mycloud.reporting-01.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-09_12_44_59_31771",
  "timer.ux": "0",
  "singleTestReportUrl": "https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161109/controller_16-11-09_12_44_59_31771.xml&ownerId=john@perfectomobile.com&sharingCode=993fbf5a-7d97-4390-892e-734fac09c4dd",
  "description": "Success",
  "timer.system": "438",
  "reportKey": "PRIVATE:controller/161109/controller_16-11-09_12_44_59_31771.xml",
  "completed": "true",
  "flowEndCode": "SUCCEEDED",
  "timer.device": "0"
}