Skip to content

Script compilation error #113

@AliceCarroll239

Description

@AliceCarroll239

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)
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions