Configuring Loadroid

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.yml is also supported. rocro.yml is used preferentially if both exist.

Structure of configuration file

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:

requests

The definition of requests sent to your server. See requests for further details.

scenarios

The definition of load test scenarios. See scenarios for further details.

run

The list of load test scenarios to run. See run for further details.

results matching ""

    No results matching ""