Scala 如何在Gatling脚本上捕获“HTTP响应”?

Scala 如何在Gatling脚本上捕获“HTTP响应”?,scala,performance-testing,httpresponse,gatling,scala-gatling,Scala,Performance Testing,Httpresponse,Gatling,Scala Gatling,我需要在Gatling脚本中捕获HTTP响应,包括响应代码、cookie、响应消息、响应正文等。。 与HTTP请求关联的HTTP响应。我需要在我的加特林脚本中同时使用这两种语言。这可以像下面这样完成 http("Poll") .get(Configuration.URL ) .queryParam("requestor", "Test") .check(status.is(200))

我需要在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"))