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
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.
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-3.0.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 854dc573ad43992759cb7744e5e7250cb4463f46b044b0ae4995ba7b7049f7a8 |
|
MD5 | 9197eb61b74464c905a1c410bb73a3ad |
|
BLAKE2b-256 | 9d4bab7fbbd235208094043deef6dedd3f844107f06022bfbe48cafc55791412 |