Hi All,
I am new to Gatling, and trying to parameterise http post request into other api calls.
Request is :
http(“request_80”)
.post("/report/api/report/create")
.headers(headers_80)
.body(RawFileBody(“test_0080_request.txt”))
test_0080_request.txt contains the following responses:
{“analysisRid”:{“rid”:“ri.contour.main.analysis.cd3c10c0-c981-42bb-b960-be6a73de8e52”},“reportRid”:{“rid”:“ri.contour.main.report.cd3c10c0-c981-42bb-b960-be6a73de8e52”}}
I need to extract analysisRid and reportRid seperatly and use it different areas of the script.
I tried using : .check(bodyString.find.saveAs(“mainAnalysis”)).
Can someone help on extracting analysisRid and reportRid ?
Thanks,
Jagadish