Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 Gatling 脚本中捕获“HTTP 响应”,包括响应代码、cookie、响应消息、响应正文等。与 HTTP 请求关联的 HTTP 响应。我的加特林脚本中都需要。
这可以像下面这样完成
http("Poll") .get(Configuration.URL ) .queryParam("requestor", "Test") .check(status.is(200)) .check(status.saveAs("statusCode")).check(xpath("//somerespone").saveAs("someresponse"))