title: How to pass parameter to testng xml through command line
body: <p>I am executing my selenium automation scripts through testng, for the same I am having a testng xml form where I am passing parameter values like which test case has to be executed and on which environment it has to be executed.</p>
  
  <p>E.g of testng xml is pasted below</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="Automation Suite"&gt;
  &lt;parameter name="tags" value="MyTestCase"/&gt;
      &lt;!-- Default suite --&gt;    
  &lt;test name="GGGGG Automation Test" verbose="2"&gt;
  &lt;parameter name="Environment" value="MyEnvironment" /&gt;
  &lt;classes&gt;
  &lt;class name="com.XXXXX.TestRunner.XXXXXX"/&gt;
     &lt;/classes&gt;
   &lt;/test&gt;  
  &lt;/suite&gt;**
  </code></pre>
  
  <p>here I am passing 2 parameters like test cases and environment to be executed form testng example. I am looking for a command line 'command' to execute the testng xml passing those 2 parameters from commandline argument.</p>