Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 796 Bytes
package computerdatabase
import io.gatling.core.Predef._
import io.gatling.http.Predef._
class D2siSimulation extends Simulation {
val httpConf = http
.baseURL("") // Here is the root for all relative URLs
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") // Here are the common headers
val scn = scenario("D2siSimulation")
.exec(http("Get Computers").get("/computers"))
.exec(http("Add Computer").post("/computers")
.formParam("name", "Beautiful Computer")
.formParam("introduced", "2012-05-30")
.formParam("discontinued", "")
.formParam("company", "37"))