# Noob question - How can i make a tray ?

**URL:** <https://community.gatling.io/t/noob-question-how-can-i-make-a-tray/109>\
**Category:** Gatling (Open-Source)\
**Created:** [June 27, 2012, 4:37pm UTC](https://community.gatling.io/t/noob-question-how-can-i-make-a-tray/109 "2012-06-27T16:37:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daffy](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Daffy](https://community.gatling.io/u/Daffy)\
**Post date:** [June 27, 2012, 4:37pm UTC](https://community.gatling.io/t/noob-question-how-can-i-make-a-tray/109/1 "2012-06-27T16:37:55Z")

</div>

Hello everyone,

I have a very noob question, but i don’t see how to make this kind of scenario with Gatling :

- Load 1000 users in 20 minutes.
- Keep 1000 users for 20 minutes.
- Decrease to 0 in 20 minutes.

I can see the ramp() function, but I really don’t understand how can I stick the number of user for some time.  
Anybody can explain it ?

Regards,

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [June 27, 2012, 4:43pm UTC](https://community.gatling.io/t/noob-question-how-can-i-make-a-tray/109/2 "2012-06-27T16:43:22Z")

</div>

Hi,

Gatling is scenario oriented and users are users, not concurrent threads as actually in tools like JMeter.

If you want your users to crawl your site during a given period, you have to use a loop with a during condition (in your case 40 minutes):  
[https://github.com/excilys/gatling/wiki/Scenario-Components#wiki-loop](https://github.com/excilys/gatling/wiki/Scenario-Components#wiki-loop)

loop(  
// what you want to loop over  
).during(40 minutes)

Cheers,

Stéphane

2012/6/27 Daffy \<[mverhaeghe@gmail.com](mailto:mverhaeghe@gmail.com)\>
