Bug or missing option in pace?

Hello!

According to the Gatling documentation it should be possible to set

  • pace(duration: Duration)
    When I want to create pace(5) for instance, I get the error “Cannot resolve reference pace with such signature”.

This option is also missing in the autocompletion of my IDE.
I’m using Gatling 2.0.2 in IntelliJ from the Maven Archetype.

Thanks for your help.

Code sample, please.

I want to run this Code:

def getInterfaceStatistics(requests: Int) = repeat(requests) {
  pace(5)
    .exec(http("Get Interface Statistics")
    .get("/api/monitoring/device/interfaces"))
}

I am calling this method from my simulation class with the following:


Simple. Add :

import scala.concurrent.duration._

And you’re good to go.

Cheers,

Pierre

Sorry, that didn’t worked for. It seems like, that the pace(duration: Duration) method is missing somehow. I can’t access it.
When I use pace(5,5) there are no errors. Would this also work as a sort of workaround?
Cheers,
Steven

It was indeed missing: https://github.com/gatling/gatling/issues/2382

Thanks for reporting. This will be shipped in 2.0.3 tomorrow.

Cheers,
Stéphane