I am using GATLING 3.0.0 RC4 version
Senario ( working):
- for when inject user is set to 1 , below code is working fine…i.e id_fcp is saved successfully in post request STEP1 and same value will be successfully passed to post request STEP3 and both requests works fine.
- for when inject user is set to 20 ( multiple), below code is not working fine…i.e id_fcp is not saved successfully in post request STEP1 and same value not passed to post request STEP3 with below error. Also mentioned comments about STEP1 and STEP3 in code below
STEP3: Failed to build request: No attribute named 'id 356 (36.74%)
_fcp’ is defined
Question: How to store multiple jason path element value for multiple post response ( STEP1) and after this how to pass successfully these stored values for successive multiple post requests (STEP3) ?
val scn20 = scenario(“Given Senario”)
.exec(http(“STEP1”) // 20 response value need to be stored in name i.e id_fcp
.exec(http(“STEP2”) // Here’s an example of a POST request
.exec(http(“STEP3”) // All 20 id_fcp which stored in STEP1 need to passed to 20 parallel requests which is generated in STEP3