har-transformer

A tool to convert HAR files into a locustfile.


Keywords
load, testing, locust, har, load-testing
License
MIT
Install
pip install har-transformer==2.0.0

Documentation

Transformer logo


travis-ci status badge pypi version badge code quality badge test coverage badge Code style: Black

Transformer

A command-line tool and Python library to convert web browser sessions (HAR files) into Locust load test scenarios ("locustfiles").

Use it to replay HAR files (storing recordings of interactions with your website) in load tests with Locust.

Installation

Install from PyPI:

pip install har-transformer

Install Locust to run your locustfiles:

pip install locust

Usage

Example HAR files are included in the examples/ directory, try them out.

Command-line

transformer my_har_files_directory/ >locustfile.py

Library

import transformer

with open("locustfile.py", "w") as f:
    transformer.dump(f, ["my_har_files_directory/"])

Documentation

Take a look at our documentation for more details, including how to generate HAR files, customize your scenarios, use or write plugins, etc.

Authors

See also the list of contributors to this project.

License

This project is licensed under the MIT license — see the LICENSE.md file for details.