Http request contains two parameters

13 views
Skip to first unread message

jagadis...@unomee.com

unread,
Mar 9, 2018, 8:01:50 AM3/9/18
to Gatling User Group
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
Reply all
Reply to author
Forward
0 new messages