I have an arrayList created as property (accessible by all threadgroups) after adding some values to this arraylist..using foreach loop to this arraylist i want to get maximum value from the arraylist and store it in a variable? Someone pl help me with this
I am not able to iterate through that global(accessible by all threadgroups) arraylist.
JMeter's ForEach Controller can only iterate JMeter Variables, not properties so the options are in:
Either use Loop Controller with the number of loops equal to the number of items in the arraylist
Or convert the arraylist into JMeter Variables using a suitable JSR223 Test Element and Groovy code like this:
it will generate the following JMeter Varibles
and these variables could be used in the ForEach Controller normally