gpt4 book ai didi

bdd - 用户故事应该以 Gherkin 格式编写吗?

转载 作者:行者123 更新时间:2023-12-01 09:28:44 27 4
gpt4 key购买 nike

我们按照规定的标准编写用户故事作为 X 我想要 Y 以便 Z。现在随着用于指定需求的 BDD 和 Gerkhin 语言格式的流行,是否有人有将用户故事转换为 Gerkhin 格式的经验。您是否发现以这种格式从业务中获取需求更容易、更直观,您是否体验过这样做的好处?

最佳答案

您仍然在 Gherkin 中以 As an X I want a Y so that Z 开始每个功能。然而,这通常被扭转,因此它的好处是它最突出的方面,例如来自 https://github.com/cucumber/cucumber/wiki/Gherkin

Feature: Some terse yet descriptive text of what is desired
In order to realize a named business value /*Z*/
As an explicit system actor /*X*/
I want to gain some beneficial outcome which furthers the goal /*Y*/

完成此部分后,Gherkin 功能的其余部分将是更易识别的 Given When Then 部分,但这些只是突出您的功能功能的示例。它们与您的功能定义一起存在,而不是代替它。

更多详情请阅读http://dannorth.net/introducing-bdd/

关于bdd - 用户故事应该以 Gherkin 格式编写吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18815710/

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