title: JMeter - How to pass an array into a property variable?
body: <p>I have a BeanShell PostProcessor under the setUp Thread Group.<br>
  It generates an ArrayList that I want to pass as a system property to the test Thread Groups in the Test Plan.<br>
  That array contains the number of threads in the test groups.<br>
  What is the syntax? How should I refer an element of that array in the Tread Group "Number of Threads (users)"?  </p>
  
  <p>This is what I have in the setUp Thread Group</p>
  
  <pre><code>ArrayList users = new ArrayList();
  ${__setProperty(users, ${users})};
  </code></pre>
  
  <p>This is what I put in the Number of Threads  </p>
  
  <pre><code>${__P(users).get(0)}
  </code></pre>
  
  <p>It does not work.<br>
  Thanks
  <a href="https://i.stack.imgur.com/pwJqV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pwJqV.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/Pmqr7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pmqr7.png" alt="enter image description here"></a></p>