Ada*_*Dev 13 cucumber specflow gherkin
是否可以在Specflow中跨多个场景轮廓共享一组通用示例,而无需复制每个轮廓的示例集?
例如,请原谅这个例子,但是这里Examples重复一遍Scenario Outline,我想知道是否有可能宣布Examples一次,并为每一个使用它们Scenario Outline?
Feature: Just an example about animals
Scenario Outline:
Given an <animal>
When something happens
Then this should be the outcome
Examples:
| animal |
| Dog |
| Cat |
Scenario Outline:
Given an <animal>
When something different happens
Then this other thing should be the outcome
Examples:
| animal |
| Dog |
| Cat |
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1748 次 |
| 最近记录: |