A tool to convert HAR files into a locustfile.
Project description
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
Note that the new major version of Locust (1.0 and up) is not yet supported. Please make sure you have a compatible Locust to run your locustfiles:
pip install locustio==0.14.6
We hope to lift this restriction very soon!
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.
License
This project is licensed under the MIT license — see the LICENSE.md file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for har_transformer-1.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d904d0eff13db86ca8e47f7f4ee9fc6a634f5212f3b64be7bece304b492c7e |
|
MD5 | 525d63ac657c3e4374b99195da6c9347 |
|
BLAKE2b-256 | 2aaac264e47f99bfa35321affd9bf792f639bf12e8b51fa6568f4796a025563c |