Testing

What is PCAP file in LoadRunner?

Pcap acronym is Packet Capture file which will have the network packet data captured by tools such as Wireshark, tcpdump, Kismet etc. The extension of Pcap file *.pcap. LoadRunner is capable of parsing pcap files and converts into script just like Fiddler session.

The recorded pcap file can be used for sniffing and analyzing the network activity.

To analyze the traffic and create a web services Vuser script for Web Services protocol, follow the below steps.

How to Create a PCAP File

  • Create a new web services protocol script in LoadRunner
  • Click on Analyze Traffic button. It will open Analyzing Traffic Wizard window which will have two step process.
  • In Add Services step, map the services which you want to analyze and then click on Next
  • Next, specify the traffic information by mapping the captured *.pcap file. You need to specify the incoming/outgoing server details, and further configuration such as Action, traffic filters and SSL configuration also can be added.
  • Click on Finish button

Pcap file will have lots of data which will be very tough to interpret. It is ideal to capture the traffic only when performance business actions.

If you get below error, make sure that there is no background network traffic is on.

Warning: One or more responses are missing or have missing packets. Therefore, a step may appear to be missing in the script.  This issue can be caused if the recording was stopped before all the responses were received. If the script is generated from a .pcap file, check if the file has missing packets.

Once a week we send a digest with the most popular articles.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

New Year. New Hope. Learn TruWeb. 78% OFF for Limited Time of my Udemy course..BUY NOW