Hey Guys,
I have made a Gatling test where I have a
Class with my scenario and different exec.
// val = feed out of scenario
val scn = scenario(“Scenario Name”)
.feed(feeder)
.exec(http(“request_1”)
.get("/"))
.pause(1)
.exec(http(“request_2”)
.get("/" + “${username}” + “/” + “${userID}”))
.pause(1)
.exec(http(“request_3”)
.get("/" + “${username}” + “/” + “${userId}” + “/” + “${userAccount}”)) // it make a json int concatination (11111111-11-111111) as output
.pause(1)
I use a standard CSV feeder and everything works fine.
But now I have gotten to the point that where can feed everything but it make all my (.get)'s a gigantic concatenated string with Gatling EL in between.
Like the third example. I tried to feed outside of the scenario, but that does not work. Is there a way to save my GIGANTIC string (like .get("/" + “${username}” + “/” + “${userId}” + “/” + “${userAccount}”).saveAs(myValue) and use that in later sessions or something different that does not have me repeating this terrible string all the time.
TNX
Janne