版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Topic:SoftwareTestingTechniques(6)INSTRUCTOR:SHULIUHITSCHOOLOFSOFTWARE2017Allrightsreserved1哈工大软件学院刘曙SoftwareTestingTechniquesNon-Execution-BasedTestingWalkthroughInspectionPeerReviews/BuddyChecksExecution-BasedTestingBlack-Box,White-Box,andGray-BoxTestingBasisPathTestingBottom-Up,Top-Down,andSandwichTestingEquivalencePartitioningandBoundaryValueTestingPositiveandNegativeTestingRangeTesting,RegressionTesting,andRandomTestingSoftwareTestingTechniques2哈工大软件学院刘曙SoftwareTestingTechniquesSoftwareTestingTechniquesWhydowetest?Towmainreasons:●
Tomakeajudgmentaboutqualityoracceptability
●
Todiscoverproblems3哈工大软件学院刘曙SoftwareTestingTechniquesDuringtherequirementsphase,therequirementsmustbechecked;Duringthespecificationphase,thespecificationsmustbechecked;
Andthesoftwareproductionmanagementplanmustundergosimilarscrutiny(详细审查).Thedesignphaserequirescarefulcheckingateverystage.Duringthecodingphase,eachmodulecertainlymustbetested,andtheproductasawholeneedstestingattheintegrationphase.Afterpassingtheacceptancetest,theproductisinstalledandthemaintenancephasebegins.
…SoftwareTestingTechniquesWhendowetest?4哈工大软件学院刘曙SoftwareTestingTechniquesTestingisanintegralcomponentofthesoftwareprocessacriticalelementofsoftwarequalityassuranceanactivitythatmustbecarriedoutthroughoutthesoftwaredevelopmentlifecycleTwoTypesofTesting:Non-execution-basedtesting(e.g.,review)Execution-basedtesting(e.g.,runtestsagainsttestcases)SoftwareTestingTechniques5哈工大软件学院刘曙Why?Non-Execution-BasedTestingSoftwareTestingTechniquesLimitationswithExecution-BasedTesting:Bythetimetestingoccurs,itistoolatetobuildqualityintotheproduct.Testsareonlyasgoodasthetestcases,notalldefectsarediscoveredduringtesting.Inrealityitisimpossibletotestallsoftware,andexhaustivetestingcodeisimpractical.Isitpossibletoexecuteawrittenspecificationdocument?Theonlyalternativesaretoreviewitascarefullyaspossible.
6哈工大软件学院刘曙CostofQualitySoftwareTestingTechniquesTherequirementstageisoftenwheremorethan50%ofthedefectsareactuallyintroduced.7哈工大软件学院刘曙SoftwareTestingTechniquesTechniqueReview(Verification)AmIbuildingtheproductright?8哈工大软件学院刘曙ThespectrumofREVIEWrangesfromveryinformalpeerreviewstoextremelyformalandstructuredinspections.InspectionsWalkthroughsPeerReviewsorBuddyChecksSoftwareTestingTechniquesTechniqueReview(Verification)9哈工大软件学院刘曙Thecomplexityofareviewisusuallycorrelatedtothecomplexityoftheproject.Asthecomplexityofaprojectincreases,theneedformoreformalreviewsincreases.
Thecentral“event”inreviewis
“meeting”(“开会”)SoftwareTestingTechniquesTechniqueReview(Verification)10哈工大软件学院刘曙Inspections
(检查)
(1)Inspectionsaregenerallyconsideredthemostformaltypeofreview.Itisaformallydefinedprocessforverificationofthesoftwareproductthroughoutitsdevelopment.Oneofthemajordecisionswithinaninspectioniswhetherasoftwaredeliverableiseligibletoproceedtothenextdevelopmentphase.SoftwareTestingTechniques11哈工大软件学院刘曙Inspections
(检查)
(2)Theinspectionshouldbeconductedbyateamof3-6people.
Forexample,inthecaseofadesigninspection,theteamwillconsistof
Moderator:isbothmanagerandleaderoftheinspectionteamDesigner:representativefromcurrentphaseImplementer:representativefromnextphaseRequirementanalyst:representationfrompreviousphaseTester:anyoneresponsibleforsettinguptestcases(Ofcause,preferablethatthetestershouldbeamemberoftheSQAgroup.)SoftwareTestingTechniques12哈工大软件学院刘曙Inspections
(检查)
(3)SoftwareTestingTechniquesInspectionDocumenttobeinspectedRelatedsourcedocumentsGeneraland“tailored”checklistInputOutputInspectionsummaryorreportDataonerrortypes13哈工大软件学院刘曙Inspections
(检查)
(4)TherearefiveformalstepsforInspection 1. Overview 2. Preparation 3. Inspection 4. Rework 5. Follow-upSoftwareTestingTechniques14哈工大软件学院刘曙Inspections
(检查)
(5)Overview(概述) First,anoverviewofthedocumenttobeinspected(specification,design,code,orplan)isgivenbyoneoftheindividualsresponsibleforproducingthatdocument.Attheendoftheoverviewsession,thedocumentisdistributedtotheparticipants.SoftwareTestingTechniquesOverviewPreparationInspectionReworkFollowUp15哈工大软件学院刘曙Inspections
(检查)
(6)Preparation(准备)Inthesecondstep,theparticipantstrytounderstandthedocumentindetail.Checklists/Listsoffaulttypesfoundinrecentinspections,withthefaulttypesrankedbyfrequency,areexcellentaids.Thesechecklistshelpteammembersconcentrateontheareaswherethemostfaultshaveoccurred.SoftwareTestingTechniquesOverviewPreparationInspectionReworkFollowUp16哈工大软件学院刘曙Inspections
(检查)
(7)Inspection(检查)Oneparticipantwalksthroughthedocumentwiththeinspectionteam,ensuringthateveryitemiscoveredandthateverybranchistakenatleastonce.Aswithwalkthrough,thepurposeistofindanddocumentthefaults,nottocorrectthem.Thepresenterinaninspectionmeetingisideallynottheproducerorauthorofthedocumentbeinginspected.SoftwareTestingTechniquesOverviewPreparationInspectionReworkFollowUp17哈工大软件学院刘曙Inspections
(检查)
(8)Rework(返工)Withinonedaytheleaderoftheinspectionteam(themoderator)mustproduceawrittenreportoftheinspectiontoensuremeticulousfollow-through.Inthisstep,theindividualresponsibleforthatdocumentresolvesallfaultsandproblemsnotedinthewrittenreport.SoftwareTestingTechniquesOverviewPreparationInspectionReworkFollowUp18哈工大软件学院刘曙Inspections
(检查)
(9)Follow-upThemoderatormustensurethateverysingleissueraisedhasbeenrecoveredsatisfactorily,byeitherfixingthedocumentorclarifyingitemsincorrectlyflaggedasfaults.Allfixesmustbecheckedtoensurethatnonewfaultshavebeenintroduced.SoftwareTestingTechniquesOverviewPreparationInspectionReworkFollowUp19哈工大软件学院刘曙Inspections(检查)(9)Aessentialcomponentofaninspectionisthechecklist
ofpotentialfaults.Animportantcomponentoftheinspectionistherecordoffaultstatistics.Thedataindicatethatinspectionsareapowerfulandcost-effectivetoolforfaultdetection.SoftwareTestingTechniques20哈工大软件学院刘曙Walkthrough(1)Walkthroughscanbeveryinformalorrelativelyformal(likestructuredwalkthrough),buttheyarelessformalthaninspections.A‘informalwalkthrough’canbeanveryinformalmeetingforevaluationorinformationalpurpose.Littleornopreparationisusuallyrequired.Walkthroughcanbeusedtoreviewmanysystemsdevelopmentdeliverables,includinglogicalandphysicaldesignspecifications,testplans,testcasesaswellascode.SoftwareTestingTechniques21哈工大软件学院刘曙Walkthrough
(2)Thewalkthroughshouldbeconductedbyateamof2-7people.
Forexample,arequirementspecificationwalkthroughteamshouldinclude:Atleastonerepresentativefromtheteamresponsiblefordrawingupthespecification–Requirementanalyst
Themanagerresponsibleforthespecification.AclientrepresentativeArepresentativeoftheteamthatwillperformthenextphaseofthedevelopment--DesignerArepresentativeofthesoftwarequalityassurancegroup--QASoftwareTestingTechniques22哈工大软件学院刘曙Walkthrough(3)Themembersofthewalkthroughteam,asfaraspossible,shouldbeexperiencedseniortechnicalstaffmembersbecausetheytendtofindtheimportantfaults.ThewalkthroughshouldbechairedbytheSQArepresentativebecausetheSQArepresentativehasthemosttoloseifthewalkthroughisperformedpoorlyandfaultsconsequentlyslipthrough.Nowalkthroughshouldlastlongerthan2hours.SoftwareTestingTechniques23哈工大软件学院刘曙Walkthrough
(4)SoftwareTestingTechniquesWalkthroughElementunderexaminationObjectiveforthewalkthroughApplicablestandardsInputReportOutput24哈工大软件学院刘曙Walkthrough(5)TherearetwostepsforwalkthroughPreparationWalkthroughThematerialforthewalkthroughmustbedistributedtotheparticipantswellinadvancetoallowforcarefulpreparation.Eachreviewershouldstudythematerialanddeveloptwolists:AlistofitemsthereviewerdoesnotunderstandAlistofitemsthereviewerbelievesareincorrectSoftwareTestingTechniques25哈工大软件学院刘曙Walkthrough(6)Therearetwowaysofconductingawalkthrough:Participant-drivenDocument-drivenParticipant-drivenParticipantspresenttheirlistsofunclearitemsanditemstheythinkareincorrect.Therepresentativeofthespecificationsteammustrespondtoeachquery,clarifyingwhatisuncleartothereviewerandeitheragreeingthatindeedthereisafaultorexplainingwhythereviewerismistaken.SoftwareTestingTechniques26哈工大软件学院刘曙Walkthrough(7)Document-drivenThepersonresponsibleforthedocumentwalkstheparticipantsthroughthatdocument,withthereviewersinterruptingeitherwiththeirpreparedcommentsorcommentstriggeredbythepresentation.Document-drivengenerallyleadstothedetectionofmorefaultsbecausethemajorityoffaultsatadocument-drivenwalkthrougharespontaneouslydetectedbythepresenter.SoftwareTestingTechniques27哈工大软件学院刘曙Walkthrough(8)Advantage:Advancedpreparationofthereviewersisnot necessarilyrequired.Itispossibletobedonefrequently.Structuredwalkthroughsareaveryeffectivemethodofdetectingerrorsincode.Disadvantage:Itmayleadtodisorganizedanduncontrolledreviews.Itmayalsobestressfulifthedeveloperis conductingthewalkthrough.SoftwareTestingTechniques28哈工大软件学院刘曙GuidelinesforConductingaCodeWalkthrough(Example)1.Havethereviewmeetingchairedbytheprojectmanagerorchiefprogrammer,whoisalsoresponsibleforschedulingthemeeting,reservingaroom,settingtheagenda,invitingparticipants,andsoon.2.Theprogrammerpresentshisorherworktothereviewers.Discussionshouldbegeneralduringthepresentation.3.Followingthegeneraldiscussion,theprogrammerwalksthroughthecodeindetail,focusingonthelogicofthecoderatherthanonspecifictestcases.4.Reviewersasktowalkthroughspecifictestcases.5.Thechairresolvesdisagreementsifthereviewteamcannotreachagreementamongthemselvesandassignsduties,usuallytotheprogrammer,formakingspecificchanges.6.Asecondwalkthroughisthenscheduledifneeded.SoftwareTestingTechniques29哈工大软件学院刘曙ComparisonofInspectionandWalkthroughAwalkthroughisatwo-stepprocessandaninspectionisafive-stepprocess.Theinspectionprocesstakesmuchlongerthanawalkthrough.Theinspectionteamusesachecklistofqueriestoaiditinfindingthefaults.Itgoesdeeperthanwalkthrough.Walkthroughscancovermorematerialthaninspections.Theyprovideanopportunityforlargernumbersofpeopletobecomefamiliarwiththematerial.Inspectiontypicallydealwithrelativelylowvolumesofmaterial.Occasionally,walkthroughsareusedforpurposesofcommunicationratherthanfordiscoveringdefects.SoftwareTestingTechniques30哈工大软件学院刘曙PeerRevieworBuddyChecksSometimesitisinappropriateorimpossibletogetmaterialinspectedorformallyreviewed.Anyformofhumantesting,evenundisciplinedtesting,isbetterthannone.Just
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 网线布放施工方案(3篇)
- 英语合唱活动策划方案(3篇)
- 街道新闻发布应急预案(3篇)
- 道路路基砼施工方案(3篇)
- 铁路石道床施工方案(3篇)
- 险企内部营销方案(3篇)
- 餐厅策划营销活动方案(3篇)
- 26年高性价比靶点筛选指南
- 国际贸易就业方向全解析
- 化妆品安全规范培训
- 报联商培训课件
- 民航安保业务知识培训课件
- DB37-2374-2018 锅炉大气污染物排放标准
- 广师大环境学概论课件第4章 自然资源的利用与保护
- 玉米施肥技术课件
- 护理礼仪与人际沟通说课
- 酒店业务外包服务方案投标文件(技术方案)
- GA 68-2024警用防刺服
- T/CSMT-KJ 001-2022超薄均热板性能测试方法
- 《食道癌基础知识》课件
- 航空应急生存知识考试题库(共300题含答案)
评论
0/150
提交评论