Gherkin feature file example

May 25, 2014, 8:07 p.m.

Feature: Todo

    In order to use the site
    As a user
    I want to be able to submit, view and delete to-do list items

    Scenario Outline: New item
        Given I am on the home page
        When I click on New Item
        And I fill in the item with <item>
        And I click the button Submit
        Then I should see the text <item>
        | item                         |   
        | Feed cat                   |   
        | Stop milk                 |   
        | Take over world       |