I would like to see what is in the body of the message that I am sending to my script. In fact, I would like to see the request, request body and response. From a look at the docs and forums, I see that I can uncomment the line in logback-test.xml that I did, as shown below
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"> <resetJUL>true</resetJUL> </contextListener> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern> <immediateFlush>false</immediateFlush> </encoder> </appender> <logger name="io.gatling.http" level="TRACE" /> <root level="DEBUG"> <appender-ref ref="CONSOLE" /> </root>
The simulation.log file or console will show me the request, response, etc. After a few searches and documentation to read, I saw that I could do this -
.extraInfoExtractor(extraInfo => List(extraInfo.request, extraInfo.response,extraInfo.session))
This gives me almost everything except the request body. How to get the request body? I try to debug a problem when I am sure that the body that is being sent is not what I really want.
scala gatling
namesake
source share