JMeter - How to loop through "bsh.shared" ArrayList in a single Thread Group?

Viewed 1061

I have a BeanShell PostProcessor under the setUp Thread Group. I put the ArrayList into the "bsh.shared" namespace like:

List personIdsList = new ArrayList();
...
bsh.shared.personIds = personIdsList;

I know how to read the value via __BeanShell function as:

${__BeanShell(bsh.shared.personIds)}

And I want to loop through this array in other Thread Group. (${personId} - it should iterating value from list)

enter image description here

Could you, please, tell me how to do that?

Thanks!

1 Answers
Related