Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While executing a runner file I see the console errors, but test gets passed. #2197

Closed
shivajibharpure opened this issue Aug 10, 2020 · 3 comments

Comments

@shivajibharpure
Copy link

shivajibharpure commented Aug 10, 2020

1992 [main] ERROR net.thucydides.core.model.TestOutcome - Tag provider net.thucydides.core.requirements.FileSystemRequirementsTagProvider@784c3487 failure
cucumber.runtime.CucumberException: gherkin.ParserException$CompositeParserException: Parser errors:
(21:5): expected: #EOF, #TableRow, #DocStringSeparator, #StepLine, #TagLine, #ScenarioLine, #ScenarioOutlineLine, #Comment, #Empty, got 'And user clicks on "Menu Bar" on menu to test page visibility'
.
.
.
.
. at gherkin.Parser.addError(Parser.java:152)
at gherkin.Parser.matchTokenAt_9(Parser.java:1068)
at gherkin.Parser.matchToken(Parser.java:364)
at gherkin.Parser.parse(Parser.java:137)
at gherkin.Parser.parse(Parser.java:118)
at gherkin.Parser.parse(Parser.java:114)
at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:56)
... 78 more

1 Scenarios (1 passed)
5 Steps (5 passed)
0m49.225s

Process finished with exit code 0

@wakaleo
Copy link
Member

wakaleo commented Aug 10, 2020

There’s an error in your feature file:

Parser errors:
(21:5): expected: #EOF, #TableRow, #DocStringSeparator, #StepLine, #TagLine, #ScenarioLine, #ScenarioOutlineLine, #Comment, #Empty, got 'And user clicks on "Menu Bar" on menu to test page visibility'

@shivajibharpure
Copy link
Author

Feature file is simple and clean, shown below.
Error at "got 'And user clicks on "Menu Bar" on menu to test page visibility'" doesn't contain this step in current feature file.

Feature: Demo Test Scenarios

Scenario: 1 Login test
Given the user is navigate to loginpage
And user enters username as "SuperUser" password as "SuperUserPassword" and station name as "StationName"
And user clicks on "SignInButton" on login page
And user clicks on "RLink" on common page
And user finds test data from db to be used
| dbColumn| value |
| channel | NA |

@wakaleo
Copy link
Member

wakaleo commented Aug 11, 2020

Cucumber is complaining about the feature file containing the text “And user clicks on "Menu Bar" on menu to test page visibility'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants