title: Selenium: TestNG: Tests are not running in parallel
body: <p>I have a simple maven project with three class files.
  When I run my testng.xml file, tests are running in series.</p>
  
  <p>I tried keeping parallel="classes", parallel="methods", parallel="tests" but no luck.
  Also tried by changing testng version from <strong>6.9.0 to 7.0.0</strong> but it didn't work.</p>
  
  <p><strong>Expectation:</strong></p>
  
  <p>Tests should run in parallel</p>
  
  <p><strong>What is happening:</strong></p>
  
  <p>Tests run in sequence</p>
  
  <p>Below is my project and all files: </p>
  
  <p><strong>Test Class: 1</strong></p>
  
  <pre><code>public class TestOne {
  
  private static WebDriver driver;
  private static String baseURL;
  
  @Test
  public void launch() throws IOException {
      baseURL = "http://www.gmail.com";
      System.setProperty("webdriver.chrome.driver", "path");
      WebDriver driver = new ChromeDriver();
      driver.get(baseURL);
      driver.quit();
      }
  }
  </code></pre>
  
  <p><strong>Test Class: 2</strong></p>
  
  <pre><code>public class TestTwo {
  
  private static WebDriver driver;
  private static String baseURL;
  
  @Test
  public void launch() throws IOException {
      baseURL = "http://www.gmail.com";
      System.setProperty("webdriver.chrome.driver", "path");
      WebDriver driver = new ChromeDriver();
      driver.get(baseURL);
      driver.quit();
      }
  }
  </code></pre>
  
  <p><strong>Test Class: 3</strong></p>
  
  <pre><code>public class TestThree {
  
  private static WebDriver driver;
  private static String baseURL;
  
  @Test
  public void launch() throws IOException {
      baseURL = "http://www.gmail.com";
      System.setProperty("webdriver.chrome.driver", "path");
      WebDriver driver = new ChromeDriver();
      driver.get(baseURL);
      driver.quit();
      }
  }
  </code></pre>
  
  <p><strong>TestNG xml:</strong> </p>
  
  <pre><code>!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"
  
  suite name="Test" parallel="tests" thread-count="3" data-provider-thread-count="5"
  
  &lt;test name="Launch"&gt;
      &lt;classes&gt;
          &lt;class name="test.demo.grid.TestOne" /&gt;
          &lt;class name="test.demo.grid.TestTwo" /&gt;
          &lt;class name="test.demo.grid.TestThree" /&gt;
      &lt;/classes&gt;
  &lt;/test&gt;
  </code></pre>
  
  <p></p>
  
  <p>Version:</p>
  
  <p>selenium-java = 3.4.0</p>
  
  <p>testng = 6.14.3</p>
  
  <p>=================================</p>
  
  <p>Please let me know how I can fix it. </p>
  
  <p>Thank you!</p>