I’m posting this the second time now because somehow it disappeared the first time I posted it, so please let me know if this post exists twice now.
Note that this post also has a Stackoverflow version.
I need to make a request in Gatling, in which I’m able to access session items (without the expression language). I need to do this, because I want to inject data into a ByteArrayBody
request from a csv feeder. To demonstrate my problem, I have a small example (without the actual need of the session).
The following scenario runs fine:
val scnBase: ScenarioBuilder = scenario("Test scneario").repeat(1){
exec(http("Http Test test").get("http://google.de/"))
}
But that one doesn’t (I get the exception There were no requests sent during the simulation, reports won't be generated
):
`
val scnBase: ScenarioBuilder = scenario(“Test scneario”).repeat(1){
exec(session => {
http(“Http Test test”).get(“http://google.de/”)
session
})
}
`
I run my simulations in IntelliJ (which worked fine so far) and in the following (here minimized) simulation file: