Missing Import?

Basic get on an URL works fine but if I start adding query parameters with queryParam or authentication with basicAuth,following error is seen: Am I missing any import here?

: value basicAuth is not a member of io.gatling.core.structure.ScenarioBuilder

possible cause: maybe a semicolon is missing before `value basicAuth’?

10:48:40.391 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - .basicAuth(“jeejaa10”, “jeejaa10”)

10:48:40.393 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - ^

10:48:40.429 [main][ERROR][ZincCompiler.scala:140] i.g.c.ZincCompiler$ - one error found

10:48:40.431 [main][ERROR][ZincCompiler.scala:155] i.g.c.ZincCompiler$ - Compilation crashed

Simulation scenario here:

val scn = scenario(“Scenario Name”)



.basicAuth(“jeejaa10”, “jeejaa10”)




.basicAuth(“jeejaa10”, “jeejaa10”)


Recent Gatling version 2.2.5 is used for this and the following imports are already used in simulation class:

import io.gatling.core.Predef._

import io.gatling.http.Predef._

import scala.concurrent.duration._

Issue resolved:

It’s because I closed the open braces after exec too soon. I should close it after basicauth is given.

But I got a different error while compiling now:

: type mismatch;

found : String(“https://example.com/bankAccount?externalId=auto-ext-id-311111-201732714125333”)

required: io.gatling.core.session.Session