Great, thanks!
I get it now, and it seems to be working fine. I did notice a small problem with looping. If I use a "times(n)" loop, it works ok, but changing it to "during(n)" causes an exception:
[ERROR] [1/31/12 3:41 PM] [akka:event-driven:dispatcher:global-10] [LocalActorRef] You must call startCounter before this method is called
java.lang.IllegalAccessError: You must call startCounter before this method is called
at com.excilys.ebi.gatling.core.session.handler.CounterBasedIterationHandler$$anonfun$3.apply(CounterBasedterationHandler.scala:65)
at com.excilys.ebi.gatling.core.session.handler.CounterBasedIterationHandler$$anonfun$3.apply(CounterBasedterationHandler.scala:65)
Script:
val urlBase = "
http://localhost:8080/"
val httpConf = httpConfig.baseURL(urlBase)
val blah = scenario("VMC Login")
.loop(
chain.exec(
http("request_1")
.get("/")
.check(status.eq(200))
)
.pause(50, 500, MILLISECONDS)
).during(20)
val scnConf = blah.configure users 2 protocolConfig httpConf
runSimulation(scnConf)