I’m very new with Gatling and even after browsing the documentation i don’t know how to solve my problem. I’d like to play 6000 times a URL with using the counter and the URL itself, i tried something like this :
By the way I’m already looking for some counter feature.
I’ve got a scenario which create user and I want to put somewhere the number of time the scenario is call.
Each time a user is created I want to increment the counter. How can I do that ?
var scn = exec(http(“Create User”).get("/createUser")).exec(session => //UPDATE COUNTER HERE)
Good question, I’m looking for one better than just Googling every time I get stuck on scala syntax.
You got this website: http://docs.scala-lang.org/cheatsheets/
I found the solution, my object was good, I just move it to CreateUser object (containing scenario for create users) and now I can access it throught: CreateUser.CounterScenarios.howMany() from others object.