# Repeat block not repeating

**URL:** <https://community.gatling.io/t/repeat-block-not-repeating/6872>\
**Category:** Gatling (Open-Source)\
**Tags:** gatling-academy\
**Created:** [June 25, 2022, 2:00pm UTC](https://community.gatling.io/t/repeat-block-not-repeating/6872 "2022-06-25T14:00:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arfashaista](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@arfashaista](https://community.gatling.io/u/arfashaista)\
**Post date:** [June 25, 2022, 2:00pm UTC](https://community.gatling.io/t/repeat-block-not-repeating/6872/1 "2022-06-25T14:00:33Z")

</div>

Hi, help me in spotting mistake here. why would the repeat not loop here?  
it’s executing just once.  
version : 3.3

```auto
val httpProtocol = http.baseUrl("https://gatling.io")
  val scn: ScenarioBuilder = scenario("RT_TEST")
    .repeat(5,"urlCount"){
      exec(http("Home_${urlCount}").get("/docs/"))
    }

  setUp(scn.inject(atOnceUsers(1)).protocols(httpProtocol))

```

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 25, 2022, 2:18pm UTC](https://community.gatling.io/t/repeat-block-not-repeating/6872/2 "2022-06-25T14:18:38Z")

</div>

Sorry, we can’t help with legacy versions.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 25, 2022, 2:21pm UTC](https://community.gatling.io/t/repeat-block-not-repeating/6872/3 "2022-06-25T14:21:02Z")

</div>

Also, please be kind and don’t use our website as a target.

Finally, our website most likely use caching headers so it’s expected the request is only performed once.

---

<div class="post-metadata">

**Author:** ![arfashaista](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@arfashaista](https://community.gatling.io/u/arfashaista)\
**Post date:** [June 25, 2022, 3:13pm UTC](https://community.gatling.io/t/repeat-block-not-repeating/6872/4 "2022-06-25T15:13:27Z")

</div>

No of course not. that was just for an example.  
got your caching header point. new info!

Also regarding my recent topic on high calculated response time , it just clicked me in my build file for a long time I’ve been using  
id “com.github.lkishalmi.gatling” as gradle plugin and not the officially supported one. Not sure if the issue is related. will do a run with the updated and version and the plugin to see if the issue persists.

Thanks and sorry for missing the point.
