【发布时间】:2018-05-15 18:09:59
【问题描述】:
我需要在 Gatling 脚本中捕获“HTTP 响应”,包括响应代码、cookie、响应消息、响应正文等。 与 HTTP 请求关联的 HTTP 响应。我的加特林脚本中都需要。
【问题讨论】:
标签: scala performance-testing httpresponse gatling scala-gatling
我需要在 Gatling 脚本中捕获“HTTP 响应”,包括响应代码、cookie、响应消息、响应正文等。 与 HTTP 请求关联的 HTTP 响应。我的加特林脚本中都需要。
【问题讨论】:
标签: scala performance-testing httpresponse gatling scala-gatling
这可以像下面这样完成
http("Poll")
.get(Configuration.URL )
.queryParam("requestor", "Test")
.check(status.is(200))
.check(status.saveAs("statusCode")).check(xpath("//somerespone").saveAs("someresponse"))
【讨论】: