title: How to pass dynamic array list to a Post Request using JMeter
body: <p>I want to send a dynamic arraylist as POST request by using JMeter. For example the request will be like :  </p>
  
  <pre><code>&lt;ArrayOfEmp&gt;
   &lt;Emp&gt;
    &lt;name&gt;emp1&lt;/name&gt;
    &lt;dept&gt;dept1&lt;/dept&gt;
   &lt;/Emp&gt;
    ...
   &lt;Emp&gt;
    &lt;name&gt;empN&lt;/name&gt;
    &lt;dept&gt;deptN&lt;/dept&gt;
   &lt;/Emp&gt;
  &lt;/ArrayOfEmp&gt;
  </code></pre>
  
  <p>I have a .csv file with Emp name and department. My script should be able to read the data from .csv file and pass to the request. Also each row of the .csv file will be a Emp object. The no of row will be dynamic.</p>
  
  <p>Can anyone help me write the BeanShell PreProcessor for this issue.</p>
  
  <p>Thanks.</p>