版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026四川大学第一批校聘非事业编制岗位招聘8人备考题库(第二轮)及答案详解(真题汇编)
- 2026广东省中医院贵州医院招聘13人备考题库带答案详解(考试直接用)
- 2026四川内江市威远隆创实业有限公司招聘高铁辅助员1人备考题库含答案详解(模拟题)
- 2026广东广州市花都区各小学临聘教师招聘2人备考题库附答案详解(培优b卷)
- 2026广东深圳大学艺术学部李象群特聘教授团队博士后招聘1人备考题库附答案详解ab卷
- 2026宁夏固原市审计局聘请专业人员辅助审计工作6人备考题库附答案详解(预热题)
- 2026广东阳江市阳春市高校毕业生就业见习招募15人备考题库(第二期)及答案详解(网校专用)
- 2026年2月江苏省苏北人民医院招聘高层次人才27人备考题库含答案详解(模拟题)
- 2026安徽宿州职业技术学院招聘36人备考题库含答案详解(综合卷)
- 2026四川乐山市犍为县第一批就业见习岗位及招募见习人员58人备考题库(含答案详解)
- 绍兴兴欣新材料股份有限公司新增3000ta焦磷酸哌嗪、4000ta聚氨酯发泡催化剂、5000taN-β-羟乙基乙二胺、500ta无水哌嗪项目及全厂资源循环利用技改提升项目(一期)环境影响报告书
- 聚和(宜宾)新材料有限公司西部年产500吨光伏导电银浆研发及生产基地项目环评报告
- 地方关系协调管理办法
- 肿瘤科病历书写规范与要点
- 一年级《池上》课件
- MUX-2MD继电保护信号数字复接接口装置说明书
- 物流行业转型与挑战试题及答案
- 2025年机车调度员岗位培训手册考试题库
- 《分析化学》课程思政教学案例(一等奖)
- 北京市通州区2023-2024学年九年级上学期期末考试语文试卷(含答案)
- 2024年医院副主任竞聘演讲稿模版(3篇)
评论
0/150
提交评论