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

Last updated: May 14, 2017 11:05

Command: vnetwork

Subcommand: start

Supported Platforms: Native,UFT,Selenium,Appium

Supported OS: Android, iOS

Starts the network virtualization for the device with the specified conditions. Network virtualization will be stopped when the script ends.

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.

Selecting latency effects both in and out traffic. For example, selecting latency of 100, results with the actual latency being 200 - 100 each way.

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&user=john@perfectomobile.com&password=123456&command=vnetwork&subcommand=start&param.deviceId=FA53XYJ18894&param.profile=2g_gprs_good 
JSON Response
{
  "reason": "Success",
  "timer.elapsed": "750",
  "returnValue": "1.0.53.13:686",
  "testGridReportUrl": "https://mycloud.reporting-01.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-09_12_44_59_31771",
  "description": "Success",
  "timer.system": "750",
  "completed": "true",
  "flowEndCode": "SUCCEEDED",
  "executionId": "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",
  "reportKey": "PRIVATE:controller/161109/controller_16-11-09_12_44_59_31771.xml",
  "timer.device": "0"
}