Scenario outline

In order to not have to type the same scenario over and over
As a SpecFlow evangelist
I want to show how to use ScenarioOutline

  • Add two positive numbers with many examples

    • Given I enter <number 1> into the calculator
    • And I enter <number 2> into the calculator
    • When I perform add
    • Then the result should be <result># This is called Abstrakt Scenario in Swedish (!!!)

    Tags: @short_test, @small

    Examples: less than 100

    number 1 number 2 result
    10 20 30
    20 20 40
    20 30 50

    Tags: @big

    Examples: more than 100

    number 1 number 2 result
    100 20 120
    1000 20 1020
  • Add two negative numbers with many examples

    • Given I enter <number 1> into the calculator
    • And I enter <number 2> into the calculator
    • When I perform add
    • Then the result should be <result>

    Examples: less than 100

    number 1 number 2 result
    10 20 30
    20 20 40
    20 30 50

    Examples: more than 100

    number 1 number 2 result
    100 20 120
    1000 20 1020