【发布时间】:2010-08-18 22:44:50
【问题描述】:
您如何处理像这样具有长链的用户故事/验收测试,然后/何时混合在一起?是否最好将其拆分为单独的验收测试,其中一个测试对话框是否出现,然后第二个测试对话框显示后的行为?
Feature: Confirmation before removing products from cart
In order to avoid accidentally removing an item from my cart
As a Customer
I want a confirmation dialog to ask me if I'm sure I want to remove an item
Scenario: I want to remove an item from my cart
Given I have added item "xyz" to my cart
When I click "Remove"
Then a confirmation dialog pops up
And it asks "Are you sure you want to remove this from your cart"
When I click "Yes"
Then item "xyz" should be removed from my cart
【问题讨论】:
标签: cucumber bdd acceptance-testing user-stories