Scenario Outline: list of data in data table
Given I have <numbers>
When I sum its
Then I should see <result>
Examples:
| numbers | result |
| 1 2 | 3 |
| 1 2 3 | 6 |
| 1 2 3 4 | 10 |
Scenario: list of data in a step
Given I have numbers: 1, 2, 3
When I sum its
Then I should see 6
请注意,我在第一个示例中使用空格来添加数字,而在第二个示例中我使用逗号 (,)。