Gatling - Simulation

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
唐胡璐 wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!
分享创造价值,您的支持将鼓励我继续前行!