Unable to read the parameters declared in testng.xml file
<p>code: </p>

<pre><code>package TestNG;

import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class DataProvider {
    @Parameters("param1")
    @Test
    public void getParam(String MyName) {
        System.out.println("Parameter param1 value is :" + MyName);
    }
}
</code></pre>

<p>Testng.xml file:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
    &lt;suite name="TestNG"&gt;
      &lt;test name="DataProvider"&gt;
        &lt;classes&gt;
          &lt;class name="TestNG.DataProvider"/&gt;
          &lt;parameter name="param1" value="10"/&gt;
        &lt;/classes&gt;
      &lt;/test&gt; 
    &lt;/suite&gt; 
</code></pre>

<p>Error message :</p>

<pre><code>SKIPPED: getParam
org.testng.TestNGException: 
Parameter 'param1' is required by @Test on method getParam but has not been marked @Optional or defined
in C:\Users\Satish\AppData\Local\Temp\testng-eclipse--422714061\testng-customsuite.xml
    at org.testng.internal.Parameters.createParameters(Parameters.java:154)
    at org.testng.internal.Parameters.createParameters(Parameters.java:361)
    at org.testng.internal.Parameters.handleParameters(Parameters.java:451)
    at org.testng.internal.Invoker.handleParameters(Invoker.java:1276)
    at org.testng.internal.Invoker.createParameters(Invoker.java:991)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1081)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
</code></pre>

<p>Note : Code in testng.xml is not color coded. Could this be some configuration issue and not able to read the parameter from testng.xml</p>