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

void startCaptureNetworkDump(String localFilePath)

void stopCaptureNetworkDump()

Supported in iOS Supported in Android
 

Description

Start/Stop capture of device network traffic for a cloud device.

The capture will start when startCaptureNetworkDump is executed.

The capture will stop at the end of the test run or when stopCaptureNetworkDump is executed.

Parameters

  • localFilePath: Full path of the requested file download destination.


Example:   

In the following example, we will start the capture, wait for 5 seconds and stop.

Code Examples

Java Example
client.startCaptureNetworkDump("C:\\tmp\\device.pcap");

client.stopCaptureNetworkDump();
C# Example
client.StartCaptureNetworkDump("C:\\tmp\\device.pcap");

client.StopCaptureNetworkDump();
VBScript Example
client.StartCaptureNetworkDump("C:\\tmp\\device.pcap");
client.StopCaptureNetworkDump();
Python Example
self.client.startCaptureNetworkDump("C:\\tmp\\device.pcap")

self.client.stopCaptureNetworkDump()
Perl Example
$client->startCaptureNetworkDump("C:\\tmp\\device.pcap");

$client->stopCaptureNetworkDump();
  • No labels