Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
Are the script variables in the Beanshell sampler reset every time when the sampler is run in ForEach controller?

Open 1 Answers 26 Views
0 1
In JMeter, Are the script variables in the Beanshell sampler reset every time when the sampler is run in ForEach controller?

1 Answer

1
1

You have to add this code:

Beanshell Script::

keyword = "buddha quotes";
links = vars.get("links");
f = new FileOutputStream("result.csv",true);
p = new PrintStream(f); 
this.interpreter.setOut(p);
print(keyword +  ","  + links);
f.close();
answered by (748 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...