高级软件工程课件-软件测试.ppt_第1页
高级软件工程课件-软件测试.ppt_第2页
高级软件工程课件-软件测试.ppt_第3页
高级软件工程课件-软件测试.ppt_第4页
高级软件工程课件-软件测试.ppt_第5页
免费预览已结束,剩余43页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

TestingthePrograms,中国科学技术大学软件学院孟宁,2012年12月,Contents,8.1SoftwareFaultsandFailures8.2TestingIssues8.3UnitTesting8.4IntegrationTesting8.5TestingObjectOrientedSystems8.6TestPlanning8.7AutomatedTestingTools8.8WhentoStopTesting,Chapter8Objectives,TypesoffaultsandhowtoclasifythemThepurposeoftestingUnittestingIntegrationtestingstrategiesTestplanningWhentostoptesting,8.1SoftwareFaultsandFailuresWhyDoesSoftwareFail?,Wrongrequirement:notwhatthecustomerwantsMissingrequirementRequirementimpossibletoimplementFaultydesignFaultycodeImproperlyimplementeddesign,8.1SoftwareFaultsandFailuresObjectiveofTesting,Objectiveoftesting:discoverfaultsAtestissuccessfulonlywhenafaultisdiscoveredFaultidentificationistheprocessofdeterminingwhatfaultcausedthefailureFaultcorrectionistheprocessofmakingchangestothesystemsothatthefaultsareremoved,8.1SoftwareFaultsandFailuresTypesofFaults,AlgorithmicfaultComputationandprecisionfaultaformulasimplementationiswrongDocumentationfaultDocumentationdoesntmatchwhatprogramdoesCapacityorboundaryfaultsSystemsperformancenotacceptablewhencertainlimitsarereachedTimingorcoordinationfaultsPerformancefaultsSystemdoesnotperformatthespeedprescribedStandardandprocedurefaults,8.1SoftwareFaultsandFailuresTypicalAlgorithmicFaults,AnalgorithmicfaultoccurswhenacomponentsalgorithmorlogicdoesnotproduceproperoutputBranchingtoosoonBranchingtoolateTestingforthewrongconditionForgettingtoinitializevariableorsetloopinvariantsForgettingtotestforaparticularconditionComparingvariablesofinappropriatedatatypesSyntaxfaults,8.1SoftwareFaultsandFailuresOrthogonalDefectClassification正交缺陷分类,8.1SoftwareFaultsandFailuresSidebar8.1Hewlett-PackardsFaultClassification,8.1SoftwareFaultsandFailuresSidebar8.1FaultsforoneHewlett-PackardDivision,8.2TestingIssuesTestingOrganization,Moduletesting,componenttesting,orunittestingIntegrationtestingFunctiontestingPerformancetestingAcceptancetestingInstallationtesting,8.2TestingIssuesTestingOrganizationIllustrated,8.2TestingIssuesWhoPerformstheTest?,DeveloperVerifyTestIndependenttestteamavoidconflictimproveobjectivityallowtestingandcodingconcurrently,8.2TestingIssuesViewsoftheTestObjects,Closedboxorblackbox:functionalityofthetestobjectsClearboxorwhitebox:structureofthetestobjects,8.2TestingIssuesWhiteBox,AdvantagefreeofinternalstructuresconstraintsDisadvantagenotpossibletorunacompletetest,8.2TestingIssuesClearBox,Exampleoflogicstructure,8.2TestingIssuesFactorsAffectingtheChoiceofTestPhilosophy,ThenumberofpossiblelogicalpathsThenatureoftheinputdataTheamountofcomputationinvolvedThecomplexityofalgorithms,8.3UnitTestingCodeReview,CodewalkthroughCodeinspection,8.3UnitTestingTypicalInspectionPreparationandMeetingTimes,8.3UnitTestingFaultDiscoveryRate,8.3UnitTestingProvingCodeCorrect,Formalprooftechniques形式化证明技术Symbolicexecution符号执行Automatedtheorem-proving自动定理证明,8.3UnitTestingTestingversusProving,Proving:hypothetical假想的environmentTesting:actualoperatingenvironment,8.3UnitTestingStepsinChoosingTestCases,DeterminingtestobjectivesSelectingtestcasesDefiningatest,8.3UnitTestingTestThoroughness,StatementtestingBranchtestingPathtestingDefinition-usetestingAll-usestestingAll-predicate-uses/some-computational-usestestingAll-computational-uses/some-predicate-usestesting,8.3UnitTestingRelativeStrengthsofTestStrategies,8.3UnitTestingComparingTechniques,FaultdiscoveryPercentagesbyFaultOrigin,8.3UnitTestingComparingTechniques(continued),Effectivenessoffault-discoverytechniques,8.4IntegrationTesting,Bottom-upTop-downBig-bangSandwichtestingModifiedtop-downModifiedsandwich,8.4IntegrationTestingTerminology,ComponentDriver:aroutinethatcallsaparticularcomponentandpassesatestcasetoitStub:aspecial-purposeprogramtosimulatetheactivityofthemissingcomponent,8.4IntegrationTestingViewofaSystem,Systemviewedasahierarchyofcomponents,8.4IntegrationTestingBottom-UpIntegrationExample,Thesequenceoftestsandtheirdependencies,8.4IntegrationTestingTop-DownIntegrationExample,OnlyAistestedbyitself,8.4IntegrationTestingModifiedTop-DownIntegrationExample,Eachlevelscomponentsindividuallytestedbeforethemergertakesplace,8.4IntegrationTestingBing-BangIntegrationExample,Requiresbothstubsanddriverstotesttheindependentcomponents,8.4IntegrationTestingSandwichIntegrationExample,Viewedsystemasthreelayers,8.4IntegrationTestingModifiedSandwichIntegrationExample,Allowsupper-levelcomponentstobetestedbeforemergingthemwithothers,8.4IntegrationTestingComparisonofIntegrationStrategies,8.4IntegrationTestingSidebar8.5BuildsatMicrosoft,Thefeatureteamssynchronizetheirworkbybuildingtheproductandfindingandfixingfaultsonadailybasis,8.6TestPlanning,EstablishtestobjectivesDesigntestcasesWritetestcasesTesttestcasesExecutetestsEvaluatetestresults,8.6TestPlanningPurposeofthePlan,Testplanexplainswhodoesthetestingwhythetestsareperformedhowtestsareconductedwhenthetestsarescheduled,8.6TestPlanningContentsofthePlan,WhatthetestobjectivesareHowthetestwillberunWhatcriteriawillbeusedtodeterminewhenthetestingiscomplete,8.7AutomatedTestingTools,CodeanalysisStaticanalysiscodeanalyzerstructurecheckerdataanalyzersequencechecker,Outputfromstaticanalysis,8.7AutomatedTestingTools(continued),Dynamicanalysisprogrammonitors:watchandreportprogramsbehaviorTestexecutionCaptureandreplayStubsanddriversAutomatedtestingenvironmentsTestcasegenerators,8.8WhentoStopTestingMorefaulty?,Probabilityoffindingfaultsduringthedevelopment,8.8WhentoStopTestingStoppingApproaches,Coveragecriteria覆盖准则FaultseedingdetectedseededFaults=detectednonseededfaultstotalseededfaul

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论