I need to capture "HTTP Response" in a Gatling Script, With Response Code, cookies, Response message, Response body, etc.. The HTTP response associated with a HTTP request. I need both in my Gatling Script.
This can be done like below
http("Poll")
.get(Configuration.URL )
.queryParam("requestor", "Test")
.check(status.is(200))
.check(status.saveAs("statusCode")).check(xpath("//somerespone").saveAs("someresponse"))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.