# Execute gatling script with one user during one minute

**URL:** <https://community.gatling.io/t/execute-gatling-script-with-one-user-during-one-minute/3988>\
**Category:** Gatling (Open-Source)\
**Created:** [October 13, 2017, 11:22am UTC](https://community.gatling.io/t/execute-gatling-script-with-one-user-during-one-minute/3988 "2017-10-13T11:22:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Padma](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@Padma](https://community.gatling.io/u/Padma)\
**Post date:** [October 13, 2017, 11:22am UTC](https://community.gatling.io/t/execute-gatling-script-with-one-user-during-one-minute/3988/1 "2017-10-13T11:22:09Z")

</div>

Hey,

t’m trying to do a performance test using gatling. my goal is to add 1000 terms in glossary gradually ( 1st time :50 terms → 2nd time: 100 terms → 3rd time: 200 terms -\>…) with only one user and check its performance. i managed to do that, And now i want to repeat my test but i want to execute it during one minute.

here’s my scenario:

val wordFeeder1 = csv(“wordFeederA.csv”).circular

val scn = scenario(“RecordedSimulation”)  
.exec(http(“login”)  
.post("/dologin.action")  
.headers(headers\_0)  
.formParam(“os\_username”, “xxxxx”)  
.formParam(“os\_password”, “$$$$$”)  
.formParam(“login”, “Se connecter”)  
.formParam(“os\_destination”, “”)  
.check(status.is(302)))  
.pause(4)  
.repeat(50, “N”){  
feed(wordFeeder1)  
.exec(http(“ADD TERM N°${N}”)  
.post("…")  
.headers(headers\_48)  
.formParam(“pageId”, “123456789”)  
.formParam(“spaceKey”, “xx”)  
.formParam(“termTitle”, “${randomW}”)  
.formParam(“termDefinition”, “${description}”)  
.formParam(“termLabels”, “”)  
.formParam(“termSyns”, “”)) }

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

---

<div class="post-metadata">

**Author:** ![Katerina\_Stepanova](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Katerina\_Stepanova](https://community.gatling.io/u/Katerina_Stepanova)\
**Post date:** [October 18, 2017, 1:35pm UTC](https://community.gatling.io/t/execute-gatling-script-with-one-user-during-one-minute/3988/2 "2017-10-18T13:35:48Z")

</div>

Maybe you could use “during” loop in the scenario itself, like:  
during (1 minute) { here goes your scenario }
