Sha256: 28f94961ad4ea4b1d398c17542b09720917475fd58e609cc0414d0f7bfcb8868

Contents?: true

Size: 1.86 KB

Versions: 5

Compression:

Stored size: 1.86 KB

Contents

@scenario_outlines @bvt
Feature: Scenario Outline
  As a reader of the documentation I expect that scenario outlines are documented correctly

  @first
  Scenario Outline: Three Examples
    Given that <Customer> is a valid customer
    And that the product, named '<Product>', is a valid product
    When the customer has purchased the product
    Then I expect the customer to be a member of the '<Product>' group

    Examples:
     | Customer   | Product   |
     | Customer A | Product A |
     | Customer A | Product B |
     | Customer A | Product C |

  @second
  Scenario Outline: Step contains a text block
    Given the following text:
    """
    The <noun> jumped over the <place>
    """
    When I click on an example row
 	Then I expect <noun> to be replaced by the example noun
    And I expect <place> to be replaced by the example place
    
    Examples:
     | noun  | place |
     | cow   | moon  |
     | horse | spoon |

  @third
  Scenario Outline: Step contains a table
    Given the following table:
      | name   | price   | quantity |
      | <name> | <price> | 100000   |
    When I click on an example row
 	Then I expect <name> to be replaced by the example name
    And I expect <price> to be replaced by the example price

    Examples:
     | name | price |
     | toy  | $99   |
     | game | $49   |

  @fourth
  Scenario Outline: Step contains a table; table header uses an example
    Given the following table:
      | name   | <denomination> | quantity |
      | <name> | <price>        | 100000   |
	When I click on an example row
 	Then I expect <name> to be replaced by the example name
    And I expect <price> to be replaced by the example price
    And I expect <denomination> to be replaced by the example denomination

    Examples:
     | name | price | denomination    |
     | toy  | 99    | cost in euros   |
     | game | 49    | cost in dollars |

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.7.2 example/scenario_outline.feature
cucumber-in-the-yard-1.7.1 example/scenario_outline.feature
cucumber-in-the-yard-1.7.0 example/scenario_outline.feature
cucumber-in-the-yard-1.6.4 example/scenario_outline.feature
cucumber-in-the-yard-1.6.3 example/scenario_outline.feature