Stress-test your web app
Project description
stressor
Stress-test your web app.
Stressor is a tool, that runs a sequence of activities in one or more parallel sessions. The most common use case is to run a test script with HTTP commands against a web server, simulating a bunch of parallel user sessions. As a result we get metrics about reponse times, failures, resource usage, etc.
Stressor can be used for testing, benchmarking, load testing, or to generate test data. Stressor comes with prebuilt activities for HTTP-request and more, and can be extended by custom activity-plugins.
Test scripts can be defined as text files, using a special syntax, that is then
executed by the stressor
command line tool.
Stressor is also an Open Source Python library that can be included into your
own projects. This allows to define test scenarios programmtically.
Quickstart
-
Install stressor (details)
-
Create a new scenario folder. For example:
$ stressor init ./scenario_1
or alternatively import an existing HAR file as a starting point (details):
$ stressor init ./scenario_1 --convert /path/to/output.har
-
Edit the scripts as needed (users.yaml, main_sequence.yaml, scenario.yaml) (details)
-
Run the script:
$ stressor run ./scenario_1/scenario.yaml
Use the
--monitor
option to view the progress in a separate window:$ stressor run ./scenario_1/scenario.yaml --monitor
Use the
--log
argument to write output to a file or folder:$ stressor run ./scenario_1/scenario.yaml --no-color --log .
(Hit Ctrl+C to stop.)
-
Read The Docs 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
File details
Details for the file stressor-0.6.0.tar.gz
.
File metadata
- Download URL: stressor-0.6.0.tar.gz
- Upload date:
- Size: 58.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55a10edc41f5f3402af692a94453f8d51579ca5efa194ec2e246e090e0454b6e |
|
MD5 | 92e97ad3ae39f9fbe9d779e1886c56a9 |
|
BLAKE2b-256 | 30f773a527c09ee5f6a870340e66640eaf48ee321e610cdb553ef33dbde99091 |
File details
Details for the file stressor-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: stressor-0.6.0-py3-none-any.whl
- Upload date:
- Size: 457.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b18749af2678d587bffc19cd1ec569badd84a54bd6fa935e44c8fbf2ae76e81 |
|
MD5 | f088c2e43b1daa00a886fc724c6ec2a6 |
|
BLAKE2b-256 | 845f33a5c5818252250fdacaeafe77e551fa7b9a1b7dfa7852184741262cc324 |