Upon selecting the HAR option you will be prompted with a list of HAR recorders that you can use. You can check the dedicated page for the various recorders:
OctoPerf can import any HAR file, if you have a different recorder, import it as if it was from Firefox.
Container generation mode¶
Chrome sets a page reference for every page in the HAR, this allows us to create containers that fit the application pages perfectly.
However the dev team of Chrome made the decision to not store response contents in the HAR (except if you click them one by one in the dev tools before exporting). And because of this we do not recommend using Chrome as a recording option. You would otherwise miss the response bodies when using the debug panel to compare recording versus replays.
Container generation will be done based on the timestamps inside the HAR file.
This means that everytime we see a gap of more than 2 seconds inside the HAR, this idle time is seen as interaction time by the user. As such this means the page is fully loaded and the next requests should be placed in a brand new container.
So as long as you pace your recording to leave 2 seconds of idle time between your clicks containers will be created to match the structure of your application. If this mode doesn't give you satisfactory results we recommend using the manual mode described below.
using this option you can enter container names while you do the recording using any HAR recorder. We will later compare the timestamps in this timeline to the ones inside your HAR in order to create the proper structure for your virtual users.
Traffic from the HAR that is outside the timeline will not be imported. If you think your recording is incomplete, try importing the HAR again with Automatic mode to see the difference.
Click the blue arrow or hit enter to open the recorder window.
Click the + button or hit the Enter key to add a new container with the name you provided. We automatically add incremental numbers in the name field to generate a simple, ordered structure. All traffic recorded during that time will be placed under that container name when you import the HAR.
You can reset the timeline at any moment in order to start over. Be careful because reset cannot be reverted.
If you hit the Stop button we will disable all traffic recorded during that time, but it will still be imported:
You can resume recording at any time by simply entering a new container name.
Your container timeline will be kept until you import the HAR file. You can go back and forth between the last step and the container timeline if you need to edit it:
Your container timeline will be lost if you leave or refresh the page. If you want to use it, make sure to finish your HAR import before leaving OctoPerf.