You can configure load tests by rocro.yml.
The configuration includes your target server, the length of time to apply load, the number of clients, the definition of requests sent to the server and more.
Loadroid reads rocro.yml placed at the root directory of your Git repository.
Note:
.rocro.ymlis also supported.rocro.ymlis used preferentially if both exist.
loadroid:
requests:
your-request:
method: GET
url: https://your-host.com/your/api/path
scenarios:
your-scenario:
num-users: 300
period: 60
loop: true
requests:
- your-request
run:
- your-scenario
Loadroid configuration starts with loadroid:.
The second level elements are the following:
requestsThe definition of requests sent to your server.
See requests for further details.
scenariosThe definition of load test scenarios.
See scenarios for further details.
runThe list of load test scenarios to run.
See run for further details.