power_settings_new
getting this parsing error with my gherkin file

Exception in thread "main" cucumber.runtime.CucumberException: gherkin.ParserException$CompositeParserException: Parser errors:

(28:3): expected: #EOF, #TableRow, #DocStringSeparator, #StepLine, #TagLine, #ScenarioLine, #ScenarioOutlineLine, #Comment, #Empty, got 'Examples:'

(32:3): inconsistent cell count within the table

at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:60)

at cucumber.runtime.model.CucumberFeature.loadFromFeaturePath(CucumberFeature.java:113)

at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:49)

at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:31)

at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:311)

at cucumber.runtime.Runtime.run(Runtime.java:95)

at cucumber.api.cli.Main.run(Main.java:36)

at cucumber.api.cli.Main.main(Main.java:18)

Caused by: gherkin.ParserException$CompositeParserException: Parser errors:

(28:3): expected: #EOF, #TableRow, #DocStringSeparator, #StepLine, #TagLine, #ScenarioLine, #ScenarioOutlineLine, #Comment, #Empty, got 'Examples:'

(32:3): inconsistent cell count within the table

at gherkin.Parser.parse(Parser.java:143)

at gherkin.Parser.parse(Parser.java:118)

at gherkin.Parser.parse(Parser.java:114)

at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:56)

... 7 more

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

2 Answers

by (1.1k points)
0 votes
It looks like you have some additional spaces or also, try to check that the formate of your feature file is right.
by
0 votes

Examples can only be used with Scenario Outlines. Scenario Outlines are ways to run a scenario with different data sets.

If you change Scenario to Scenario Outline your example will work:

add
...