Gatling: Loops, Conditions and Pauses
This blog post is a guide to help you write Gatling scripts in order to load test web applications efficiently. It follows our second Gatling Simulation scripts parameterization article.
We will continue to load test a fake e-commerce, and so we are going to improve our Virtual User to make it browse the store in a more humanly way. To do it we will cover several topics:
- Loops to make it browse several articles of each category,
- Conditions to change its behavior depending on dynamic parameters,
- Pauses to simulate a real user think-time.
We start where the previous blog post ended, with a simulation script that uses a CSV feeder and a Regular Expression extractor to visit dynamic pages of the pet store: Download Sample Script.