Skip to content

Instantly share code, notes, and snippets.

@maiha
Created September 11, 2014 18:10
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save maiha/04685142345af3831057 to your computer and use it in GitHub Desktop.
Save maiha/04685142345af3831057 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