CoffeMaker-Acceptance_Test_Case

上传人:QQ15****706 文档编号:107209017 上传时间:2019-10-18 格式:DOC 页数:31 大小:97KB
返回 下载 相关 举报
CoffeMaker-Acceptance_Test_Case_第1页
第1页 / 共31页
CoffeMaker-Acceptance_Test_Case_第2页
第2页 / 共31页
CoffeMaker-Acceptance_Test_Case_第3页
第3页 / 共31页
CoffeMaker-Acceptance_Test_Case_第4页
第4页 / 共31页
CoffeMaker-Acceptance_Test_Case_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《CoffeMaker-Acceptance_Test_Case》由会员分享,可在线阅读,更多相关《CoffeMaker-Acceptance_Test_Case(31页珍藏版)》请在金锄头文库上搜索。

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 menuCoffee不能被增加。因为牛奶、糖、巧克力加得太多,超过了CoffeeMaker的容量。addRecipe17Precondition: Run CoffeeMakerEnter: Menu option 1, “Add a recipe”Name: CoffeePrice: 50Coffee: 3Milk: 1Suger: 1Chocolate: 1Haeln

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 总结/报告

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号