Hi,
i’m new to both scala and gatling.
What’s the proper way to chain multiple checks on the same response in order to build the next http call ?
On the scn_scenario.txt example you are doing
.exec(
http(“request_4”)
.get("/private/bank/accounts.html")
.headers(headers_4)
.check(regex(""“ACC(\d+)”"").find.saveAs(“account_id”))
)
.pause(7, 8)
.exec(
http(“request_5”)
.get("/private/bank/account/ACC${account_id}/operations.html")
.headers(headers_5)
)
But for some of my pages i have to retrieve multiple values from the first page in order to build the second one, so i’d like to call multiple time the check. Something like
.exec(
http(“request_4”)
.get("/private/bank/accounts.html")
.headers(headers_4)
.check(regex(""“ACC(\d+)”"").find.saveAs(“account_id”))
.check(regex(""“DEP(\d+)”"").find.saveAs(“dep_id”))
)
.pause(7, 8)
.exec(
http(“request_5”)
.get("/private/bank/account/ACC${account_id}/DEP${dep_id}/operations.html")
.headers(headers_5)
)