User Injection Profiles
Explore different user injection methods in Gatling to simulate various load scenarios. Understand functions like atOnceUsers, rampUsers, and constantUsersPerSec to create realistic performance tests and improve your script's load simulation capabilities.
In the previous lesson, we learned about the different ways to pass test data to the Gatling test script using Feeders. In this lesson, we will learn about the different ways to inject users into the simulation.
Gatling provides various ways to inject users and stimulate the load on the environment.
atOnceUsers
Injects a specific number of users at the same time.
Example:
scn.inject(atOnceUsers(10))
constantUsersPerSec
Injects the number of users each second for the given duration.
Example:
scn.inject(constantUsersPerSe ...