Add a thread group, then right-click and select “Regular Expression Extractor”
Configure regular expressions:
Add the beanshell postprocessor:
Save the extracted data:
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 span> 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();