value param is not a member of io.gatling.http.request.builder.HttpRequestWithParamsBuilder

2,501 views
Skip to first unread message

Magnus Jensen

unread,
Sep 8, 2014, 8:40:16 AM9/8/14
to gat...@googlegroups.com
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 httpConf = http
    .baseURL("http://localhost:8080")
  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

Stéphane Landelle

unread,
Sep 8, 2014, 8:51:47 AM9/8/14
to gat...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages