not found: value global

I am trying to get global assertion value for checking succesful requests

https://gist.github.com/johnyUA/dfb71bbdf299fda12e93

But I am getting such error

[INFO]

[INFO] — gatling-maven-plugin:2.1.2:execute (default) @ is-lnu-integration —

13:02:05.932 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - /Users/ivanursul/Documents/Development/git/is-lnu/is-lnu-integration/src/test/scala/org/lnu/is/integration/IntegrationTest.scala:3: not found: object assertions

13:02:05.937 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - import assertions._

13:02:05.939 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^

13:02:11.928 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - /Users/ivanursul/Documents/Development/git/is-lnu/is-lnu-integration/src/test/scala/org/lnu/is/integration/IntegrationTest.scala:75: not found: value global

13:02:11.928 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - global.successfulRequests.percent.greaterThan(95)

13:02:11.929 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^

13:02:14.297 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - two errors found

Does anyone know what can be the problem ?

Hi,

There is no need for such an import.
Simply import everything from io.gatling.core.Predef (import io.gatling.core.Predef._ )and it’ll work.

Cheers,

Pierre

assertions._ is old stuff from Gatling 1