I am running below Script which is running fine in Gatling However its printing in format of some(value) and I am not getting why.it should print like 123456 but its printing some(123456) Answer session.attributes.get(“user_id”).toString You should be using the Session API correctly, please check the documentation.
Tag: scala-gatling
How to run a gatling test from a java code and pass the url of test in parameters of simulation?
I want to be able to pass parameters to a Gatling Simulation from a java code and specially the url of test. I use Gatling with maven method. Someone help me please. Answer one way would be: for example, i need to pass the URL under the test http://127.0.0.1:5000 to pick this variable in scala code: and to utilize this