Gatling 2.0.0-M3a compile error when using ramp

I wasted about 5 hours on this today. I had given up and was asking for help here when I figured it out. Posting my solution in case someone else gets the same problem. I am sure a real scala developer would have figured this out sooner but I only play one on TV.

I am using Gatling 2.0.0-M3a. I was getting a compile error on my simulation when I changed from ‘atOnce’ to ‘ramp’. The error was:

Error:(21, 30) value minutes is not a member of Int
ramp(10 users) over (5 minutes)

Here is my simulation(nothing fancy):

package issueBrowser

import io.gatling.core.Predef._
import io.gatling.http.Predef._

class IssueBrowserMed extends Simulation {

val httpConf = http

val scn = scenario(“Scenario Name”)
.exec(http(“Load page”)

//atOnce(10 users)
ramp(10 users) over (5 minutes)

You probably already noticed it, but I was missing an import. I added ‘import scala.concurrent.duration._’ and it happily compiles.

Sorry you lost 5 hours on this…

Don’t worry about it, I got back about 100 hours using Gatling instead of some of the other tools out there. It was a small price to pay. Besides, that was a valuable learning experience. I bet I check imports sooner next time. I got lazy expecting my IDE to handle missing imports.