Fiddler HAR record
Fiddler is a free web-proxy which allows to capture HTTP and HTTPS requests and responses. Fiddler is very simple to use once configured. It allows to record HTTP scenarios within minutes.
Download Fiddler and install Fiddler. Then, launch Fiddler. It should configure the HTTP proxy automatically on your browser and starts recording HTTP requests.
Fiddler needs to be set up properly in order to record HTTPS Traffic:
- Click on Tools > Preferences..., a dialog should be displayed,
- Select HTTPS tab in the preferences dialog,
- Check Capture HTTPS CONNECTs and Decrypt HTTPS Traffic,
- Export and Trust Fiddler Root Certificate.
Response Bodies Configuration
This is an important step. Variable Extractors and Correlation Rules are important features that require response bodies.
- In the bottom left text field dedicated to command-line, put prefs set fiddler.importexport.HTTPArchiveJSON.MaxTextBodyLength 10000000,
- Press Enter.
This configures Fiddler to save response bodies up to 10.000.000 bytes.
Sets the text response body max length to 10.000.000 bytes
Hide HTTPS Connects
To avoid any "noise" in your recording, it is also recommended to hide the HTTPS connects. This way only HTTP/S requests will be exported from fiddler:
Recording the scenario
Record your scenario by browsing with your favorite web-browser. The requests and responses should appear in fiddler. Once finished, export your recorded fiddler sessions. Remove any unwanted request from the list before saving it. Now, it's time to export the recording as HAR.
Saving the recording
Click on File > Export Sessions > All sessions... in the top menu. A dialog should ask you the preferred export format.
Choose HTTPArchive v1.2 export format and click on Next. Save the file on your disk.
Create Virtual User: Import HAR
Great, we're just one step behind having a virtual user created from a Fiddler recording. Import the previously saved HAR file on OctoPerf.
Simply drop the file in the HAR area or use the Choose File button. The download starts automatically.
You will end up with a virtual user created from your recorded HAR file. This user simulates exactly the same actions as you did in your web-browser during the recording.