CaptureNetworkDump
Description
Use this command to start and stop device network traffic capture for a cloud device. The capture starts when startCaptureNetworkDump
is executed. The capture stops at end of the test run or when stopCaptureNetworkDump
is executed.
Parameters
Name | Value | Description |
---|---|---|
localFilePath | String | Full path of the requested file download destination. |
Usage
info
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
Example
CaptureNetworkDump
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
...
...
seetest.startCaptureNetworkDump("C:\\tmp\\device.pcap");
seetest.stopCaptureNetworkDump();