Created
December 6, 2013 11:52
-
-
Save azusa/7822559 to your computer and use it in GitHub Desktop.
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
package basic | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import io.gatling.jdbc.Predef._ | |
import io.gatling.http.Headers.Names._ | |
import scala.concurrent.duration._ | |
import bootstrap._ | |
import assertions._ | |
class BasicSimulation extends Simulation { | |
val httpProtocol = http | |
.baseURL("http://localhost:8080") | |
.acceptCharsetHeader("ISO-8859-1,utf-8;q=0.7,*;q=0.7") | |
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") | |
.acceptEncodingHeader("gzip, deflate") | |
.acceptLanguageHeader("fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3") | |
.disableFollowRedirect | |
val scn = scenario("10 requests") | |
.repeat(10){ | |
exec(http("Request").get("/helloworld-webapp/helloworld")) | |
} | |
setUp(scn.inject(ramp(1000 users) over (120 seconds))) | |
.protocols(httpProtocol) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment