Does anyone knoe how to save specific Jmeter Variables into a csv file? I have already tried this topic with no succes: Write extracted data to a file using jmeter and this code:
FileWriter fstream = new FileWriter("result.csv",true);
BufferedWriter out = new BufferedWriter(fstream);
out.write(${account_id});
out.close();
Thank you.
out.write(${account_id});
stanza without.write(vars.get("account_id"));
fstream
instance as well to avoid open handles lackFinal code:
See How to use BeanShell: JMeter's favorite built-in component for comprehensive information on Beanshell scripting
You can use this code in your BeanShellPostProcessor. It may help You.