The Parasoft PCAP Parser reads packet capture (PCAP) files created using the Wireshark network protocol analysis tool and uses them to create traffic files that can used in Parasoft virtual assets or test scenarios.

In this section:

Prerequisites

  • Java 8 or higher
  • A PCAP library (see Troubleshooting)
  • A Wireshark PCAP file
  • Parasoft SOAtest/Virtualize 2020.1 or higher

Usage

Run the com.parasoft.soavirt.utilities.pcapparser-<version>.jar to convert PCAP files into traffic files. The traffic files can then be used to generate virtual assets or test scenarios in Parasoft SOAtest, Virtualize, or Continuous Testing Platform (CTP).

The basic command for running the utility is:

java -jar com.parasoft.soavirt.utilities.pcapparser-<version>.jar -pcap <inputPcapFile> -traffic <outputTrafficFileName>.txt

The following example command will create an output.txt file:

java -jar com.parasoft.soavirt.utilities.pcapparser-1.0.0.jar -pcap parabank_soap_wireshark.pcap -traffic output.txt

You can convert the file into a virtual asset or test scenario. See REST and SOA Functional Tests.To view all available commands, run java -jar com.parasoft.soavirt.utilities.pcapparser-<version>.jar.

Troubleshooting

The PCAP Parser requires a native PCAP library be installed on the system. On Linux and Mac, you will need libpcap installed. On Windows, there are two libraries available: WinPcap and Npcap. You may use either one, though be aware that there might be additional configuration necessary with Npcap. See the README file that accompanies the PCAP Parser distribution for more details.

A sample PCAP file is packaged with the PCAP Parser distribution for testing purposes.

Third-party Content

This extension includes items that have been sourced from third parties as outlined below.

  • pcap4j
  • pkt


  • No labels