是否可以在 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 |