Hi!
I have a csv file all product-codes that have been queried within one hour (extracted from access.log).
class BasicSimulation extends Simulation {
val httpConf = http
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.doNotTrackHeader("1")
.acceptLanguageHeader("en-US,en;q=0.5")
.acceptEncodingHeader("gzip, deflate")
.userAgentHeader("Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0")
val products = csv("productQueries.txt").records
val productCall = feed(products)
.exec(http("request_1")
.get("/${productCode}")
val scn = scenario("de.douglas.productservice.stresstest.BasicSimulation")
.exec(productCall)
setUp(
scn.inject(atOnceUsers(100))
)
.protocols(httpConf)
.assertions(global.responseTime.max.lessThan(500))
}
I'd like to configure how many requests are being executed in parallel.
When I use atOnceUsers(100), gatling only executes 100 requests and is done after that.
I used constantUsersPerSec(100) before, but using that, I had to provide a time (which I don't know beforehand).
What I want is a behaviour like that:
- use every line of the textfile to create a request
- execute 100 requests in parallel (I don't care about users since my calls are stateless)
- do that as fast as possible
Any help would be highly appreciated!
Florian