All Articles

Fiddler and LoadRunner Vugen

LoadRunner can create Vugen script from any captured traffic files such as .cap, .pcap, .saz or .har which are usually captured using tools like Fiddler, HTTPWatch, Chrome DevTools etc.

Capture traffic using Fiddler

First step is to prepare your capture archive file. If you are new to fiddler, you might want to read it here. Anyways, let’s continue with the steps:

  1. Lets open up fiddler, start capturing the http traffic and launch chrome.

  2. Navigate to https://duckduckgo.com in Chrome and search for happy hour. You should see something like below in fiddler: recorded traffic in fiddler

  3. Add comments in fiddler session by pressing m or right-click for options: add comments in fiddler

  4. Save all sessions in an fiddler archive file (DuckDuckGo.saz) click save all traffic in Telerik Fiddler

Create LR Script

When it comes to generating LR scripts out of captured file, it’s fairly easy and we have couple of options

Usual way

  1. Create new test in LoadRunner VuGen: create new test in VuGen

  2. New vuser (virtual user) script looks like following figure: new vuser script

  3. Click Start Recording, select Captured Traffic File Analysis in Record, browse and select the DuckDuckGo.saz file and hit start recording! start recording

  4. When above step is finished processing, you have a full fledged Vugen script. Voila! generated script

Alternate way

If your LR was installed properly, you could also right-click on any captured traffic file (.cap, .pcap, .saz or .har) and select Create VuGen script. LoadRunner Create VuGen script

Note: this only works with protocols: Web - HTTP/HTML, Flex, SAP - Web, and Siebel - Web.