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.

Installation

Download Fiddler and install Fiddler. Then, launch Fiddler. It should configure the HTTP proxy automatically on your browser and starts recording HTTP requests.

HTTPS Configuration

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.

Fiddler HTTPS Preferences

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.

Fiddler Preferences

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:

Hide connects

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.

Fiddler Recording

Saving the recording

Fiddler Export Sessions

Click on File > Export Sessions > All sessions... in the top menu. A dialog should ask you the preferred export format.

Fiddler Export Format

Choose HTTPArchive v1.2 export format and click on Next. Save the file on your disk.

Fiddler Save File

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.

Create Virtual User from HAR

Simply drop the file in the HAR area or use the Choose File button. The download starts automatically.

Note

You may select Download resources automatically if you want OctoPerf to remove the static resources requests (images, JavaScript and Css files, etc.). These requests will then be downloaded dynamically during runtime.

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.

Imported Virtual User