Specflow custom tool error when adding “Examples:”

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:

Feature: Homepage
    As a webiste user
    I want to see a pretty homepage

Scenario Outline: Homepage Display
    Given I am on an ecommerce <website>
    When I look at the content
    Then I should see a swiper

Examples: 
| Description | website             |
| Local       | localhost:9000      |
| Development | dev.mysite.com      |

The GitHub Cucumber page has a good explanation of Scenario Outlines:
https://github.com/cucumber/cucumber/wiki/Scenario-outlines

Leave a Comment