From 453327db2b1385477d8d4d3982156dd1bcd937dd Mon Sep 17 00:00:00 2001 From: Stephane Landelle Date: Mon, 12 Oct 2020 18:49:59 +0200 Subject: [PATCH 1/3] Upgrade Gatling versions --- testing-modules/load-testing-comparison/pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing-modules/load-testing-comparison/pom.xml b/testing-modules/load-testing-comparison/pom.xml index adc768b563..55e94379db 100644 --- a/testing-modules/load-testing-comparison/pom.xml +++ b/testing-modules/load-testing-comparison/pom.xml @@ -117,10 +117,10 @@ 1.8 1.8 UTF-8 - 2.11.12 - 2.2.5 - 3.2.2 - 2.2.1 + 2.12.12 + 3.4.0 + 4.4.0 + 3.1.0 5.0 From c608c133f64b708b4fa3dcc6afba60723c1080ea Mon Sep 17 00:00:00 2001 From: Stephane Landelle Date: Mon, 12 Oct 2020 18:50:26 +0200 Subject: [PATCH 2/3] Remove extra headers as the other tools don't set them and that's extra traffic --- .../src/main/resources/scripts/Gatling/GatlingScenario.scala | 5 ----- 1 file changed, 5 deletions(-) diff --git a/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala b/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala index 15d86ebedb..050c99d9d4 100644 --- a/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala +++ b/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala @@ -10,11 +10,6 @@ class RewardsScenario extends Simulation { def randCustId() = java.util.concurrent.ThreadLocalRandom.current().nextInt(1, 10000) val httpProtocol = http.baseUrl("http://localhost:8080") - .acceptHeader("text/html,application/json;q=0.9,*/*;q=0.8") - .doNotTrackHeader("1") - .acceptLanguageHeader("en-US,en;q=0.5") - .acceptEncodingHeader("gzip, deflate") - .userAgentHeader("Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0") val scn = scenario("RewardsScenario") .repeat(100){ From 024da8003bb3c445e32b8d57bed5edd6a756dcbb Mon Sep 17 00:00:00 2001 From: Stephane Landelle Date: Mon, 12 Oct 2020 18:51:09 +0200 Subject: [PATCH 3/3] Remove RNG upper bound like in Grinder test to avoid race condition in application under test --- .../src/main/resources/scripts/Gatling/GatlingScenario.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala b/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala index 050c99d9d4..540e40a225 100644 --- a/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala +++ b/testing-modules/load-testing-comparison/src/main/resources/scripts/Gatling/GatlingScenario.scala @@ -7,7 +7,7 @@ import scala.concurrent.duration._ class RewardsScenario extends Simulation { - def randCustId() = java.util.concurrent.ThreadLocalRandom.current().nextInt(1, 10000) + def randCustId() = java.util.concurrent.ThreadLocalRandom.current().nextInt() val httpProtocol = http.baseUrl("http://localhost:8080")