Skip to content

Instantly share code, notes, and snippets.

@nicmarti
Created January 28, 2012 22:02
Show Gist options
  • Save nicmarti/1695906 to your computer and use it in GitHub Desktop.
Save nicmarti/1695906 to your computer and use it in GitHub Desktop.
val urlBase = "http://localhost:8080"
val httpConf = httpConfig.baseURL(urlBase)
val headers_1 = Map(
"Accept" -> """text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8""",
"Accept-Charset" -> """ISO-8859-1,utf-8;q=0.7,*;q=0.3""",
"Accept-Encoding" -> """gzip,deflate,sdch""",
"Accept-Language" -> """fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4""",
"Cache-Control" -> """max-age=0""",
"Host" -> """localhost:8000""",
"Proxy-Connection" -> """keep-alive""",
"User-Agent" -> """Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7"""
)
val scn = scenario("Scenario name")
.loop(
chain
.exec(
http("request_1_grails")
.get("/test1/application/index")
.headers(headers_1)
.check(status.eq(200))
).pause(0, 100, MILLISECONDS)
).times(5)
runSimulation(
scn.configure users 500 ramp 10 protocolConfig httpConf
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment