CoffeMakerAcceptanceTestCase_第1页
CoffeMakerAcceptanceTestCase_第2页
CoffeMakerAcceptanceTestCase_第3页
CoffeMakerAcceptanceTestCase_第4页
CoffeMakerAcceptanceTestCase_第5页
已阅读5页,还剩27页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、coffee makerthe tests outlined below are the black box and acceptance test cases for the coffee maker example. the coffeemaker is a command line interface application that will server as the software of a coffee maker. to run the coffeemaker example, run the main class. the main class provides the c

2、ommand line interface functionality that is used for testing of the back end software. later a new class will be written that interfaces with the actual coffeemaker hardware, based on the functionality of the main class. test id descriptionexpected results actual results checkoptions1precondition: r

3、un coffeemaker enter: menu option 0, exit program exits checkoptions2precondition: run coffeemaker enter在: menu option 1, add a recipe add recipe functionalitycheckoptions3precondition: run coffeemaker enter: menu option 2, delete a recipe delete recipe functionality checkoptions4precondition: run c

4、offeemaker enter: menu option 3, edit a recipe edit recipe functionality checkoptions5precondition: run coffeemaker enter: menu option 4, add inventoryadd inventory functionality checkoptions6precondition: run coffeemaker enter: menu option 5, check inventoryinventory displays checkoptions7precondit

5、ion: run coffeemaker enter: menu option 6, make coffeemake coffee functionality addrecipe1precondition(前期条件): run coffeemaker enter: menu option 1, add a recipe name: coffeeprice: 50coffee: 3milk: 1sugar: 1chocolate: 0return to main menu. coffee successfully added.addrecipe2precondition: run coffeem

6、aker enter: menu option 1, add a recipe name: mocha price: -50return to main menu. mocha could not be added. price can not be negative. addrecipe3precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffee price: 50coffee: 3milk: -1suger: 1chocolate: 1return to main menu.咖啡不能被增加,因为

7、牛奶为负数。addrecipe4precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffee price: 50coffee: 3milk: 1suger: -1chocolate: 1return to main menu.咖啡不能被增加,因为糖为-1份。addrecipe5precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffee price: 50coffee: 3milk: 1suger: 1cho

8、colate: -1return to main menu.咖啡不能被增加,因为巧克力为-1份。addrecipe6precondition: run coffeemakerenter: menu option 1, “add a recipe”name: mochaprice: 50mocha: 3milk: 1suger: 1chocolate: 0return to main menu.mocha不能被增加,因为mocha与coffee名字不相同,其他条件一样。addrecipe7precondition: run coffeemakerenter: menu option 1, “ad

9、d a recipe”name: coffeeprice: 50mocha: 3milk: 1suger: 1chocolate: 0return to main menu.coffee不能被增加,因为上面的名字是coffee,下面的份数是mocha(名字不匹配)。addrecipe8precondition: run coffeemakerenter: menu option 1, “add a recipe”name: mochaprice: 50coffee: 3milk: 1suger: 1chocolate: 0return to main menu.mocha不能被增加,因为上面的

10、名字是mocha,下面的份数是coffee(名字不匹配)。addrecipe9precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 0coffee: 3milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因为价格它的价格为零,而它的份数为3,并加牛奶、糖、巧克力各一份。addrecipe10precondition: run coffeemakerenter: menu option 1, “add a recipe

11、”name: coffeeprice: 50coffee: 3.5milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因为coffee的份数不为整数。addrecipe11precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 0milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因为coffee的份数为零。addrecipe12pr

12、econdition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: -3milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因为coffee的份数为负数。addrecipe13precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 100suger: 1chocolate

13、: 1return to main menucoffee不能被增加。因为牛奶加得太多,超过了coffeemaker的容量。addrecipe14precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 1suger: 100chocolate: 1return to main menucoffee不能被增加。因为糖加得太多,超过了coffeemaker的容量。addrecipe15precondition: run coffeemakerenter:

14、menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 1suger: 1chocolate: 100return to main menucoffee不能被增加。因为巧克力加得太多,超过了coffeemaker的容量。addrecipe16precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 100suger: 100chocolate: 100return to main

15、 menucoffee不能被增加。因为牛奶、糖、巧克力加得太多,超过了coffeemaker的容量。addrecipe17precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 1suger: 1chocolate: 1haelnut sauce: 1return to main menucoffee不能被增加。因为增加菜单之外的配料haelnut sauce。addrecipe18precondition: run coffeemakerenter

16、: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3return to main menucoffee不能被增加。因为没有加牛奶、糖、巧克力中的任一种。addrecipe19precondition: run coffeemakerenter: menu option 1, “add a recipe”price: 50coffee: 3milk: 1suger: 1chocolate: 1return to main menucoffee不能被增加。因为没有coffee的名字,默认的条件下不知道是那种coffee。dele

17、terecipe1precondition: run coffeemaker enter: menu option 2, delete a recipe name:coffeereturn to main menucoffee被删除成功。deleterecipe2precondition: run coffeemaker enter: menu option 2, delete a recipe name:coffeereturn to main menumocha不能被删除成功。因为菜单里没有mocha这种咖啡。deleterecipe3precondition: run coffeemak

18、er enter: menu option 2, delete a recipe name:coffeename:mochareturn to main menucoffee与mocha不被删除成功。因为一次只能删除一种咖啡。editrecipe1precondition: run coffeemaker enter: menu option 3, edit a recipe name: coffeeprice: 50coffee: 3milk: 1sugar: 1chocolate: 0haelnut sauce: 1return to main menu.在recipe中增加配料haeln

19、ut sauce的选择。editrecipe2precondition: run coffeemaker enter: menu option 3, edit a recipe name: coffeepreferential(优惠) price: 50*90%=45coffee: 3milk: 1sugar: 1chocolate: 0return to main menu.在recipe中如果大于三份的话打九折取整。editrecipe3precondition: run coffeemaker enter: menu option 3, edit a recipe name: coffeeprice: 50coffee: 3milk1: 1milk2:1milk3:1.sugar: 1chocolate: 0return to main menu.在recipe中增加配料milk的种类。editrecipe4precondition: ru

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论