Jmeter : Clean up and Counter initialization
Problem :
Every time the loop started to execute it used to take the value left behind by the previous thread inside the variable "page".Though the "page" has been initialized to "1" at the start.
Therefore initialization was necessary every time a thread executes.But I later found out that usual initialization done using UserDefined variables in Config elements did not work.
The solution was by using BeanShell Sampler
Pre-Processor Problem : You will go no where , as for every sampler getting executed once in the loop pre-processor will execute.
Post-Processor Problem : Same here , you will go no where as after each time sampler gets executed in the loop post-processor will get executed.
Syntax :
vars.put("variable name","data");
Example :
vars.put("page","1");