Chains in Gatling 2.0.0-M3a

Hi all,

I’ve migrated all my scripts to Gatling 2.0, but one problem remains.

Previously I put a lot of chains in vals so I could re-use them.

e.g.
val set_something =
exec(…)

val set_somethingElse =
exec(…)

val update =
exec(…)

val scn = scenario(“”).
exec(set_something)
.repeat(10)(update)
exec(set_somethingElse)
.repeat(15)(update)

How this this work in 2.0? I get an error if I start a val with exec.

Thanks in advance,
Roy

Which version do you come from? 1.5.X or older?

What do your imports look like?

1.5.1

1.5.1 imports
import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
import com.excilys.ebi.gatling.http.Headers.Names._
import akka.util.duration._
import com.excilys.ebi.gatling.core.Predef.bootstrap._
import com.excilys.ebi.gatling.core.Predef.assertions._
import com.excilys.ebi.gatling.core.structure.ScenarioBuilder.configureScenario

2.0-M3a imports
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
import utility.Headers._
import utility.Templates._

Aaah missed these :slight_smile:

import io.gatling.core.Predef.bootstrap._
import io.gatling.core.Predef.assertions._

Thanks for pointing me in the right direction! Sorry for the question.

Exactly, and no pro :slight_smile: