Hi,
I use Gatling 2.0.0-M3a. I have a test like this:
val scn = scenario(“Normal user”)
feed(feeder)
.exec(
http(“signup”)
.post("/rest/signup")
.body(StringBody("${jsonFromTheFeeder}")).asJSON)
Basically a feeder and a signup http request. It works. I wanted to split my tests into multiple files to make it more organised. So I created a package for the rest interface and classes for each “service”.
I wanted something like this:
val scn = scenario(“Normal user”)
exec(signup)
and signup in a separate place:
val signup = exec(
feed(feeder)
.exec(
http(“signup”)
.post("/rest/signup")
.body(StringBody("${jsonFromTheFeeder}")).asJSON))
It doesn’t work that way… Could you please tell me what could be the problem?