Skip to content

Import HAR and Script Files

Import HTTP Archives

The HTTP archives format is an open format for exporting and exchanging data collected by HTTP monitoring tools.

This format is based on a JSON structure, usually stored in .har files.

Import HAR

The following procedure explains how to import an HTTP archive in Kraken:

  1. In the simulations tree, open the contextual menu,
  2. Click on Upload HAR, a file upload dialog appears,
  3. Select an .har file, the download automatically starts,
  4. When the download is done, the Import HAR dialog opens,
  5. Select a Simulation package, following the Java package naming convention,
  6. Select a Simulation name, following Java class names conventions,
  7. Select a Host machine to execute the HAR import task,
  8. Click on Import, the simulation .scala file is automatically generated and debug results are generated.


Right-click on an already uploaded HAR file and click on the Import HAR menu item to re-import it.

Record a HAR file

HAR Recording is well explained in OctoPerf's documentation:

Behind the hood

Importing a HAR file is in fact divided in several operations:

In case you need to fine tune how the HAR import is configured, you may want to update the corresponding Gatling configuration files in the Administration App.

Import Scala Scripts

In case you already have Gatling scripts that you want to execute, follow this procedure to import them:

  1. Create folders according to the simulation package (for example create the folders com and inside it test for the package com.test),
  2. Upload the Gatling .scala simulation files.


You can import several simulations at once, provided they belong to the same package.

Upload Resource Files

Some test simulation may require external files, for example CSV dataset or body contents.

Follow the documentation about files uploading and downloading to upload these in the resource files tree.