Gatling During bucle doesn't works?

I’m running a basic test:

class TestingDuration extends Simulation {

val httpConf = httpConfig
.baseURL(“http://mywebsite.com”)

val scn = scenario(“Stress”)
.during(120 seconds) {
exec( http(“home”).get("/"))
.pause(1,5)
}

setUp(scn.users(100).ramp(20).protocolConfig(httpConf))
}

I want that 100 users request / during 120 seconds. When I run it in Gatling each user only request one time.

Anyone knows why??

Thanks!!

Are you sure you properly saved your file?
Which version do you use?

Yes, the file load without errors. Gatling 1.5.3 bundle. I think that its the basic test:

It’s all file:

=== BEGIN==

import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
import com.excilys.ebi.gatling.http.Headers.Names._
import akka.util.duration._
import bootstrap._

class TesingStress extends Simulation {

val httpConf = httpConfig
.baseURL(“http://www.mysite.test”)

val scn = scenario(“Stress”)
.during(120 seconds) {
exec( http(“home”).get("/"))
.pause(1,5)
}

setUp(scn.users(100).ramp(20).protocolConfig(httpConf))
}

===END===

(change mysite.test with realserver url)

¿if you use this, run 100 users during 120 seconds with a lot of “get” by each user?

In my gatling only run 100 users with 1 get by each user.

Thanks!

Just ran a quick test against http://www.google.fr with 20 users instead of 100 (in order not to be banned).
Got about 780 requests over 140 seconds (ramp + during loop), so a mean 5,6 req/s.
This value looks good to me: you have at most 20 concurrent users, if responses are immediate, and mean pauses are 3 seconds (1, 5), you’d expect at most 20/3=6,7 req/s.

What do your stats look like?

SOLVED!!!

The problem was that http was catching. If I use “.disableCaching” works fine!!!

I saw the solution here: https://groups.google.com/forum/#!topic/gatling/ezNVDe9ZsDE

Stephane many Thanks!

Ahhhh
By default, Gatling behaves like a browser, so if your page is cached with Expires header, Gatling won’t even issue a request.

Glad you solved it!
That’s a classic pitfall and I tend to forget it…

Thanks a lot for your help :wink:
Happy New Year!!

My pleasure!

Happy New Year too :slight_smile: