Hi,
I have recorded a Launch and Login script for my application using Gatling Recorder?(by adding Blacklist) and opened the same using IntelliJ , I know that Response body of recorded script is saved in resources folder,
- then what about the Response Header is saved?
- LAter made some changes and ran the script multiple times, where can I see the response body and Header of recently executed script.
Hello
create logback.xml under resources and the below content
<?xml version="1.0" encoding="UTF-8"?>
INFO
ACCEPT
DENY
%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx
false
TRACE
ACCEPT
DENY
target/log-${byDay}.txt
true
%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx
if you are using Maven, leave the above content as it is
if you are using Gradle , modify the file tag as below
build/log-${byDay}.txt
now if you run the test, the trace logs i.e the request, the response including headers will be written into file log_{timestamp}.txt under target(maven) or build(gradle) folder
make sure to comment the line as below, when you go for running a load test or else you will end up with a huge file
when you comment it, the log file wont be created
Thanks