Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script compilation error #113

Open
AliceCarroll239 opened this issue Jan 27, 2021 · 1 comment
Open

Script compilation error #113

AliceCarroll239 opened this issue Jan 27, 2021 · 1 comment
Assignees
Labels

Comments

@AliceCarroll239
Copy link

AliceCarroll239 commented Jan 27, 2021

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
Copy link
Contributor

Hello,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants