OctoPerf / kraken

The Load Testing IDE
https://kraken.octoperf.com/
Apache License 2.0
113 stars 56 forks source link

Script compilation error #113

Open AliceCarroll239 opened 3 years ago

AliceCarroll239 commented 3 years ago

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)
  }
}
geraldpereira commented 3 years ago

Hello,

What version of Gatling are you using locally? Kraken uses the 3.3.0.