Permalink
Browse files

Use exponential pauses via pauseExp. pauseExp is available in https:/…

  • Loading branch information...
1 parent 5fee676 commit 3da7da5da89e770fa83c88eabae523a34220d6ab @skuenzli committed May 6, 2012
View
@@ -14,7 +14,7 @@
<roo.version>1.2.1.RELEASE</roo.version>
<slf4j.version>1.6.4</slf4j.version>
<spring.version>3.1.0.RELEASE</spring.version>
- <gatling.version>1.1.3-SNAPSHOT</gatling.version>
+ <gatling.version>1.1.6-SNAPSHOT</gatling.version>
</properties>
<repositories>
<repository>
@@ -32,6 +32,11 @@
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</repository>
+ <repository>
+ <id>excilys</id>
+ <name>Excilys Repository</name>
+ <url>http://repository.excilys.com/content/groups/public</url>
+ </repository>
</repositories>
<pluginRepositories>
<pluginRepository>
@@ -49,6 +54,11 @@
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</pluginRepository>
+ <pluginRepository>
+ <id>excilys</id>
+ <name>Excilys Repository</name>
+ <url>http://repository.excilys.com/content/groups/public</url>
+ </pluginRepository>
</pluginRepositories>
<dependencies>
@@ -18,15 +18,17 @@ class OutstandingRequestLimitingFilterSimulation extends Simulation {
"Keep-Alive" -> "115",
"User-Agent" -> "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/9.10 (karmic) Firefox/3.6.17")
- val scn = scenario("Scenario name")
+ val scn = scenario("Request overload")
.loop(
chain
.exec(
http("homepage")
.get("/sample-webapp/")
.headers(headers_standard)
.check(status.in(List(200, 503))))
- .pause(0, 50, MILLISECONDS)
+ /* .pause(0, 50, MILLISECONDS) */
+ //pauseExp is supported in https://github.com/skuenzli/gatling 1.1.6-SNAPSHOT and later
+ .pauseExp(100, MILLISECONDS)
).during(3, MINUTES)
List(scn.configure.users(100).ramp(10).protocolConfig(httpConf))

0 comments on commit 3da7da5

Please sign in to comment.