Skip to content

Instantly share code, notes, and snippets.

@lacoski
Forked from maiha/Repeat.scala
Created February 13, 2019 07:21
Show Gist options
  • Save lacoski/479462c2517a5ba5215d3eee8c2edd5d to your computer and use it in GitHub Desktop.
Save lacoski/479462c2517a5ba5215d3eee8c2edd5d to your computer and use it in GitHub Desktop.
gatling: repeat example
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
class Repeat extends Simulation {
val httpProtocol = http.baseURL("http://localhost").inferHtmlResources()
val scn = scenario("repeat test").repeat(10) { exec(http("Home").get("/")) }
setUp(scn.inject(rampUsers(10) over(1)).protocols(httpProtocol))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment