Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
461 views
by Master (1.2k points)
retagged by
In JMeter, Are the script variables in the Beanshell sampler reset every time when the sampler is run in ForEach controller?

1 Answer

1 like 0 dislike
by Expert (748 points)

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();


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...