# Loop

**URL:** <https://community.gatling.io/t/loop/5063>\
**Category:** Gatling (Open-Source)\
**Created:** [June 5, 2019, 10:50am UTC](https://community.gatling.io/t/loop/5063 "2019-06-05T10:50:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Balacek](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@David\_Balacek](https://community.gatling.io/u/David_Balacek)\
**Post date:** [June 5, 2019, 10:50am UTC](https://community.gatling.io/t/loop/5063/1 "2019-06-05T10:50:47Z")

</div>

Hey guys is there a way how to use a simple for loop.  
For example i want loop 5times and the for loop is gonna cointan some exec requests to API. Thanks!

---

<div class="post-metadata">

**Author:** ![Alexandre\_CHAOUAT](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Alexandre\_CHAOUAT](https://community.gatling.io/u/Alexandre_CHAOUAT)\
**Post date:** [June 5, 2019, 11:17am UTC](https://community.gatling.io/t/loop/5063/2 "2019-06-05T11:17:00Z")

</div>

Hi,

You should read the Gatling documentation: [https://gatling.io/docs/current/general/scenario/#repeat](https://gatling.io/docs/current/general/scenario/#repeat) 😉

Best regards,

---

<div class="post-metadata">

**Author:** ![David\_Balacek](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@David\_Balacek](https://community.gatling.io/u/David_Balacek)\
**Post date:** [June 5, 2019, 11:26am UTC](https://community.gatling.io/t/loop/5063/3 "2019-06-05T11:26:53Z")

</div>

Does repeat function holds saved proms from json. I have two exec and first one saves me json params and when i wanna use them in second exec its telling me that there is not such a attribut defined.

Dne středa 5. června 2019 13:21:11 UTC+2 Alexandre CHAOUAT napsal(a):
