-
-
Save lacoski/479462c2517a5ba5215d3eee8c2edd5d to your computer and use it in GitHub Desktop.
gatling: repeat example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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