Molotov Executor

Molotov is a load testing tool developed by Mozilla. It's based on Python 3 and asynchronous I/O subsystem.

Important note: molotov requires Python >= 3.5 and doesn't work on Windows systems at the moment.

Usage:

execution:
- executor: molotov
  concurrency: 10  # number of Molotov workers
  ramp-up: 30s
  hold-for: 1m
  scenario:
    script: loadtest.py  # has to be  a valid Molotov script

Please keep in mind, that Molotov does not support iterations keyword.

Process number

If your tests requires a number of workers that is impossible to create from one process — you can use additional processes execution option to specify the number of processes for Molotov.

execution:
- executor: molotov
  concurrency: 100
  processes: 10
  hold-for: 5m
  scenario:
    script: loadtest.py

Think-time

If you need a delay between each worker run, use think-time option in scenario level. Note that you would have to move your script there as well.

execution:
- executor: molotov
  concurrency: 100
  processes: 10
  hold-for: 5m
  scenario: simple

scenarios:
  simple:
    think-time: 5
    script: molotov_example.py

Module Settings

If you have installed Molotov in a non-standard location, you can use path option to point Taurus to the molotov executor. Also, you can pass specific molotov options via cmdline:

modules:
  molotov:
    path: /home/john/venv/bin/molotov
    cmdline: --verbose