I have used Beanshell Post Processor to store dynamically generated values in
a text file.
Here in this case I have extracted the "REFID" value using Regular
Expression Extractor and these value is stored in ids.txt placed at
C:\\Report folder as:
output = vars.get("REFID");
log.info(output);
f = new FileOutputStream("C:\\Report\\id.txt");
p = new PrintStream(f);
this.interpreter.setOut(p);
print(output);
--
View this message in context:
http://jmeter.512774.n5.nabble.com/actual-usage-of-Bean-shell-scripting-in-jmeter-with-example-tp3358087p3359633.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]