Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • gherkin.parser.ParseError in cucumber feature file.

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.81k
    Comment on it

     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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: