title: TestNG Parametric failure
body: <p>Beginner testng always add the parameter error</p>
  
  <p>Master please help look at</p>
  
  <p>Thank you！！</p>
  
  <p>java code：</p>
  
  <pre><code>public class NewTest{
  
  @Parameters({"names"})
  @Test
  public void test(String name){
      System.out.println(name);
  }
  </code></pre>
  
  <p>TestNGxml：</p>
  
  <pre><code>&lt;suite name="Suite" parallel="false"&gt;
     &lt;parameter name="names" values="aaaaaaaaaa"&gt;&lt;/parameter&gt;
     &lt;test name="Test"&gt;
         &lt;classes&gt;
              &lt;class name="com.test.NewTest"/&gt;
         &lt;/classes&gt;
     &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>Exception information：</p>
  
  <pre><code>org.testng.TestNGException: 
  Parameter 'names' is required by @Test on method Test 
  but has not been marked @Optional or defined
  in D:\Documents and Settings\huohui\workspace\lianxi\src\test.xml
  </code></pre>