2014-02-24 86 views
0

我刚刚开始在一个新项目中使用Cucumber和BDD/ATDP(验收测试驱动规划),我不是100%确定组成故事的是什么,我最终将用作我的短跑故事?我猜这应该是这种情况,但如果我是对的,不是100%确定的,或者是否像下面例子中的特征描述是故事那样?黄瓜场景故事在冲刺?

功能:能够复制发票记录

In order to re-use a particular invoice details 
As a user 
I want to be able to duplicate an existing invoice record 

回答

2
An user Story is a {small} functionality which can be tested and 
delivered within a timebox. Scenarios represent different ways of interacting 
with that functionality. So, an User Story may have multiple scenarios. 
Scenarios are implemented in {re-usable} steps. 

在你的情况下,各种情况可能是

Feature: Invoice duplication 
    ... 
    Scenario: Valid invoice 
    ...  
    Scenario: Non-existing invoice 
    ...  
    Scenario: Already duplicated invoice 
    ...  
    Scenario: Expired invoice 
    ... 

上述情况验证/测试用户故事/功能,即发票复制。

的Scrum指南=>https://www.scrum.org/Portals/0/Documents/Scrum%20Guides/2013/Scrum-Guide.pdf#zoom=100

+0

嗨巴拉感谢您的回应,所以这是否意味着故事是特征?在上述情况下,它将是“能够复制发票记录”,试图验证某个功能是否与冲刺中的故事相同。 –

+0

选择这个:http://stackoverflow.com/questions/1707820/what-is-the-difference-between-a-user-story-and-a-feature-in-agile-terminology – Bala

1

一个功能不完全的一个故事。但是一个功能介于史诗和用户故事之间,能够对故事进行分类。故事描述功能性特征描述了一个系统的一个胶囊属性。功能更短。这取决于要求工程的过程如何完成。类似于故事,如果从不同的环境中看到一个特征,那么特征可能是不完整的,因此情景涵盖了被告知的和未知的,还没有看到,允许我们将它包括在需求中。