在他们的网站上:https://cucumber.io/docs/gherkin/reference/
它在关键字下列出了示例(或场景(。有区别吗?或者用一个关键词可以做的一切都可以用另一个关键词做吗?
场景是一个包含步骤的测试。Scenario Outline用于要使用表数据循环的场景,Example是该表的标题。
Scenario: Test something
Given I am logged in
And I select the "Add" tab
And I select the "New" button
Then the form is displyed
Scenario Outline: Test something else
Given I am logged in as "<user>"
And I select the "Add" tab
And I select the "<item>" button
Then the form is displyed
Examples:
| user | item |
| aaaa | Add |
| bbbb | Edit |