Replies: 1 comment
-
You are right that the recorder is not enough for this kind of scenarios in which we want to simulate different users working in our app. There are several techniques to achieve this in Gatling. I refer you to an introductory article about this topic (https://gatling.io/blog/gatling-credentials) In particular I think you need a Feeder. In this link (https://docs.gatling.io/reference/script/core/session/feeders/), you have information and examples on how to load users from a CSV for instance. Obviously these users need to exist in your app beforehand, so you may need to populate your database before launching the load tests. Let me know if it helps or you need more help. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone 👋,
My team wiq_en3b have successfully implemented the load testing with Gatling and some of them are working pretty well.
The problem arises with the Recorder tool since seems a bit "limited". For instance, we wanted to test the following scenario: Different players login into our Application, starting a game and answering to questions to see how many users can our Application handle concurrently.
The thing is that if we use the Recorder and we login with some credential (e.g. "pepe" and "loadPass123"), the Java test generated by it always input the same credentials, so the simulation will be: same user playing multiple games during a period of time.
Is there any solution to it 😓? I have tried to look and modify the Java code but all my attempts to change this behaviour were unsuccessful. I am uploading the starting code of a gameplay in which the user only access to the game (without answering). This code is commented so you can get the "vibe" of what is going on with my tests.
I am tagging @pglez82 since he asked me to publish my question here!! Have a nice week :)
Beta Was this translation helpful? Give feedback.
All reactions