-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
Description
Hi
I am trying to run a simple script in Kraken but I get a compilation error
13:31:33.564 [ERROR] i.g.c.ZincCompiler$ - /kraken/gatling/user-files/simulations/com/octoperf/tutorials/restcore/restscenarios/DemoAccountCreation.scala:17:10: type mismatch;
found : Iterator[scala.collection.immutable.Map[String,String]]
required: io.gatling.core.feeder.FeederBuilder
Locally everything works out for me
Sample script:
import io.gatling.core.Predef.{feed, scenario}
import io.gatling.core.structure.ScenarioBuilder
import scala.concurrent.duration._
object DemoAccountCreation {
val emailGenerator: Iterator[Map[String, String]] = Iterator.continually(Map("email" -> Utils.randomStringFromCharList(10, ('a' to 'z'))))
val start: ScenarioBuilder = scenario("DemoAccountCreation")
.during(1.minutes)
{
feed(emailGenerator)
.exec(RestApi.demoAccountCreation)
}
}
Reactions are currently unavailable