版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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.咖啡不能被增加,因?yàn)?/p>
7、牛奶為負(fù)數(shù)。addrecipe4precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffee price: 50coffee: 3milk: 1suger: -1chocolate: 1return to main menu.咖啡不能被增加,因?yàn)樘菫?1份。addrecipe5precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffee price: 50coffee: 3milk: 1suger: 1cho
8、colate: -1return to main menu.咖啡不能被增加,因?yàn)榍煽肆?1份。addrecipe6precondition: run coffeemakerenter: menu option 1, “add a recipe”name: mochaprice: 50mocha: 3milk: 1suger: 1chocolate: 0return to main menu.mocha不能被增加,因?yàn)閙ocha與coffee名字不相同,其他條件一樣。addrecipe7precondition: run coffeemakerenter: menu option 1, “ad
9、d a recipe”name: coffeeprice: 50mocha: 3milk: 1suger: 1chocolate: 0return to main menu.coffee不能被增加,因?yàn)樯厦娴拿质莄offee,下面的份數(shù)是mocha(名字不匹配)。addrecipe8precondition: run coffeemakerenter: menu option 1, “add a recipe”name: mochaprice: 50coffee: 3milk: 1suger: 1chocolate: 0return to main menu.mocha不能被增加,因?yàn)樯厦娴?/p>
10、名字是mocha,下面的份數(shù)是coffee(名字不匹配)。addrecipe9precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 0coffee: 3milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因?yàn)閮r(jià)格它的價(jià)格為零,而它的份數(shù)為3,并加牛奶、糖、巧克力各一份。addrecipe10precondition: run coffeemakerenter: menu option 1, “add a recipe
11、”name: coffeeprice: 50coffee: 3.5milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因?yàn)閏offee的份數(shù)不為整數(shù)。addrecipe11precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 0milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因?yàn)閏offee的份數(shù)為零。addrecipe12pr
12、econdition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: -3milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因?yàn)閏offee的份數(shù)為負(fù)數(shù)。addrecipe13precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 100suger: 1chocolate
13、: 1return to main menucoffee不能被增加。因?yàn)榕D碳拥锰?,超過了coffeemaker的容量。addrecipe14precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 1suger: 100chocolate: 1return to main menucoffee不能被增加。因?yàn)樘羌拥锰?,超過了coffeemaker的容量。addrecipe15precondition: run coffeemakerenter:
14、menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 1suger: 1chocolate: 100return to main menucoffee不能被增加。因?yàn)榍煽肆拥锰?,超過了coffeemaker的容量。addrecipe16precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 100suger: 100chocolate: 100return to main
15、 menucoffee不能被增加。因?yàn)榕D?、糖、巧克力加得太多,超過了coffeemaker的容量。addrecipe17precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3milk: 1suger: 1chocolate: 1haelnut sauce: 1return to main menucoffee不能被增加。因?yàn)樵黾硬藛沃獾呐淞蟞aelnut sauce。addrecipe18precondition: run coffeemakerenter
16、: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 3return to main menucoffee不能被增加。因?yàn)闆]有加牛奶、糖、巧克力中的任一種。addrecipe19precondition: run coffeemakerenter: menu option 1, “add a recipe”price: 50coffee: 3milk: 1suger: 1chocolate: 1return to main menucoffee不能被增加。因?yàn)闆]有coffee的名字,默認(rèn)的條件下不知道是那種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不能被刪除成功。因?yàn)椴藛卫餂]有mocha這種咖啡。deleterecipe3precondition: run coffeemak
18、er enter: menu option 2, delete a recipe name:coffeename:mochareturn to main menucoffee與mocha不被刪除成功。因?yàn)橐淮沃荒軇h除一種咖啡。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(優(yōu)惠) 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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024版寵物貓寄養(yǎng)及寵物陪伴與看護(hù)服務(wù)合同3篇
- 2024版二級(jí)域名移動(dòng)端應(yīng)用推廣服務(wù)合同
- 2024版?zhèn)€人出租房租賃合同模板33篇
- 2024年度廈門技術(shù)研發(fā)合作合同2篇
- 2024年度度支票質(zhì)押借款業(yè)務(wù)合同范本3篇
- 2024版按份額擔(dān)保合同范例:生物科技產(chǎn)業(yè)合作3篇
- 2024年度水果品牌推廣與銷售合同
- 2024版夜景照明工程監(jiān)理與維護(hù)合同3篇
- 2024年度淄博市戰(zhàn)略合作合同3篇
- 2024年度演藝經(jīng)紀(jì)讓與擔(dān)保合同3篇
- 女性生殖健康與疾病智慧樹知到期末考試答案章節(jié)答案2024年山東中醫(yī)藥大學(xué)
- (高清版)JGT 225-2020 預(yù)應(yīng)力混凝土用金屬波紋管
- 易制毒化學(xué)品管理?xiàng)l例培訓(xùn)試卷及答案
- 中考道德與法治考試易錯(cuò)題:專練06九年級(jí)下冊(cè)消滅易錯(cuò)專練50題【解析版】
- 第五章成本與收益理論
- 心電圖進(jìn)修匯報(bào)
- 養(yǎng)蜂技術(shù)管理規(guī)范標(biāo)準(zhǔn)
- 初中英語比較級(jí)和最高級(jí)專項(xiàng)練習(xí)題含答案
- MOOC 質(zhì)量管理學(xué)-中國(guó)計(jì)量大學(xué) 中國(guó)大學(xué)慕課答案
- 激光技術(shù)在能源、環(huán)保、農(nóng)業(yè)等領(lǐng)域的應(yīng)用
- 國(guó)有企業(yè)職工代表大會(huì)條例實(shí)施細(xì)則
評(píng)論
0/150
提交評(píng)論