scala - Gatling gives error when using parameter for ramp -
I'm using a parameter for my ramp value according to the docs,
Val RampUpRate = Integer.getInteger ("ramp", 1) set up (scn.users (10). RampUpRate .protocolConfig (httpConf)) But when I run gatling I'm getting an error:
09: 57: 35.695 [error] ceegaZincCompiler $ - / Gatling / user-files / simulations / clients / com / mydomain / www / stress / RecordedSimulation Scala: 1088: Overloaded method value with ramp option: (Duration: akka.util.Duration) com.excilys.ebi.gatling.core.scenario.configuration.ConfiguredScenarioBuilder & lt; And & gt; (Duration: long) com.excilys.ebi.gatling.core.scenario.configuration.configured ScenarioBuilder can not be applied (java.lang.Integer) I thought Before using just the parameter
val rampUpRate = Integer.getInteger ("ramp", 1) set-up (scn.users (10). Ramp ((long) ramp uprate). Protocol Config (httpConf) but still errors:
09: 57: 35.695 [error] ceegaZincCompiler $ - / gatling / user files / simulation / Client / com /mydomain/www/stress/RecordedSimulation.scala:1088: \ Pure SAP \ Om \ Sanctuary \ www \ stress \ recorded simulations carried out. Scala: 1088: Value is not a member of the ramp upreact object 10: 05: 34.915 [error] ceegaZincCompiler $ - scn1.users (10) .Rump ((Long) wrapper). Protocol config (httpConf), Why do some suggestions follow the documents, or artists do not work for long periods of time?
Use rampUpRate.toLong to cast a long (or More common cast rampUpreate.asInstanceOf [long] ) (long) ramp uprate is trying to perform by the compiler long RRUPRT () for example rampUpRate to object length , hence error message
Comments
Post a Comment