JMeter Save Return to CSV

Add a thread group, then right-click and select “Regular Expression Extractor”

Share pictures

Configure regular expressions:

share pictures

Add the beanshell postprocessor:

share picture

Save the extracted data:

Share a picture

Code:< /p>

FileWriter fstream = new FileWriter("C:\Users\admin\Desktop\ tokens.csv",true);

BufferedWriter out
= new BufferedWriter(fstream);
out.write(vars.get(
"tokens")+",");
out.write(System.getProperty(
"line.separator"));
out.close();
fstream.close();

FileWriter fstream = new FileWriter("C:\Users\admin\Desktop\tokens.csv",true);

BufferedWriter out
= new BufferedWriter(fstream);
out.write(vars.get(
"tokens")+",");
out.write(System.getProperty(
"line.separator"));
out.close();
fstream.close();

Leave a Comment

Your email address will not be published.