How to capture a HAR file
Aifric Delahunty avatar
Written by Aifric Delahunty
Updated over a week ago

What is a HAR file?

A HAR file can be used to analysis the status of your network, it is primarily used for identifying performance issues, such as bottlenecks, slow load times, and page rendering problems. They are therefore useful when helping us to identify the cause behind performance issues that you may be experiencing. Below is a step-by-step guide on how to capture a HAR file.

Step-by-step guide

  1. Open your browser, e.g. Chrome or Edge.

  2. Enable the browser console. In Chrome or Edge, you can do this by pressing the key combinations below and a new window will open:

    1. MacOS: Option + ⌘ + J

    2. Windows/Linux: Shift + CTRL + J

  3. From this new window (called the “console”) select the “Network” tab, as in the screenshot below:

  4. Switch back to the main browser window and load the Sensat Platform project.

  5. Wait 2-3 minutes for the project to load or while you reproduce the problematic scenario.

  6. Switch back to the browser console, and download the HAR file, as shown in the screenshot below:

  7. Send the HAR file to Sensat for analysis and investigation, along with:

    1. Project URL

    2. Time of day

    3. User email used for authentication

    4. A brief description of what you’re observing in the browser (or what you are expecting to be there but it is missing). A screenshot of the browser view will help as well.

Did this answer your question?