cucumber.runtime.CucumberException: Error parsing feature file *****.feature

mayurshah.in | 4 months ago
  1. 0

    Cucumber JVM error parsing the Background tag

    Google Groups | 18 hours ago | Vikram Upadhya
    cucumber.runtime.CucumberException: Error parsing feature file Feature/Alarm.feature
  2. 0

    GitHub comment 18#122235478

    GitHub | 1 year ago | palerique
    gherkin.parser.ParseError: Parse error at search_by_keyword.feature:22. > Found examples when expecting one of: background, comment, scenario, > scenario_outline, tag. (Current getState: feature).
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 18#122237385

    GitHub | 1 year ago | wakaleo
    gherkin.parser.ParseError: Parse error at search_by_keyword.feature:22. > > Found examples when expecting one of: background, comment, scenario, > > scenario_outline, tag. (Current getState: feature).
  5. 0

    Exception when using the Portuguese language

    GitHub | 1 year ago | palerique
    gherkin.parser.ParseError: Parse error at search_by_keyword.feature:22. Found examples when expecting one of: background, comment, scenario, scenario_outline, tag. (Current getState: feature).

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. gherkin.parser.ParseError

      Parse error at ******.feature:1. Found scenario when expecting one of: comment, feature, tag. (Current getState: root).

      at gherkin.parser.Parser$Machine.event()
    2. Gherkin
      Parser.parse
      1. gherkin.parser.Parser$Machine.event(Parser.java:207)
      2. gherkin.parser.Parser.event(Parser.java:159)
      3. gherkin.parser.Parser.scenario(Parser.java:110)
      4. gherkin.lexer.En.scan(En.java:762)
      5. gherkin.lexer.I18nLexer.scan(I18nLexer.java:36)
      6. gherkin.parser.Parser.parse(Parser.java:62)
      6 frames
    3. Cucumber-JVM: Core
      RuntimeOptions.cucumberFeatures
      1. cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:131)
      2. cucumber.runtime.model.CucumberFeature.loadFromFeaturePath(CucumberFeature.java:104)
      3. cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:54)
      4. cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:34)
      5. cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:235)
      5 frames
    4. Cucumber-JVM: JUnit
      Cucumber.<init>
      1. cucumber.api.junit.Cucumber.<init>(Cucumber.java:60)
      1 frame
    5. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      4 frames
    6. JUnit
      ClassRequest.getRunner
      1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
      2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
      3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
      5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
      6 frames
    7. JUnit4 Runner
      JUnit4TestLoader.loadTests
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
      2. org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
      3. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
      4. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
      4 frames
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      4 frames