gpt4 book ai didi

cucumber - 在 Specflow 中的多个场景大纲中共享一组通用示例

转载 作者:行者123 更新时间:2023-12-02 16:27:38 25 4
gpt4 key购买 nike

是否可以在 Specflow 中的多个场景大纲中共享一组通用示例,而无需为每个大纲重复一组示例?

例如请原谅这个 noddy 示例,但是这里的 Examples 对于每个 Scenario Outline 都是重复的,我想知道是否可以声明这些 Examples 一次并且将它们用于每个场景大纲

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 |

最佳答案

看来这在 SpecFlow 中实际上是不可能的。

关于cucumber - 在 Specflow 中的多个场景大纲中共享一组通用示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8120779/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com