I created the below scenario in a cucumber feature file and when I executed the scenario then I got gherkin.parser.ParseError
Scenario : The user should be able to login for correct credentials
Given I am at the Home page
And I click login link
Then I enter <username> as the username
And I enter <password> as the password
When I hit login button for a "success"
Then I see the account page
Examples:
| username | password |
| "testUser" | "testPwd" |
When we have to pass values from the examples section then we have to use the keyword "Scenario Outline" instead of "Scenario". Incase there is only one value and it is passed in steps only then we have to use the keyword "Scenario".
0 Comment(s)