版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、These slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill, 2009). Slides copyright 2009 by Roger Pressman.1第十四章軟件測(cè)試策略Slide Set to accompanySoftware Engineering: A Practitioners Approach, 7/e by Roger S. PressmanSlides copyright 1996, 2001, 2005, 2009 by
2、Roger S. PressmanFor non-profit educational use onlyMay be reproduced ONLY for student use at the university level when used in conjunction with Software Engineering: A Practitioners Approach, 7/e. Any other reproduction or use is prohibited without the express written permission of the author.All c
3、opyright information MUST appear if these slides are posted on a website for student use.These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 2軟件測(cè)試測(cè)試是在程序發(fā)布給最終用戶之前,執(zhí)行程序以發(fā)現(xiàn)錯(cuò)
4、誤的過(guò)程。 .These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 3測(cè)試展示了錯(cuò)誤需求一致性性能質(zhì)量These slides are designed to aThese slides are designed to accompany Software Engineering: A P
5、ractitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 4測(cè)試的策略性方法為完成有效的測(cè)試,軟件團(tuán)隊(duì)?wèi)?yīng)該進(jìn)行有效的、正式的技術(shù)評(píng)審。通過(guò)評(píng)審,許多錯(cuò)誤可以在測(cè)試開(kāi)始之前排除。測(cè)試開(kāi)始于構(gòu)件層,然后向外“延伸”到整個(gè)基于計(jì)算機(jī)系統(tǒng)的集成。 不同的測(cè)試技術(shù)適用于不同的時(shí)間點(diǎn)。測(cè)試由軟件開(kāi)發(fā)人員和(對(duì)大型項(xiàng)目而言)獨(dú)立的測(cè)試組執(zhí)行。測(cè)試和調(diào)試是不同的活動(dòng),但任何測(cè)試策略中都必須包括調(diào)試。These slides are designed to aThese slides are d
6、esigned to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 5驗(yàn)證與確認(rèn)(V & V)驗(yàn)證是指確保軟件正確地實(shí)現(xiàn)某一特定功能的一系列活動(dòng)。確認(rèn)則指的是確保開(kāi)發(fā)的軟件可追溯到用戶需求的另外一系列活動(dòng)。BOE81用另一種方式說(shuō)明了這兩者的區(qū)別:驗(yàn)證:我們?cè)谡_地構(gòu)造產(chǎn)品嗎?確認(rèn):我們?cè)跇?gòu)造正確的產(chǎn)品嗎?These slides are designed to aThese slides are
7、 designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 6由誰(shuí)來(lái)測(cè)試軟件?開(kāi)發(fā)者獨(dú)立的測(cè)試人員Understands the system but, will test gentlyand, is driven by deliveryMust learn about the system,but, will attempt to break itand, is driven by
8、qualityThese slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 7測(cè)試策略系統(tǒng)工程分析模型設(shè)計(jì)模型編碼單元測(cè)試集成測(cè)試確認(rèn)測(cè)試系統(tǒng)測(cè)試These slides are designed to aThese slides are designed to accompany Softwar
9、e Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 8測(cè)試策略測(cè)試從“小規(guī)?!遍_(kāi)始,進(jìn)展到“大規(guī)?!薄鹘y(tǒng)軟件測(cè)試關(guān)注測(cè)試單個(gè)構(gòu)件或相關(guān)的一小組構(gòu)件構(gòu)件集成測(cè)試面向?qū)ο筌浖臏y(cè)試測(cè)試目標(biāo)就是在現(xiàn)實(shí)的時(shí)間范圍內(nèi)利用可控的工作量盡可能多地找到錯(cuò)誤。對(duì)于面向?qū)ο筌浖M管這個(gè)基本目標(biāo)是不變的,但面向?qū)ο筌浖谋举|(zhì)特征改變了測(cè)試策略和測(cè)試戰(zhàn)術(shù)。These slides are designed to aThese slides are desi
10、gned to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 9Strategic Issues早在開(kāi)始測(cè)試之前,就要以量化的方式規(guī)定產(chǎn)品需求。明確地陳述測(cè)試目標(biāo)了解軟件的用戶并為每類用戶建立用戶輪廓。建立強(qiáng)調(diào)”快速周期測(cè)試“的測(cè)試計(jì)劃。建立能夠測(cè)試自身的“健壯”軟件測(cè)試之前,利用有效的正式技術(shù)評(píng)審作為過(guò)濾器。實(shí)施正式技術(shù)評(píng)審以評(píng)估測(cè)試策略和測(cè)試用例本身。為測(cè)試過(guò)程建立一種持續(xù)的改進(jìn)方法。Thes
11、e slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 10單元測(cè)試測(cè)試模塊測(cè)試用例結(jié)果軟件工程師These slides are designed to aThese slides are designed to accompany Software Engineering: A Practiti
12、oners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 11單元測(cè)試接口局部數(shù)據(jù)結(jié)構(gòu)邊界條件獨(dú)立路徑錯(cuò)誤處理路徑測(cè)試模塊測(cè)試用例These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 1
13、2單元測(cè)試環(huán)境被測(cè)模塊樁模塊樁模塊驅(qū)動(dòng)程序結(jié)果接口局部數(shù)據(jù)結(jié)構(gòu)邊界條件獨(dú)立路徑錯(cuò)誤處理路徑測(cè)試用例These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 13集成測(cè)試策略O(shè)ptions:the “big bang” approachan incremental construction st
14、rategyThese slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 14自頂向下集成top module is tested with stubsstubs are replaced one at a time, depth firstas new modules are integrate
15、d, some subset of tests is re-runABCDEFGThese slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 15自底向上集成drivers are replaced one at a time, depth firstworker modules are grou
16、ped into builds and integratedABCDEFGclusterThese slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 16混合方式測(cè)試Top modules aretested with stubsWorker modules are grouped into bu
17、ilds and integratedABCDEFGclusterThese slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 17回歸測(cè)試回歸測(cè)試是重新執(zhí)行已進(jìn)行測(cè)試的某個(gè)子集,以確保變更沒(méi)有傳播不期望的副作用。軟件發(fā)生變更時(shí),軟件配置的某些方面(程序、文檔或支持?jǐn)?shù)據(jù))也發(fā)生變更?;貧w測(cè)試有助于
18、保證變更(由于測(cè)試或其他原因)不引入無(wú)意識(shí)行為或額外的錯(cuò)誤?;貧w測(cè)試可以手工進(jìn)行,方法是重新執(zhí)行所有測(cè)試用例的子集,或者利用捕捉、回放工具自動(dòng)進(jìn)行。These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 18Smoke TestingA common approach for creatin
19、g “daily builds” for product softwareSmoke testing steps:Software components that have been translated into code are integrated into a “build.” A build includes all data files, libraries, reusable modules, and engineered components that are required to implement one or more product functions.A serie
20、s of tests is designed to expose errors that will keep the build from properly performing its function. The intent should be to uncover “show stopper” errors that have the highest likelihood of throwing the software project behind schedule.The build is integrated with other builds and the entire pro
21、duct (in its current form) is smoke tested daily. The integration approach may be top down or bottom up.These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 19冒煙測(cè)試一種常用的集成測(cè)
22、試方法本質(zhì)上冒煙測(cè)試方法包括下列活動(dòng):將已經(jīng)轉(zhuǎn)換為代碼的軟件構(gòu)件集成到構(gòu)建中。設(shè)計(jì)一系列測(cè)試以暴露影響構(gòu)建正確完成其功能的錯(cuò)誤。每天將該構(gòu)建與其他構(gòu)建及整個(gè)軟件產(chǎn)品集成起來(lái)進(jìn)行冒煙測(cè)試。These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 20面向?qū)ο筌浖臏y(cè)試測(cè)試策略基于線程的測(cè)試,集成
23、響應(yīng)系統(tǒng)的一個(gè)輸入或事件所需的一組類。每個(gè)線程單獨(dú)地集成和測(cè)試。應(yīng)用回歸測(cè)試以確保沒(méi)有副效應(yīng)產(chǎn)生。基于使用的測(cè)試,通過(guò)測(cè)試很少使用服務(wù)類(如果有的話)的那些類(稱之為獨(dú)立類)開(kāi)始構(gòu)造系統(tǒng),面向?qū)ο筌浖念悳y(cè)試等同于傳統(tǒng)軟件的單元測(cè)試。不同的是傳統(tǒng)軟件的單元測(cè)試側(cè)重于模塊的算法細(xì)節(jié)和穿過(guò)模塊接口的數(shù)據(jù),面向?qū)ο筌浖念悳y(cè)試是由封裝在該類中的操作和類的狀態(tài)行為驅(qū)動(dòng)的。These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach,
24、7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 21Broadening the View of “Testing”It can be argued that the review of OO analysis and design models is especially useful because the same semantic constructs (e.g., classes, attributes, operations, messages) appear at the analysis, des
25、ign, and code level. Therefore, a problem in the definition of class attributes that is uncovered during analysis will circumvent side effects that might occur if the problem were not discovered until design or code (or even the next iteration of analysis). These slides are designed to aThese slides
26、 are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 22Testing the CRC Model1. Revisit the CRC model and the object-relationship model.2. Inspect the description of each CRC index card to determine if a delegated
27、responsibility is part of the collaborators definition.3. Invert the connection to ensure that each collaborator that is asked for service is receiving requests from a reasonable source.4. Using the inverted connections examined in step 3, determine whether other classes might be required or whether
28、 responsibilities are properly grouped among the classes.5. Determine whether widely requested responsibilities might be combined into a single responsibility.6. Steps 1 to 5 are applied iteratively to each class and through each evolution of the analysis model.These slides are designed to aThese sl
29、ides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 23高階測(cè)試確認(rèn)測(cè)試關(guān)注軟件需求系統(tǒng)測(cè)試關(guān)注系統(tǒng)集成Alpha/Beta 測(cè)試關(guān)注用戶使用恢復(fù)測(cè)試通過(guò)各種方式強(qiáng)制地讓系統(tǒng)發(fā)生故障,并驗(yàn)證其能適當(dāng)恢復(fù)安全測(cè)試驗(yàn)證建立在系統(tǒng)內(nèi)的保護(hù)機(jī)制是否能夠?qū)嶋H保護(hù)系統(tǒng)不受非法入侵壓力測(cè)試要求以非正常的數(shù)量、頻率或容量的方式執(zhí)行系統(tǒng)性能測(cè)試測(cè)試軟件在集成環(huán)境中的運(yùn)行性能The
30、se slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 24調(diào)試:診斷的過(guò)程These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Appr
31、oach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 25診斷過(guò)程These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 26調(diào)試工作確定問(wèn)題原因所花費(fèi)的時(shí)間糾正錯(cuò)誤和回歸測(cè)試需要的時(shí)間These sli
32、des are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 27問(wèn)題& 線索問(wèn)題線索癥狀與原因出現(xiàn)的地方可能相隔很遠(yuǎn);癥狀可能在另一個(gè)錯(cuò)誤被改正時(shí)(暫時(shí))消失癥狀實(shí)際上可能是由非錯(cuò)誤因素引起的;癥狀可能是由不易追蹤的人為錯(cuò)誤引起的;癥狀可能是由計(jì)時(shí)問(wèn)題而不是處理問(wèn)題引起的;癥狀可能時(shí)有時(shí)無(wú);These slides are designed to aThese slides are designed to accompany Software Engineering: A Practitioners Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 28Bugs帶來(lái)的后果damagemildannoyingdisturbingseriousextremecatastrophicinfectiousBug TypeBug Categories: function-r
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝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ù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 《100 以內(nèi)的加法和減法(二)-不進(jìn)位加》(說(shuō)課稿)-2024-2025學(xué)年二年級(jí)上冊(cè)數(shù)學(xué)人教版
- 13《人物描寫一組》第二課時(shí)《巧用多種方法寫“活”身邊人物》說(shuō)課稿-2023-2024學(xué)年五年級(jí)語(yǔ)文下冊(cè)統(tǒng)編版
- Revision Being a good guest Period 2(說(shuō)課稿)-2024-2025學(xué)年人教PEP版(2024)英語(yǔ)三年級(jí)上冊(cè)
- 2024秋九年級(jí)語(yǔ)文上冊(cè) 第五單元 18《懷疑與學(xué)問(wèn)》說(shuō)課稿 新人教版
- Unit5 What will you do this weekend?Lesson25(說(shuō)課稿)-2023-2024學(xué)年人教精通版英語(yǔ)四年級(jí)下冊(cè)
- 5 國(guó)家機(jī)構(gòu)有哪些 第三課時(shí) 《國(guó)家機(jī)關(guān)的產(chǎn)生》 說(shuō)課稿-2024-2025學(xué)年道德與法治六年級(jí)上冊(cè)統(tǒng)編版
- 《 關(guān)注新詞新語(yǔ)讓語(yǔ)言鮮活生動(dòng)》說(shuō)課稿 2024-2025學(xué)年統(tǒng)編版高中語(yǔ)文必修上冊(cè)
- 1~5的認(rèn)識(shí)和加減法《第幾》(說(shuō)課稿)-2024-2025學(xué)年一年級(jí)上冊(cè)數(shù)學(xué)人教版
- Module 9 Unit 1 It's winter.(說(shuō)課稿)-2024-2025學(xué)年外研版(一起)英語(yǔ)二年級(jí)上冊(cè)
- 1《水到哪里去了》說(shuō)課稿-2023-2024學(xué)年科學(xué)五年級(jí)下冊(cè)冀人版
- 西安經(jīng)濟(jì)技術(shù)開(kāi)發(fā)區(qū)管委會(huì)招聘筆試真題2024
- 2025屆浙江省高三歷史選考總復(fù)習(xí)模擬測(cè)試(八)歷史試題(含答案)
- 六年級(jí)2025寒假特色作業(yè)
- 2025年江蘇轄區(qū)農(nóng)村商業(yè)銀行招聘筆試參考題庫(kù)含答案解析
- 人教版六年級(jí)數(shù)學(xué)下冊(cè)完整版教案及反思
- 少兒財(cái)商教育講座課件
- (八省聯(lián)考)云南省2025年普通高校招生適應(yīng)性測(cè)試 物理試卷(含答案解析)
- 2025藥劑科工作人員工作計(jì)劃
- 春節(jié)節(jié)后安全教育培訓(xùn)
- 2025年新高考數(shù)學(xué)一輪復(fù)習(xí)第5章重難點(diǎn)突破02向量中的隱圓問(wèn)題(五大題型)(學(xué)生版+解析)
- 水土保持方案投標(biāo)文件技術(shù)部分
評(píng)論
0/150
提交評(píng)論