2014-02-24 87 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

一個功能不完全的一個故事。但是一個功能介於史詩和用戶故事之間,能夠對故事進行分類。故事描述功能性特徵描述了一個系統的一個膠囊屬性。功能更短。這取決於要求工程的過程如何完成。類似於故事,如果從不同的環境中看到一個特徵,那麼特徵可能是不完整的,因此情景涵蓋了被告知的和未知的,還沒有看到,允許我們將它包括在需求中。