# Problem launching Gatling simulation with 1 user for 1 iteration

**URL:** https://community.gatling.io/t/problem-launching-gatling-simulation-with-1-user-for-1-iteration/9215
**Category:** Gatling (Open-Source)
**Created:** [August 5, 2024, 8:18pm UTC](https://community.gatling.io/t/problem-launching-gatling-simulation-with-1-user-for-1-iteration/9215 "2024-08-05T20:18:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Timmer](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@Timmer](https://community.gatling.io/u/Timmer)
#### Post date: [August 5, 2024, 8:18pm UTC](https://community.gatling.io/t/problem-launching-gatling-simulation-with-1-user-for-1-iteration/9215/1 "2024-08-05T20:18:26Z")

</div>

**Gatling version** : 3.11.5 (must be up to date)  
**Gatling flavor** : [X] java kotlin scala javascript typescript  
**Gatling build tool** : [X] maven gradle sbt bundle npm

Hello,  
I am trying to launch a Gatling script with 1 user for 1 iteration to verify the script itself.  
While I am trying to verify all the requests are working, I want to run a single user(I have a feeder with 1 record) and to run through all of the requests just once and then stop.  
Have been searching the community and internet without seeing the complete solution to this problem.

I have the following scenario and setup:

```
private ScenarioBuilder stpScenario = scenario("ChainNonHarSTPFullCurated")
        .feed(singleUserName)
        .exec(rqrLogon,
            startNewQuote,
            agencyInformation,
            tellUsMore,
            coverageDetails,
            classCodeLookup,
            operationDescription,
            accordQuestions,
            lossClaimsHistory,
            quoteDetailAndOptions,
            locations,
            addContact,
            ownershipAndOfficers,
            addNumEmployees,
            bindAutoIssue,
            exitApplication
        );
    {
        setUp(
            stpScenario.injectOpen(atOnceUsers(1)).protocols(httpProtocol));
    }

```

Timmer

---

<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: [August 6, 2024, 8:51am UTC](https://community.gatling.io/t/problem-launching-gatling-simulation-with-1-user-for-1-iteration/9215/3 "2024-08-06T08:51:57Z")

</div>

@trinp No, protocols can also be specified per scenario. This is useful when you have multiple scenarios and want them to have different protocols settings.

---

<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: [August 6, 2024, 8:52am UTC](https://community.gatling.io/t/problem-launching-gatling-simulation-with-1-user-for-1-iteration/9215/4 "2024-08-06T08:52:46Z")

</div>

> While I am trying to verify all the requests are working

You could use an assertion and fail if the error counts is not 0.

> I want to run a single user(I have a feeder with 1 record) and to run through all of the requests just once and then stop.

This is exactly what you’re doing. What’s your issue?

---

<div class="post-metadata">

### Author: ![Timmer](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@Timmer](https://community.gatling.io/u/Timmer)
#### Post date: [August 6, 2024, 10:17pm UTC](https://community.gatling.io/t/problem-launching-gatling-simulation-with-1-user-for-1-iteration/9215/5 "2024-08-06T22:17:51Z")

</div>

Hey Slandelle,  
You are correct. It was only processing 1 user and only 1 iteration.  
The application I am testing has a lot of resource calls so I thought it was repeating.

Thank you,  
Timmer

---

<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: [September 5, 2024, 10:18pm UTC](https://community.gatling.io/t/problem-launching-gatling-simulation-with-1-user-for-1-iteration/9215/6 "2024-09-05T22:18:42Z")

</div>

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