title: Getting Parser Error: inconsistent cell count within the table - while running tests in Parallel - Selenium Cucumber Maven framework with Junit
body: <p>I have configured Selenium-cucumber maven framework with Junit. After adding the cucumber-jvm-parallel plugin &amp; maven-surefire plugin , commented the statements inside @CucumberOptions which we have written inside TestRunnerTest.java file .After configuring like this, run through CLI . Then my test script fails. But Runners are created automatically for the feature file.</p>
  
  <p>POM file is shown below :</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;selcuc&lt;/groupId&gt;
    &lt;artifactId&gt;DemoEurasia&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;CucumberParallel&lt;/name&gt;
   &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
  &lt;properties&gt;
   &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
   &lt;version.cucumber&gt;3.0.2&lt;/version.cucumber&gt;
  &lt;timestamp&gt;${maven.build.timestamp}&lt;/timestamp&gt;
   &lt;maven.build.timestamp.format&gt;yyyy_MM_dd_HH_mm&lt;/maven.build.timestamp.format&gt;
  &lt;/properties&gt;
   &lt;dependencies&gt;
   &lt;dependency&gt;
      &lt;groupId&gt;junit&lt;/groupId&gt;
      &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;version&gt;4.12&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
   &lt;/dependency&gt;
  
   &lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
      &lt;version&gt;3.14.0&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;info.cukes&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
      &lt;version&gt;1.2.5&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
    &lt;!-- &lt;dependency&gt;
         &lt;groupId&gt;info.cukes&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-jvm&lt;/artifactId&gt;
      &lt;version&gt;1.2.5&lt;/version&gt;
      &lt;type&gt;pom&lt;/type&gt;
  &lt;/dependency&gt; --&gt;
  
        &lt;!-- https://mvnrepository.com/artifact/info.cukes/cucumber-jvm-deps --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;info.cukes&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-jvm-deps&lt;/artifactId&gt;
  &lt;version&gt;1.0.5&lt;/version&gt;
  &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
   &lt;dependency&gt;
      &lt;groupId&gt;info.cukes&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
      &lt;version&gt;1.2.5&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt; 
      &lt;groupId&gt;info.cukes&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-picocontainer&lt;/artifactId&gt;
      &lt;version&gt;1.2.5&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt; 
      &lt;groupId&gt;info.cukes&lt;/groupId&gt; 
      &lt;artifactId&gt;gherkin&lt;/artifactId&gt; 
      &lt;version&gt;2.12.2&lt;/version&gt; 
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.aventstack&lt;/groupId&gt;
      &lt;artifactId&gt;extentreports&lt;/artifactId&gt;
      &lt;version&gt;3.1.5&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.vimalselvam&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-extentsreport&lt;/artifactId&gt;
      &lt;version&gt;3.1.1&lt;/version&gt;
  &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
            &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.7.0&lt;/version&gt;
              &lt;configuration&gt;
                &lt;source&gt;1.8&lt;/source&gt;
                &lt;target&gt;1.8&lt;/target&gt;
                 &lt;encoding&gt;UTF-8&lt;/encoding&gt;          
              &lt;/configuration&gt;
            &lt;/plugin&gt; 
  
  &lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.17&lt;/version&gt;
  &lt;executions&gt;
       &lt;execution&gt;
           &lt;id&gt;acceptance-test&lt;/id&gt;
           &lt;phase&gt;integration-test&lt;/phase&gt;
           &lt;goals&gt;
               &lt;goal&gt;test&lt;/goal&gt;
           &lt;/goals&gt;
           &lt;configuration&gt;
               &lt;forkCount&gt;2&lt;/forkCount&gt;
               &lt;reuseForks&gt;true&lt;/reuseForks&gt;
               &lt;includes&gt;
               &lt;include&gt;**/*IT.class&lt;/include&gt;
               &lt;/includes&gt;
           &lt;/configuration&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  &lt;/plugin&gt;
  
  
  &lt;plugin&gt;
  &lt;groupId&gt;com.github.temyers&lt;/groupId&gt;
  &lt;artifactId&gt;cucumber-jvm-parallel-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.1.0&lt;/version&gt;
  &lt;executions&gt;
      &lt;execution&gt;
          &lt;id&gt;generateRunners&lt;/id&gt;
          &lt;phase&gt;validate&lt;/phase&gt;
          &lt;goals&gt;
              &lt;goal&gt;generateRunners&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
              &lt;glue&gt;stepDefinition&lt;/glue&gt;
              &lt;outputDirectory&gt;target/generated-test-sources/cucumber&lt;/outputDirectory&gt;
              &lt;featuresDirectory&gt;src/test/resources/&lt;/featuresDirectory&gt;
              &lt;cucumberOutputDir&gt;target/cucumber-parallel&lt;/cucumberOutputDir&gt;
              &lt;format&gt;html&lt;/format&gt;
              &lt;strict&gt;true&lt;/strict&gt;
              &lt;monochrome&gt;true&lt;/monochrome&gt;
              &lt;tags&gt;"~@ignore"&lt;/tags&gt;
              &lt;filterFeaturesByTags&gt;true&lt;/filterFeaturesByTags&gt;
          &lt;/configuration&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  </code></pre>
  
  <p></p>
  
  <p>TestRunnerTest.java is shown below :</p>
  
  <pre><code>package testRunner;
  @RunWith(Cucumber.class)
  @CucumberOptions(
  //  features = "src/test/resources/1login.feature"
  //          ,  tags= {"@Login or @quickSearch"}
  //          , glue= {"stepDefinition"}
  //  , plugin = { "com.vimalselvam.cucumber.listener.ExtentCucumberFormatter:target/cucumber-reports/report.html"}, 
              monochrome = true
  
  public class TestRunnerTest {
      public static WebDriver driver;
  public static String timeStamp = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss a").format(new Date());
  public static String browserName;
      private static TestRunnerTest sharedInstance = new TestRunnerTest();
  
   private TestRunnerTest() { }
  
   public static TestRunnerTest getInstance() {
          return sharedInstance;
      }
  
   @BeforeClass
      public static void before() {   
       browserName = System.getProperty("browserName");
              if(browserName==null)
              {
                  browserName= "firefox";
              }
  
          if (browserName.equalsIgnoreCase("Chrome")) 
          {
              System.setProperty("webdriver.chrome.driver", "E:\\ChromeDriverNew\\chromedriver.exe");
              driver=new ChromeDriver(); 
          } 
          else if (browserName.equalsIgnoreCase("Firefox")) 
          {
              System.setProperty("webdriver.gecko.driver","E:\\geckoNew\\geckodriver.exe");
               driver = new FirefoxDriver();
          } 
  
          else {
              System.out.println("Error Message----&gt; "
                      + "browser name not mentioned properly");
              System.exit(0);
          }      
             driver.manage().window().maximize();
            // driver.manage().deleteAllCookies();
   driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);   
  
      }
  @AfterClass
      public static void after() {
  
  
       Runtime.getRuntime().addShutdownHook(new Thread()
          {
                public void run()
                {         
                  try {
                       Reporter.loadXMLConfig(new File("config/report.xml"));
                      Files.move(Paths.get("target/cucumber-reports"), Paths.get("target/cucumber-reports_ "+ 
                  LocalDateTime.now().format(DateTimeFormatter.ofPattern("L-d-YYYY h-m-s")) + "_" + browserName), 
                              StandardCopyOption.REPLACE_EXISTING);
                  } catch (IOException e) {
                      e.printStackTrace();
  
                  }
                }
  
  
              });
  
      if(driver!=null) 
      driver.quit();
   }
  }
  </code></pre>
  
  <p>Run this in CLI mvn test.
  Then getting the below error:</p>
  
  <pre><code>@ DemoEurasia ---
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.901 s
  [INFO] Finished at: 2018-09-27T15:11:17+05:30
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal com.github.temyers:cucumber-jvm-parallel-plugin:2
   .1.0:generateRunners (generateRunners) on project DemoEurasia: Execution generat
  eRunners of goal com.github.temyers:cucumber-jvm-parallel- 
   plugin:2.1.0:generateR
   unners failed: Parser errors:
  [ERROR] (17:3): inconsistent cell count within the table
  </code></pre>
  
  <p>I don't know where I am wrong. It would be a great help if you guys helped me. Could you please help me guys. Thanks in advance</p>