資源描述:
《software testing》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、Chapter6SoftwareTesting助教翻譯Chapter6SoftwareTesting6.1SoftwareTestingFundamentals軟體測(cè)試基礎(chǔ)6.1.1WhatisSoftwareTesting何謂軟體測(cè)試6.1.2VerificationandValidation驗(yàn)證與確認(rèn)6.1.3TheVModelV模型6.2TestingPrinciples測(cè)試原則6.3TestingTechniques測(cè)試技術(shù)6.3.1White-BoxTestingTechniques白箱測(cè)試6.3.2Black-BoxTe
2、stingTechniques黑箱測(cè)試Chapter6SoftwareTesting(cont’d)6.4SoftwareTestingStrategies軟體測(cè)試策略6.4.1UnitTesting單元測(cè)試6.4.2IntegrationTesting整合測(cè)試6.4.3SystemTesting系統(tǒng)測(cè)試6.4.4AcceptanceTesting驗(yàn)收測(cè)試6.5Object-OrientedTesting物件導(dǎo)向測(cè)試ReferencesSoftwareTestingFundamentals軟體測(cè)試基礎(chǔ)Whatissoftwaretes
3、ting?什麼是軟體測(cè)試Myers:Theprocessofexecutingaprogramwiththeintentoffindingerrors.一個(gè)為了找出錯(cuò)誤而執(zhí)行程式的程序Beizer:Theactofdesigningandexecutingtests.一個(gè)設(shè)計(jì)與執(zhí)行測(cè)試的動(dòng)作Whittaker:Theprocessofexecutingasoftwaresystemtodeterminewhetheritmatchesitsspecificationandexecutesinitsintendedenvironment一
4、個(gè)用來(lái)檢視是否符合(需求)規(guī)格並於設(shè)定的環(huán)境執(zhí)行軟體系統(tǒng)的程序IEEE:Theprocessofoperatingasystemorcomponentunderspecifiedconditions,observingorrecordingtheresults,andmakinganevaluationofsomeaspectofsystemorcomponent.於特定的條件下操作一個(gè)系統(tǒng)或元件,觀察或記錄結(jié)果,以評(píng)估系統(tǒng)或元件是否有某方面的問(wèn)題SoftwareTestingFundamentals(cont’d)Whydowetes
5、t?為何要測(cè)試Tocheckifthereareanyerrorsinapartoraproduct.檢查產(chǎn)品或某部分是否有錯(cuò)誤Togaintheconfidenceinthecorrectnessoftheproduct.增加對(duì)產(chǎn)品正確的信心程度Toensurethequalityandsatisfactionoftheproduct確保產(chǎn)品品質(zhì)與滿意度Testingvs.debugging測(cè)試vs.除錯(cuò)Testingistoshowthataprogramhasbugs測(cè)試只是證實(shí)程式有無(wú)錯(cuò)誤Debuggingistolocatea
6、ndcorrecttheerrorormisconceptionthatcausetheprogramfailures除錯(cuò)是找到錯(cuò)誤所在並改正錯(cuò)誤SoftwareTestingFundamentals(cont’d)WhoTeststheSoftware?誰(shuí)來(lái)測(cè)試軟體Developmentengineers開發(fā)人員Understandthesystem,buttest“gently”了解系統(tǒng),但客氣地測(cè)試Drivenby“delivery”以釋出為目的Onlyperformunittestsandintegrationtests一般只做
7、單元測(cè)試及整合測(cè)試Testengineers測(cè)試工程師(負(fù)責(zé)系統(tǒng)測(cè)試)Needtolearnthesystem,butattempttobreakit需要瞭解系統(tǒng),但想盡辦法破壞系統(tǒng)Drivenby“quality”以品質(zhì)為目的Definetestcases,writetestspecifications,runtests,analyzeresults設(shè)計(jì)測(cè)試案例、寫測(cè)試規(guī)格、執(zhí)行測(cè)試、分析測(cè)試Customers客戶(負(fù)責(zé)驗(yàn)收測(cè)試)Drivenby“requirements”需求為目的Determineifthesystemsatisf
8、iestheacceptancecriteria決定系統(tǒng)是否滿足驗(yàn)收標(biāo)準(zhǔn)TestCases測(cè)試案例Usuallyatestcaseincludesinputdataandexpectedresults.通常