title: Exclude Test in testNg
body: <p>I have the following testNg XML file. I would like to run Test1 and not Test2. How can I do it? I tried excluding the methods of Test2 using the "exclude" keyword. But it doesn't seem to work that. I cannot make changes to the actual code. Unfortunately, that is forbidden. All I can do is make changes to this XML and run the tests. Is there any way using which I can ignore Test2 while still manage to run Test1? I am looking for a more elegant way than commenting the code out. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;suite name="Suite" parallel="false"&gt;
  &lt;parameter name="xxx" value="yyy" /&gt;
  &lt;parameter name="zzz" value="aaa" /&gt;
  &lt;parameter name="user" value="1" /&gt;
  
  &lt;test name="Test1"&gt;
      &lt;parameter name="browser" value="Chrome" /&gt;
      &lt;define name = "regression"&gt;
              &lt;include name = "spot" /&gt;
              &lt;include name = "sanity" /&gt;
          &lt;/define&gt;
      &lt;groups&gt;
          &lt;run&gt;
              &lt;include name="regression" /&gt;
          &lt;/run&gt;
      &lt;/groups&gt;
          &lt;classes&gt;
              &lt;class name="class2" /&gt;
              &lt;method&gt;
                  &lt;include name="method1" /&gt;
                  &lt;include name="method2" /&gt;
              &lt;/method&gt; 
          &lt;/classes&gt;
  &lt;/test&gt;
  
  &lt;test name="Test2"&gt;
      &lt;parameter name="browser" value="Firefox" /&gt;
          &lt;define name = "regression"&gt;
              &lt;include name = "spot" /&gt;
              &lt;include name = "sanity" /&gt;
          &lt;/define&gt;
      &lt;groups&gt;
          &lt;run&gt;
              &lt;include name="spot" /&gt;
              &lt;exclude name="sanity" /&gt;
          &lt;/run&gt;
      &lt;/groups&gt;
          &lt;classes&gt;
              &lt;class name="class2" /&gt;
              &lt;method&gt;
                  &lt;include name="method1" /&gt;
                  &lt;include name="method2" /&gt;
              &lt;/method&gt; 
          &lt;/classes&gt;
  &lt;/test&gt;
  
  
  
  &lt;/suite&gt;  &lt;!-- Suite --&gt;
  </code></pre>