Add missing optional option on the check that captures the reward
This shouldn't be an error, it's an expected situation as described in the article.
This commit is contained in:
parent
b2643fc0dd
commit
a3626ba16c
@ -28,7 +28,7 @@ class RewardsScenario extends Simulation {
|
||||
|
||||
.exec(http("get_reward")
|
||||
.get("/rewards/find/${custId}")
|
||||
.check(jsonPath("$.id").saveAs("rwdId")))
|
||||
.check(jsonPath("$.id").optional.saveAs("rwdId")))
|
||||
.pause(1)
|
||||
|
||||
.doIf("${rwdId.isUndefined()}"){
|
||||
|
Loading…
x
Reference in New Issue
Block a user