package examples
import io.gatling.core.Predef._
import io.gatling.http.Predef._
class SimpleExample4 extends Simulation {
val httpConf = http
.baseURL("http://localhost:8080/auth")
.acceptHeader("text/html,application/xhtml+xml,application/xml")
.acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("en-US,en;q=0.5")
.userAgentHeader("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0")
val account = exec(http("Account")
.get("/realms/master/account")
.check(status is 200))
val scn = scenario("Account")
.exec(account)
setUp(
scn.inject(rampUsers(100) over 10).protocols(httpConf)
)
}