title: How to put an ArrayList<String> object to the props variable of jmeter and use it from Beanshell script
body: <p>I am trying to do this from a beanshell sampler.</p>
  
  <pre><code>import java.util.List;
  import java.util.ArrayList;
  
  list = new ArrayList();
  props.putObject("list", list );
  </code></pre>
  
  <p>Now from another Beahshell sampler I want to do this.</p>
  
  <pre><code>list = props.getObject("list");
  list.add("Rajan");
  </code></pre>
  
  <p>And then from a third Bean shell sampler</p>
  
  <pre><code>log.info("The list is " + list );
  </code></pre>
  
  <p>The code will work if we use vars instead of props. But the scope of vars is inside a single thread only. I want an array object in the scope of the test plan.
  The code throws an error. seems like props is a java.util.Properties class and cannot hold objects. Any idea how to do this.</p>
  
  <blockquote>
    <p>In file: inline evaluation of: ``import java.util.List; import java.util.ArrayList;  //Prints the report list = n . . . '' Encountered "&lt;" at line 5, column 21.</p>
  </blockquote>