用户故事应该用Gerkhin格式编写吗?

Asi*_*raz 3 bdd agile user-stories specflow

我们用标准规定编写用户故事作为XI想要Y以便Z.现在随着BDD和Gerkhin语言格式的流行以指定要求,是否有人有将用户故事转换为gerkhin格式的经验.您是否发现以这种格式从业务中获取需求更容易,更直观,您是否在此过程中获得了任何好处?

AlS*_*Ski 5

您仍然可以As an X I want a Y so that Z在Gherkin中启动每个功能.然而,这通常会被扭转,因此它的好处是其最突出的方面,例如来自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*/
Run Code Online (Sandbox Code Playgroud)

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

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