【发布时间】:2019-04-09 16:00:18
【问题描述】:
Scenrio outline 是否可以在没有 Examples 的情况下工作,并且每个工具中都只有一个表格,或者 Intellij 是特殊的?
我阅读了 Gherkin 参考,它指定了一个 Scenario outline must have an Examples 在它下面。
https://docs.cucumber.io/gherkin/reference/
但是当我使用Scenario Outline 运行我的测试时,它可以在任何地方没有Examples 部分的情况下正常工作。这里:
Scenario Outline: Sequence of customer update for something
Given we create a Customer
When we update the customer with a state "<name>"
Then the response status code is 200
And we close the response
| name|
| Bob|
| Adam|
| Rachel|
它是如何工作的?
【问题讨论】:
标签: java intellij-idea cucumber integration-testing gherkin