Gatling - Log body of request in simulation.log or console

前端 未结 5 2329
我寻月下人不归
我寻月下人不归 2021-02-19 00:28

I would like to see what is in the body of the post that I am sending in my script. In fact, I would like to see the request, request body and response. From looking at the docs

5条回答
  •  执笔经年
    2021-02-19 00:56

    An update with Gatling 3.x, the comment in logback.xml is quite self-explain

    
    
    
    

    After uncomment the above config we can get the request url, request header, response etc in the log or IDE'S console. That's very helpful to verify the dynamic feeder value used in request url or body, and it's the way to debug the failed requests.

提交回复
热议问题