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


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



.acceptEncodingHeader(“gzip, deflate”)



.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”)




.pause(187 milliseconds)







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) {





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