Skip to main content

A tool to convert HAR files into a locustfile.

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

har-transformer-1.2.6.tar.gz (31.7 kB view hashes)

Uploaded Source

Built Distribution

har_transformer-1.2.6-py3-none-any.whl (37.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page