Missing package for assertions?

I’m struggling a bit to get assertions to work.

my setup is as follows

`

setUp(
 rest.inject(
      rampUsers(100) during (4 minutes),
      nothingFor(1 minutes)
  ).assertions(
    global.responseTime.max.lessThan(500),
    forAll.failedRequests.count.lessThan(5),
    details ("Bad Request").successfulRequests.percent.greaterThan(90)
 ).protocols(theHttpProtocolBuilder)
)

`

The response when trying to compile in gatling is

`

09:26:35.593 [ERROR] i.g.c.ZincCompiler$ - /home/martijn/Tools/gatling-charts-highcharts-bundle-3.0.0-RC4/user-files/simulations/computerdatabase/test.scala:50:7: value assertions is not a member of io.gatling.core.structure.PopulationBuilder
possible cause: maybe a semicolon is missing before `value assertions’?
).assertions(
^
09:26:35.594 [ERROR] i.g.c.ZincCompiler$ - /home/martijn/Tools/gatling-charts-highcharts-bundle-3.0.0-RC4/user-files/simulations/computerdatabase/test.scala:51:31: value lessThan is not a member of io.gatling.core.assertion.AssertionWithPathAndTarget[Int]
global.responseTime.max.lessThan(500),
^
09:26:35.595 [ERROR] i.g.c.ZincCompiler$ - /home/martijn/Tools/gatling-charts-highcharts-bundle-3.0.0-RC4/user-files/simulations/computerdatabase/test.scala:52:35: value lessThan is not a member of io.gatling.core.assertion.AssertionWithPathAndTarget[Long]
forAll.failedRequests.count.lessThan(5),
^
09:26:35.595 [ERROR] i.g.c.ZincCompiler$ - /home/martijn/Tools/gatling-charts-highcharts-bundle-3.0.0-RC4/user-files/simulations/computerdatabase/test.scala:53:58: value greaterThan is not a member of io.gatling.core.assertion.AssertionWithPathAndTarget[Double]
details (“Bad Request”).successfulRequests.percent.greaterThan(90)
^
09:26:35.595 [ERROR] i.g.c.ZincCompiler$ - /home/martijn/Tools/gatling-charts-highcharts-bundle-3.0.0-RC4/user-files/simulations/computerdatabase/test.scala:54:16: not found: value theHttpProtocolBuilder
).protocols(theHttpProtocolBuilder)
^
09:26:35.610 [ERROR] i.g.c.ZincCompiler$ - 5 errors found
09:26:35.612 [ERROR] i.g.c.ZincCompiler$ - Compilation crashed
sbt.internal.inc.CompileFailed: null
at sbt.internal.inc.AnalyzingCompiler.call(AnalyzingCompiler.scala:242)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:111)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:90)
at sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$3(MixedAnalyzingCompiler.scala:82)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at sbt.internal.inc.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:133)
at sbt.internal.inc.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:73)
at sbt.internal.inc.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:116)
at sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1(IncrementalCompilerImpl.scala:307)
at sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1$adapted(IncrementalCompilerImpl.scala:307)
at sbt.internal.inc.Incremental$.doCompile(Incremental.scala:106)
at sbt.internal.inc.Incremental$.$anonfun$compile$4(Incremental.scala:87)
at sbt.internal.inc.IncrementalCommon.recompileClasses(IncrementalCommon.scala:116)
at sbt.internal.inc.IncrementalCommon.cycle(IncrementalCommon.scala:63)
at sbt.internal.inc.Incremental$.$anonfun$compile$3(Incremental.scala:89)
at sbt.internal.inc.Incremental$.manageClassfiles(Incremental.scala:134)
at sbt.internal.inc.Incremental$.compile(Incremental.scala:80)
at sbt.internal.inc.IncrementalCompile$.apply(Compile.scala:67)
at sbt.internal.inc.IncrementalCompilerImpl.compileInternal(IncrementalCompilerImpl.scala:311)
at sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileIncrementally$1(IncrementalCompilerImpl.scala:269)
at sbt.internal.inc.IncrementalCompilerImpl.handleCompilationError(IncrementalCompilerImpl.scala:159)
at sbt.internal.inc.IncrementalCompilerImpl.compileIncrementally(IncrementalCompilerImpl.scala:238)
at sbt.internal.inc.IncrementalCompilerImpl.compile(IncrementalCompilerImpl.scala:69)
at io.gatling.compiler.ZincCompiler$.doCompile(ZincCompiler.scala:210)
at io.gatling.compiler.ZincCompiler$.delayedEndpoint$io$gatling$compiler$ZincCompiler$1(ZincCompiler.scala:215)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:39)
at scala.Function0.apply$mcV$sp(Function0.scala:34)
at scala.Function0.apply$mcV$sp$(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App.$anonfun$main$1$adapted(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:388)
at scala.App.main(App.scala:76)
at scala.App.main$(App.scala:74)
at io.gatling.compiler.ZincCompiler$.main(ZincCompiler.scala:39)
at io.gatling.compiler.ZincCompiler.main(ZincCompiler.scala)

`

Can someone point me in the right direction to get this resolved?

Thank you very much in advance.

Well, actually, compile error is pretty explicit:

value assertions is not a member of io.gatling.core.structure.PopulationBuilder
possible cause: maybe a semicolon is missing before `value assertions’?
).assertions(

assertions is not a method available on what’s returned from inject, bu from setUp: https://gatling.io/docs/current/general/assertions/?highlight=assertions

Oh my, I feel so silly now,

Thank you very much! that fixed it