# User request with 5 second break

**URL:** https://community.gatling.io/t/user-request-with-5-second-break/7964
**Category:** Gatling (Open-Source)
**Created:** [May 23, 2023, 1:43pm UTC](https://community.gatling.io/t/user-request-with-5-second-break/7964 "2023-05-23T13:43:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lechf1](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@lechf1](https://community.gatling.io/u/lechf1)
#### Post date: [May 23, 2023, 1:43pm UTC](https://community.gatling.io/t/user-request-with-5-second-break/7964/1 "2023-05-23T13:43:24Z")

</div>

Hi,

Below my requirements:

“Create a test which start from 0 and add 10 user every 2 second. Finish at 100 users.  
Every user makes a request to the endpoint every 5 seconds”

First part I understand, I can user ramp user, but I have problem with second part.

Thanks for help

---

<div class="post-metadata">

### Author: ![GatlingPete](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/gatlingpete/32/1167_2.png) [@GatlingPete](https://community.gatling.io/u/GatlingPete)
#### Post date: [May 23, 2023, 1:58pm UTC](https://community.gatling.io/t/user-request-with-5-second-break/7964/2 "2023-05-23T13:58:40Z")

</div>

Hey there,

For the second part do you mean:

> Finish at 100 users.

or

> Every user makes a request to the endpoint every 5 seconds

Thanks,  
Pete

---

<div class="post-metadata">

### Author: ![lechf1](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@lechf1](https://community.gatling.io/u/lechf1)
#### Post date: [May 23, 2023, 2:00pm UTC](https://community.gatling.io/t/user-request-with-5-second-break/7964/4 "2023-05-23T14:00:57Z")

</div>

Both cases

Thx for help

---

<div class="post-metadata">

### Author: ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)
#### Post date: [May 23, 2023, 3:04pm UTC](https://community.gatling.io/t/user-request-with-5-second-break/7964/5 "2023-05-23T15:04:29Z")

</div>

Hi @lechf1,

As you understood, first part is the [injection profile](https://gatling.io/docs/gatling/reference/current/core/injection/).  
The second part, is the scenario: what a specific user will do!  
I think you can achieve what you want with [loops](https://gatling.io/docs/gatling/reference/current/core/scenario/#loop-statements) and [pauses](https://gatling.io/docs/gatling/reference/current/core/scenario/#pause).

Cheers!

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)
#### Post date: [June 23, 2023, 11:38am UTC](https://community.gatling.io/t/user-request-with-5-second-break/7964/7 "2023-06-23T11:38:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
