title: How to run TestNG tests one-by-one
body: <p>I have a test suite and I want to run tests form XML file one-by-one. But when I'm running it, it runs all TCs at the same time (I have 3 open browsers at the same time).</p>
  
  <p>My XML:</p>
  
  <pre><code>    &lt;suite name="TestingSuite" preserve-order="true" parallel="false" verbose="10"&gt;
        &lt;test name="Test1"&gt;
           &lt;classes&gt;
              &lt;class name="guiAndFunctianal.LoginFail" /&gt;
              &lt;class name="guiAndFunctianal.LoginAsManager" /&gt;
              &lt;class name="guiAndFunctianal.CreateUserTest" /&gt;        
            &lt;/classes&gt;
        &lt;/test&gt;
      &lt;/suite&gt;  
  </code></pre>
  
  <p>My TCs looks like this: </p>
  
  <pre><code>    public class LoginFail extends AbstractTest{ 
      @ BeforeTest 
      public void openBrowser() {
       openBrowserFireFoxAllTcs();
       } 
      @ Test
       public void main (){   
      }
      @ AfterTest 
      public void quit() { 
      driver.quit(); } 
  </code></pre>
  
  <p>AbstractTest</p>
  
  <pre><code>    public class AbstractTest {
       WebDriver driver = new FirefoxDriver();
       WebDriverWait wait = new WebDriverWait(driver, 10);
       public void openBrowserFireFoxAllTcs() { 
      driver.get("some URL"); 
      } 
  </code></pre>