Network virtualization stop (FR)
Perfecto Command
mobile:vnetwork:stop
Purpose
Stops the network virtualization for the device and saves the PCAP file to the repository. The PCAP file logs the network traffic. The parameter indicates if the should be attached to the execution report. If will then be included as a link in the extracted PDF and HTML report.
Parameters
Name | Type | Possible Values | Description |
---|---|---|---|
pcapFile | String | True | False | Indicates whether to attach the generated PCAP file to the execution report. |
Return Value
None
Exceptions
None
Examples
Copy
Java sample
Map<String, Object> pars = new HashMap<>();
driver.executeScript("mobile:vnetwork:stop", pars);
Copy
C# sample
Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("pcapFile", "true");
driver.ExecuteScript("mobile:vnetwork:stop", pars);