title: Parameter 'browserType' is required by @Configuration on method before but has not been defined in src\test\resources\testng.xml
body: <p>When running Selenium case, I want firefox and chrome at the same build. My testng.xml :</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="Suite"&gt;
  
    &lt;test name="Browser Compatibility Test Cases--firefox" thread-count="1" preserve-order="false"&gt;
         &lt;parameter name="browserType" value="firefox" /&gt;
         &lt;classes&gt;
             &lt;class name="com.yeetrack.selenium.test.ParameterTest" /&gt;
         &lt;/classes&gt;
    &lt;/test&gt;
  
      &lt;test name="Browser Compatibility Test Cases--chrome" thread-count="1" preserve-order="false"&gt;
          &lt;parameter name="browserType" value="chrome" /&gt;
          &lt;classes&gt;
              &lt;class name="com.yeetrack.selenium.test.ParameterTest" /&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>And my test case:</p>
  
  <pre><code>public class ParameterTest {
      @Parameters("browserType")
      @BeforeMethod
      public void before(String browser)
      {
          System.out.println(browser);
      }
  
      @Test(dataProvider = "KeywordDataProvider", dataProviderClass = KeywordData.class)
      public void test(String keyword)
      {
          System.out.println(keyword);
      }
  }
  </code></pre>
  
  <p>But I got an error:</p>
  
  <pre><code>before(com.yeetrack.selenium.test.ParameterTest)  Time elapsed: 0.222 sec  &lt;&lt;&lt; FAILURE!
  org.testng.TestNGException: 
  Parameter 'browserType' is required by @Configuration on method before
  but has not been defined in src\test\resources\testng.xml
      at org.testng.internal.Parameters.createParameters(Parameters.java:109)
      at org.testng.internal.Parameters.createParameters(Parameters.java:264)
      at org.testng.internal.Parameters.createConfigurationParameters(Parameters.java:69)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:135)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:427)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:607)
  </code></pre>
  
  <p>When running, browserType=firefox, it passed. But when browserType=chrome, it failed. I can't use @Parameters and DataProvider at the same time? When I change my case to :</p>
  
  <pre><code>@Test //no DataProvider
  public void test()
              {
                  System.out.println("Hello world"));
              }
  </code></pre>
  
  <p>It passed! Why? thx.</p>