Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. Story 1: Items should be added to stock
  2.  
  3. As a store owner, new items added to the stock should be kept track of.
  4.  
  5. Scenario 1: Add items to empty stock
  6. When the stock is empty, if 3 Books are added to the stock, then the stock should contain 3 books
  7.  
  8. Scenario 2: Add items to non-empty stock
  9. When the stock has 4 boxes of cheese and 2 apples are added, then the stock should contain a total of 6 items.
  10.  
  11. --------------------------------------------------------------------------------------------------------------
  12.  
  13. Story 2: Customers buy items
  14.  
  15. When a customer buys an item, as a store owner, the sold item should be removed from stock.
  16.  
  17. Scenario 1: Selling items in stock
  18. When the stock has 5 guitars, and someone buys 2, then the stock should have 3 guitars.
  19.  
  20. Scenario 2: Selling items partially when not in stock
  21. When the stock has 1 guitar, and someone tries to buy 2, only one should be sold.
  22.  
  23. ---------------------------------------------------------------------------------------------------------------
  24. Story 3: Returns go to stock
  25.  
  26. In order to keep track of stock
  27. As a store owner
  28. I want to add items back to stock when they're returned
  29.  
  30. Scenario 1: Refunded items should be returned to stock
  31. Given a customer previously bought a black sweater from me
  32. And I currently have three black sweaters left in stock
  33. When he returns the sweater for a refund
  34. Then I should have four black sweaters in stock
  35.  
  36. Scenario 2: Replaced items should be returned to stock
  37. Given that a customer buys a blue garment
  38. And I have two blue garments in stock
  39. And three black garments in stock.
  40. When he returns the garment for a replacement in black,
  41. Then I should have three blue garments in stock
  42. And two black garments in stock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement