Provide an entrypoint for developers who want to use Gatling without requiring any scala knowledge.
This library only provides basic Gatling features through yml config files by design. If you want to use more advanced features, do not use this library.
One yml config file represents one simulation. The object contains the following fields:
- title (String) - name of the simulation
- maxDuration (Duration) - the max length of the simulation
- ramp (Object) - ramp settings of the simulation
- scenarions (List) - one or more scenario definitions for your simulation
The ramp section of the config has the following fields:
- enabled (boolean) - whether or not to ramp up at the start of the simulation
- duration (Duration) - if enabled, the length of time to ramp at the start of the simulation
The scenario section of the config defines the behaviour a user will execute during the simulation. It has the following fields:
- title (String) - Name of the scenario
- endpoint (String) - endpoint which will be hit. Can include templated values if a feeder is used
- method (GET/PUT/POST/DELETE) - http method to be used
- targetTps (int) - transactions per second of scenario
- feeder (List) - one or more feeder definitions
The feeder section of the config defines a standard Gatling feeder to use. It has the following fields:
- type (csv/ssv/tsv) - the type of feeder
- file (String) - the filename on the classpath to load data from
title: Yaml For Gatling Test ramp: enabled: true duration: PT1M scenarios: - title: Test GET scenario endpoint: /user method: GET targetTps: 10 - title: Test GET one user endpoint: /user/1 method: GET targetTps: 10 maxDuration: PT1M
title: Yaml For Gatling Test ramp: enabled: false scenarios: - title: Test GET scenario endpoint: /user method: GET targetTps: 10 - title: Test GET one user endpoint: /user/1 method: GET targetTps: 10 maxDuration: PT1M
title: Yaml For Gatling Test With Feeder ramp: enabled: false scenarios: - title: Test GET one user endpoint: /user/${value} method: GET targetTps: 10 feeder: - type: csv file: example.csv maxDuration: PT1M