Skip to main content

Stress-test your web app

Project description

logo stressor

Build Status Latest Version License Documentation Status Coverage Status Code style: black Released with: Yabs StackOverflow: 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

  1. Install stressor (details)

  2. 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
    
  3. Edit the scripts as needed (users.yaml, main_sequence.yaml, scenario.yaml) (details)

  4. 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.)

  5. Read The Docs for details.

Download files

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

Source Distribution

stressor-0.5.2.tar.gz (57.5 kB view details)

Uploaded Source

Built Distribution

stressor-0.5.2-py3-none-any.whl (457.9 kB view details)

Uploaded Python 3

File details

Details for the file stressor-0.5.2.tar.gz.

File metadata

  • Download URL: stressor-0.5.2.tar.gz
  • Upload date:
  • Size: 57.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for stressor-0.5.2.tar.gz
Algorithm Hash digest
SHA256 6253f73c0caddeee9508f1be8518912160fcac7a35a70d8e8465ce32052b9de3
MD5 6fa221e8024097ffc7e4012ccac20b06
BLAKE2b-256 6b8d8d903a8590ec687c2dbe438f5344765159a26def3a241b76fbbb5f2049e1

See more details on using hashes here.

File details

Details for the file stressor-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: stressor-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 457.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for stressor-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e66c436fc5cf3a0e1834b7c59099e7bb8360d4363e3236e1012f81ecf6acde33
MD5 59f8f81cf772a48f676d39c1ebacfecb
BLAKE2b-256 d05425561d241375a1b9318aae28fb3e3f4d606dad82650ecd4351146bf9d6e4

See more details on using hashes here.

Supported by

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