I use Gatling 2.0.0.
My Scala script is very simple and looks like this:
*****************************************************************************************************
package no.mypackage
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class AccountSimulation extends Simulation {
val scn = scenario("Scenario")
.feed(csv("users.csv").random)
.exec(
http("Index page")
.get("/"))
.exec(
http("Account page")
.get("/banking/account")
)
.exec(
http("Login to account")
.post("/j_security_check")
.param("j_username", "${user}")
.param("j_password", "password")
.check(regex("Account balance for user ${user}")))
.exec(
http("Logout")
.get("/logout"))
setUp(scn.inject(atOnceUsers(1))).protocols(httpConf)
}
*****************************************************************************************************
In IntelliJ I get the error:
scala: value param is not a member of io.gatling.http.request.builder.HttpRequestWithParamsBuilder
possible cause: maybe a semicolon is missing before `value param'?
.param("j_username", "${user}")
^
This was after I edited the POM of the Project to use Version 2.0 of Gatling.
What does this fault mean and how can I fix it?
Magnus