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”)
.exec(http(“request_gd1”)
.get(“https://example.com/bankAccount?externalId=auto-ext-id-311111-201732714125333”))
.basicAuth(“jeejaa10”, “jeejaa10”)
.pause(7)
.exec(http(“request_gd12”)
.get(“https://example.com/bankAccount?externalId=auto-ext-id-311111-201732732648172”))
.basicAuth(“jeejaa10”, “jeejaa10”)
.pause(2)