[英]How Can I capture “HTTP Response” on Gatling script?
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. 我需要在加特林脚本中捕获“ HTTP响应”,以及响应代码,Cookie,响应消息,响应正文等。与HTTP请求关联的HTTP响应。 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"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.