Thank you for your reply. I want to remove the variable=constant from the raw body, and define it programatically, but keeping the rest of the parameters in the raw body. Using this:
.queryParams("""authenticity_token""", """${csrf_token}""")
.body(RawFileBody("RecordedSimulationTemp2_request_201.txt")))
Results in a compilation error:
GATLING_HOME is set to /home/ifrid/Descargas/gatling-charts-highcharts-2.0.0-M3a
16:47:04.452 [ERROR] i.g.a.ZincCompiler$ - /home/ifrid/Descargas/gatling-charts-highcharts-2.0.0-M3a/user-files/simulations/RecordedSimulationTwo.scala:108: value queryParams is not a member of io.gatling.http.request.builder.PostHttpRequestBuilder
possible cause: maybe a semicolon is missing before `value queryParams'?
16:47:04.455 [ERROR] i.g.a.ZincCompiler$ - .queryParams("""authenticity_token""", """${csrf_token}""")
16:47:04.464 [ERROR] i.g.a.ZincCompiler$ - ^
16:47:04.604 [ERROR] i.g.a.ZincCompiler$ - one error found
Exception in thread "main" Compilation failed
I could use latest gatling from github, but I don' t know how to build the directory full of JARs ("sbt test" passes).