setting up scenario for 1 hr

Hi All,

I am trying to set up load test for 1 hr where my 3 scripts at one place. i am checking in documentation about giving duration for 1 hr to run loadtest… I found setUp(testExample.users(3000).ramp(15).protocolConfig(httpConf)) . how should we give duration for the loadtest in the setup? Can any one please help me on this?

my scenario is defined like below

setUp(

scn.inject(atOnceUsers(10)).protocols(httpProtocol)
scn1.inject(atOnceUsers(10)).protocols(httpProtocol1),
scn2.inject(atOnceUsers(10)).protocols(httpProtocol2)

)

Regards,
Anitha

Hi,

I don’t know where you found this, but it’s Gatling 1 syntax and nowhere near what you want to do (it would start 3000 users over 15 seconds, e.g. 200 new users per second).
Please refer to the official documentation of the Injection DSL : http://gatling.io/docs/2.0.1/general/simulation_setup.html#injection

This is how I am running 1 hour load test

`

val scnrio = scenario(“Search”).during(3 hours) {
pace(5 seconds, 10 seconds)
exec(FacetClicks.facetClicks ,PageClicks.pageClicks, PreviewClicks.previewClicks)
}

setUp(
scnrio.inject(rampUsers(100) over (300 seconds)
)).protocols(httpProtocol)
}

`

HTH

Hi Abhinav,

Any idea what could be wrong here? https://groups.google.com/forum/#!topic/gatling/MotiwcceKvY