Repository navigation
Benchmarks
zehavibarak edited this page May 29, 2022
·
3 revisions
Load testing.
Download and install k6.
Command-line syntax:
> k6 run [--iterations 10] [--vus 10] -e HOSTNAME=localhost:8080 [-e TESTS=...] [-e FORMS=...] [-e ACTION=...] .\tests.js --out=tests.csvParameters:
| Name | Usage | Default |
|---|---|---|
| HOSTNAME | Server name | Localhost |
| TESTS | Comma delimited tests | All |
| FORMS | Comma delimited form names | All |
| ACTION | Action name | approve |
- Optional port number my-server:8080
Available tests:
| Code | Name |
|---|---|
| G02 | refresh |
| G03 | dashboard |
| G04 | inbox |
| P02 | compose |
| G05 | message |
| U01 | update |
| U02 | submit |
| U03 | take action |
| G06 | cube |
| G07 | report |
Example:
> k6 run --iterations 1 --vus 1 -e HOSTNAME=localhost:8080 -e TESTS=G03,U02 -e FORMS=myForm .\tests.js --out=tests.csvIf form has required properties, you'll need to alter payload in tests.js file for U02.
Moding Ltd.