Need info - how to Repeat same test scenario with multiple users for Baseline Tests

Hi,

I am trying to setup baseline tests for a test site and repeat the same for multiple users e.g.: 1,3,5,50,100,500 and run as part of maven build process.

I have created following test scenario, Could you please advise how to repeat this scenario with multiple users.

class baseTest extends Simulation {

val httpConf = httpConfig

.baseURL(“http://testsite”)

.acceptHeader(“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”)

.acceptEncodingHeader(“gzip, deflate”)

.acceptLanguageHeader(“en-gb,en;q=0.5”)

.connection(“keep-alive”)

.userAgentHeader(“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:30.0) Gecko/20100101 Firefox/30.0”)

val headers_2 = Map(

"Accept" → “”“application/json, text/javascript, /; q=0.01"”",

"X-Requested-With" → “”“XMLHttpRequest”""

)

val scn = scenario(“Scenario Name”)

.exec(http(“homepage”)

.get("/")

)

.pause(187 milliseconds)

.exec(http(“request_2”)

.get("/scripts/config.json")

.headers(headers_2)

)

setUp(scn.users(1).protocolConfig(httpConf))

}

I have tried replacing setUp line with following code, however test fails with error : Scenario names must be unique but found ArrayBuffer

val list = List(1,3,5,10,50,100)

for(a ← list) {

setUp(scn.users(a).protocolConfig(httpConf))

}

Thanks,

Raja

Turn scn into a def that takes a name parameter and pass it a.

can you provide more details on it. I am also looking for same.
I want to pass number of user as maven build parameter which I will read from external file.
I am not able to feed values to setup def

https://github.com/excilys/gatling/wiki/Passing-parameters