Problem launching Gatling simulation with 1 user for 1 iteration

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

@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.

1 Like

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?

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

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