rampa run¶
Execute a load test script.
$ rampa run load_test.py
Command¶
Usage¶
usage: rampa run [-h] [--vus VUS] [--duration DURATION] [--scenario SCENARIO] [--out JSON_OUTPUT] [--event-log EVENT_LOG] [--quiet] [--output EXTRA_OUTPUTS] [--progress] [--tui] script
Positional Arguments¶
- script¶
path to the test script
Options¶
- --vus¶
override VU count
- --duration¶
override duration (e.g. `30s`, `1m`)
- --scenario¶
run a specific scenario only
- --out¶
JSON output file path
- --event-log¶
JSONL event log file path
- --quiet¶
suppress console summary
- --output, -O¶
output backend (e.g. csv=results.csv, influxdb=http://...)
- --progress¶
show single-line progress during execution
- --tui¶
launch interactive TUI dashboard (requires rampa[tui])
Examples¶
Run with 20 VUs for 1 minute:
$ rampa run load_test.py --vus 20 --duration 1m
Run a specific scenario:
$ rampa run load_test.py --scenario smoke
Save results as JSON:
$ rampa run load_test.py --out results.json --quiet
Capture the event stream for postmortem analysis:
$ rampa run load_test.py --event-log events.jsonl
Exit codes¶
Code |
Meaning |
|---|---|
0 |
All thresholds passed |
1 |
Threshold breach |
2 |
Iteration exception |
3 |
Invalid configuration |
4 |
Aborted (SIGINT) |
5 |
Setup failure |
6 |
Output failure |
7 |
Teardown failure |