Hi,
I get “No attribute named ‘trackCode’ is defined” when my request is part of the resource group. As shown in the below example.
Is there a way to handle such situation like storing the ‘trackCode’ in session parameter ?
.exec(http("01_Main_Request_Page")
.post("/services/app/event/uiClick/json")
.headers(headers_0)
.body(StringBody("{}"))
.resources(http(**"02_Sub_Request**")
.get("/services/app/cme/settings/track/json")
.check(jmesPath("data.trackCode").saveAs("trackCode")),
http("03_Sub_Request")
.get("/services/app/cme/tracks/json?trackCode=#{trackCode}")
.check(jmesPath("data[0].survey.id").saveAs("surveyId"))
)
)
Extraction works fine if I take out the sub-requests and place them under new .exec call.
Thanks,
Ashish