title: How to run only selected test cases of a class in Selenium Automation testing project?
body: <p>I have prepared a testng.xml file where I put number of test classes to run, for example:</p>
  
  <pre><code>    &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;  
      &lt;!-- REMOTE PROJECT --&gt;    
      &lt;suite name="Suite1" preserve-order="true"&gt;
          &lt;test name="Test1"&gt;
              &lt;parameter name="browsers" value="Chrome"&gt;
              &lt;/parameter&gt;
              &lt;classes&gt;               
                  &lt;class name="com.project.live.Class1" /&gt;    
                  &lt;class name="com.project.live.Class2" /&gt;    
                  &lt;class name="com.project.live.Class3" /&gt;
  ...
  ...
  ...
                  &lt;class name="com.project.live.Class...Nth" /&gt;
              &lt;/classes&gt;
  
  
          &lt;/test&gt;
          &lt;!-- Test --&gt;
      &lt;/suite&gt; &lt;!-- Suite --&gt;
  </code></pre>
  
  <p>There are test cases in these classes with <code>@Test Annotation</code>, I want to run selected test cases only i.e. I will skip some tests of these classes.<br><br>
  1. One way to do this is put <code>@Ignore Annotation</code> and remove <code>@Test Annotation</code> from tests which I don't want to run (but that's lengthy work, very time consuming)
  <br>
  2. Another way is to use <code>groups</code>but again it is lengthy to select tests and put them in groups.
  <br><br>
  <b>Query:</b>Is there any optimal way to achieve this, may be some customized config file?</p>