12. Feeder
val feeder = csv("foo.csv").random
val scn1 = scenario("LoginSimulation").feed(feeder)
http("loginmultiuser")
.post("/login")
.headers(headers_0)
.formParam("email", "${username}")
.formParam("password", "${password}")
.check(substring("${displayname}").exists)
13. Feeder
val feeder = csv("foo.csv").random
.queue // default behavior: use an Iterator on the underlying sequence
.random // randomly pick an entry in the sequence
.shuffle // shuffle entries, then behave live queue
.circular // go back to the top of the sequence once the end is reached
17. Assertions
// Assert that the max response time of all requests is less than 100 ms
setUp(scn).assertions(global.responseTime.max.lt(100))
// Assert that every request has no more than 5% of failing requests
setUp(scn).assertions(forAll.failedRequests.percent.lte(5))
// Assert that the percentage of failed requests named "Index" in the group "Search"
// is exactly 0 %
setUp(scn).assertions(details("Search" / "Index").failedRequests.percent.is(0))
// Assert that the rate of requests per seconds for the group "Search"
setUp(scn).assertions(details("Search").requestsPerSec.between(100, 1000))