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
The following procedure explains how to import an HTTP archive in Kraken:
- In the simulations tree, open the contextual menu,
- Click on Upload HAR, a file upload dialog appears,
- Select an
.harfile, the download automatically starts,
- When the download is done, the Import HAR dialog opens,
- Select a Simulation package, following the Java package naming convention,
- Select a Simulation name, following Java class names conventions,
- Select a Host machine to execute the HAR import task,
- Click on Import, the simulation
.scalafile 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:
- Recording a HAR on Chrome,
- Recording a HAR on FireFox,
- Recording a HAR using Fiddler,
- Recording a HAR with Charles Proxy.
Behind the hood¶
Importing a HAR file is in fact divided in several operations:
- Uploading the HAR file,
- Running a Task that executes several Docker containers thanks:
- One that runs Gatling's HAR recorder,
- One that runs Kraken HAR Importer (converts a HAR file into debug entries).
Import Scala Scripts¶
In case you already have Gatling scripts that you want to execute, follow this procedure to import them:
- Create folders according to the simulation package (for example create the folders
comand inside it
testfor the package com.test),
- Upload the Gatling
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.