title: Parallel cross browser testing with Selenium and TestNG without using testng.xml
body: <p>I am using Maven Failsafe + TestNG to run Selenium tests. I know it is possible to pass parameters to my TestNG tests by defining system properties in pom.xml like this:</p>
  
  <pre><code> &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.19.1&lt;/version&gt;
      &lt;configuration&gt;
        &lt;systemPropertyVariables&gt;
          &lt;browser&gt;firefox&lt;/browser&gt;
        &lt;/systemPropertyVariables&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>My TestNG test refers this property like this:</p>
  
  <pre><code>@Parameters("browser")
  public void setUpClass(@Optional("firefox") String browser)
  {
     ...
  }
  </code></pre>
  
  <p>However, I was wondering is it possible to run cross browser tests in parallel without a need to specify a testng.xml file. I was trying something like this but it didn't work. Appreciate if you can help.</p>
  
  <pre><code> &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.19.1&lt;/version&gt;
      &lt;configuration&gt;
        &lt;systemPropertyVariables&gt;
          &lt;browser&gt;firefox, chrome&lt;/browser&gt;
        &lt;/systemPropertyVariables&gt;
        &lt;parallel&gt;tests&lt;/parallel&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>Is it possible to achieve this with just pom.xml configuration? Because of the multi-module nature of my project, I am not keen in using testng.xml file.</p>