title: testng - passing list as parmeters in testng.xml
body: <p>Would it be possible to pass a list in the testNG parameters. Below is sample code  </p>
  
  <p>Example: Trying to pass list of numbers in XML. Not sure if TestNG does not support this feature. Or am i missing anything?</p>
  
  <pre><code> &lt;suite name="Suite" parallel="none"&gt;  
       &lt;test name="Test" preserve-order="false"&gt;  
           &lt;parameter name="A" value="1"/&gt;   
           &lt;parameter name="B" value="2"/&gt;   
           &lt;parameter name="C" value="3"/&gt;   
           &lt;parameter name="D" value="{4,5}"/&gt;   
           &lt;classes&gt;  
               &lt;class name="TestNGXMLData"/&gt;  
           &lt;/classes&gt;  
       &lt;/test&gt;  
   &lt;/suite&gt;  
  </code></pre>
  
  <hr>
  
  <pre><code>import java.util.ArrayList;
  import java.util.Iterator;
  import java.util.List;
  import com.thoughtworks.selenium.Selenium;
  import static org.testng.Assert.assertTrue;
  import org.testng.annotations.*;
  import com.thoughtworks.selenium.*;
  
  public class TestNGXMLData {
  
      @Test
      @Parameters(value = { "A", "B", "C", "D" })
      public void xmlDataTest(String A, String B, String C, ArrayList&lt;String&gt; ls) {
  
          System.out.println("Passing Three parameter to Test " + A + " and " + B + " and " + C);
  
          Iterator it = ls.iterator();
          while (it.hasNext()) {
              String value = (String) it.next();
          }
      }
  }
  </code></pre>
  
  <p>Thanks,
  Siva</p>