A simulation is a description of the load test. It describes how, possibly several, user populations will run: which scenario they will execute and how new virtual users will be injected.
A Simulation is a real Scala class containing 4 different parts:
- The HTTP protocol configuration
- The headers definition
- The scenario definition
- The simulation definition
Can see the demo there: Recoder Demo
Hooks
Gatling provides two hooks:
- before
for executing some code before the simulation actually runs - after
for executing some code after the simulation actually runs