title: how to pass parameters to methods which are executed by groups in testng.xml?
body: <p>I have two test methods</p>
  
  <pre class="lang-java prettyprint-override"><code>@Test (groups = {"group1"})
  public test1(){
  }
  @Test (groups = {"group1"})
  public test2(){
  }
  </code></pre>
  
  <p>Now I want to execute these test cases using groups in testng.xml</p>
  
  <p>for example</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;suite&gt;
    &lt;test&gt;
      &lt;groups&gt; 
          &lt;run&gt;
             &lt;include name="group1"/&gt;
          &lt;/run&gt;
      &lt;/groups&gt;
    &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>Now here I want to pass parameters to test1 and test2 individually like</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;include name="test1"&gt;&lt;parameter name="abc"  value="ABC"/&gt;&lt;/include&gt;
  &lt;include name="test2"&gt;&lt;parameter name="def"  value="DEF"/&gt;&lt;/include&gt;
  </code></pre>
  
  <p>Any suggestions ?</p>