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.1.tar.gz (380.1 kB view details)

Uploaded Source

Built Distribution

stressor-0.5.1-py3-none-any.whl (456.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stressor-0.5.1.tar.gz
  • Upload date:
  • Size: 380.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for stressor-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b0549383c3a4c0832e1dde1d8e43b1f076e3603517af0e3dcbcb03032d1cd002
MD5 daab221daf2ac3ba9f49faba90439690
BLAKE2b-256 ee085b8f548e9f4fd7591377e175b5d2c69d3836a703fdb5b0cee5a0d861632f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stressor-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 456.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for stressor-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 835d3fcfe97201d98136f21a13ec6958a6e7cddc1bc810b2436d7ae91836de54
MD5 bc3ef294dff5c8cbb79db63da132a0c1
BLAKE2b-256 4112e28c68ac9a03cc8123bc10c8edd095d24532a53c070d25921cb709a7ce0c

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