Remove the unfair 1 second pauses between requests

Those pauses don't exist in the JMeter test. They just artificially reduce the Gatling test's throughput.
This commit is contained in:
Stephane Landelle 2020-09-06 23:37:51 +02:00
parent a3626ba16c
commit 7c41e37829

View File

@ -24,12 +24,10 @@ class RewardsScenario extends Simulation {
.check(jsonPath("$.id").saveAs("txnId")) .check(jsonPath("$.id").saveAs("txnId"))
.check(jsonPath("$.transactionDate").saveAs("txtDate")) .check(jsonPath("$.transactionDate").saveAs("txtDate"))
.check(jsonPath("$.customerId").saveAs("custId"))) .check(jsonPath("$.customerId").saveAs("custId")))
.pause(1)
.exec(http("get_reward") .exec(http("get_reward")
.get("/rewards/find/${custId}") .get("/rewards/find/${custId}")
.check(jsonPath("$.id").optional.saveAs("rwdId"))) .check(jsonPath("$.id").optional.saveAs("rwdId")))
.pause(1)
.doIf("${rwdId.isUndefined()}"){ .doIf("${rwdId.isUndefined()}"){
exec(http("rewards_add") exec(http("rewards_add")
@ -41,7 +39,6 @@ class RewardsScenario extends Simulation {
.exec(http("transactions_add") .exec(http("transactions_add")
.post("/transactions/add/") .post("/transactions/add/")
.body(StringBody("""{ "customerRewardsId":"${rwdId}","customerId":"${custId}","transactionDate":"${txtDate}" }""")).asJson) .body(StringBody("""{ "customerRewardsId":"${rwdId}","customerId":"${custId}","transactionDate":"${txtDate}" }""")).asJson)
.pause(1)
.exec(http("get_reward") .exec(http("get_reward")
.get("/transactions/findAll/${rwdId}")) .get("/transactions/findAll/${rwdId}"))