Skip to main content

Abstraction for load testing

Project description


Quick Start

Define by implementing TestBase, run with Runner

class MyTest(TestBase):
    def _run_task(self):

def main():

See examples

How It Works

Preconfigured amount of processes will run a test case over and over again until timeout. You can send more than one test case and then after each test finishes, it will continue to the next one (after some delay).

Each process gathers statistics, when all tests finish the main process will create a single result file.

Runner Options

Option Description Default
processes How many processes will run the test case in parallel 1
duration How many seconds each process will run the test case over and over again 3
results_dir The directory of the final results, the filename is the timestamp of the run "results"
runs The limit amount for each process to run the test definition (None for no limit) None
delay The delay in seconds between each test case (None for no delay) None
logger Logger for general log messages (None for no logger) None

Project details

Download files

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

Files for load-test, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size load_test-0.0.1-py3-none-any.whl (2.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size load_test-0.0.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page