I Have the scenario with global variable, when I run it for one user - all fine, but when I run this scenario for multiple users - the scenario don’t run the same as for one user
I don’t have much experience with Gatling, but my understanding is that every “User” has their own “Session” and that each session has its own set of variables.
This means if you read/write a variable to/from the Session then each “User” should see their own version of that variable, I don’t know your situation but if you could use per-session variables instead of global variables then that might be a solution.
Note that Sessions are immutable so when you write to a Session you get back a new Session object. See https://gatling.io/docs/current/session/session_api/#concept