I am new to gatling and have a requirement where I have to save the values extracted from one of the my http response to the csv file. How I can do that. I am able to extract the values and print without any issue.
Hey Navdeep,
I was trying your solution and I was wondering if you could explain to me how does this code line looks for the created file:
val writer = new PrintWriter(new FileOutputStream(new File("data/tokens.csv"), true))
You see, I’ve tried changing the path (“src/resources/data/tokens.csv”, "“gatling/resources/data/tokens.csv”, “…/src/resources/data/tokens.csv”) but I can’t make it writing in the “tokens.csv” created file. I always get the same error:
java.io.FileNotFoundException: data\tokens.csv (El sistema no puede encontrar la ruta especificada)
The script creates the file, but It does not write in it.
I’m new at Gatling and I’ve been here for days
I also tried to use the same code for extratimg value from response.But its creating a file.But not writing the data.
I have imported the libraries mentioned