版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
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、牛奶為負(fù)數(shù)。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,下面的份數(shù)是mocha(名字不匹配)。addrecipe8precondition: run coffeemakerenter: menu option 1, “add a recipe”name: mochaprice: 50coffee: 3milk: 1suger: 1chocolate: 0return to main menu.mocha不能被增加,因為上面的
10、名字是mocha,下面的份數(shù)是coffee(名字不匹配)。addrecipe9precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 0coffee: 3milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因為價格它的價格為零,而它的份數(shù)為3,并加牛奶、糖、巧克力各一份。addrecipe10precondition: run coffeemakerenter: menu option 1, “add a recipe
11、”name: coffeeprice: 50coffee: 3.5milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因為coffee的份數(shù)不為整數(shù)。addrecipe11precondition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: 0milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因為coffee的份數(shù)為零。addrecipe12pr
12、econdition: run coffeemakerenter: menu option 1, “add a recipe”name: coffeeprice: 50coffee: -3milk: 1suger: 1chocolate: 1return to main menu.coffee不能被增加。因為coffee的份數(shù)為負(fù)數(shù)。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的名字,默認(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不能被刪除成功。因為菜單里沒有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(優(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等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025湖南省安全員知識題庫
- 《醫(yī)院人力資源管理》課件
- 【大學(xué)課件】對國際貿(mào)易中文化差異的思考
- 小學(xué)硬筆書法教學(xué)課件
- 《鍛鍊正確判斷力》課件
- 公用事業(yè)行業(yè)十二月行業(yè)動態(tài)報告:多地25年電力交易結(jié)果發(fā)布電價靴子落地
- 單位管理制度展示選集【人力資源管理篇】十篇
- 某河灘地人工濕地工程建設(shè)項目環(huán)境評估報告書
- REITs月報:REITs二級市場震蕩上行常態(tài)化發(fā)行進(jìn)一步加速
- 單位管理制度收錄大全【人事管理篇】十篇
- 最敬業(yè)員工無記名投票選舉表
- 建設(shè)工程質(zhì)量檢測作業(yè)指導(dǎo)書+儀器設(shè)備操作規(guī)程2021版
- GA 1807-2022核技術(shù)利用單位反恐怖防范要求
- 梅毒診療指南(2014版)
- GA 172-2014金屬手銬
- 醫(yī)學(xué)醫(yī)學(xué)文獻(xiàn)檢索與論文寫作培訓(xùn)課件
- 北師大版小學(xué)三年級數(shù)學(xué)下冊課件(全冊)
- 工程臨時用工確認(rèn)單
- 簡約清新大氣餐飲行業(yè)企業(yè)介紹模板課件
- 氮氣窒息事故案例經(jīng)驗分享
- 某公司年度生產(chǎn)經(jīng)營計劃書
評論
0/150
提交評論