测试用例设计(白盒oo)ppt培训课件

测试用例设计(白盒oo)ppt培训课件

ID:33620075

大小:1.00 MB

页数:58页

时间:2018-05-23

测试用例设计(白盒oo)ppt培训课件_第1页
测试用例设计(白盒oo)ppt培训课件_第2页
测试用例设计(白盒oo)ppt培训课件_第3页
测试用例设计(白盒oo)ppt培训课件_第4页
测试用例设计(白盒oo)ppt培训课件_第5页
资源描述:

《测试用例设计(白盒oo)ppt培训课件》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、软件测试和质量保证OO测试用例设计本章要点以覆盖准则为切入点,讨论基于系统内部实现的测试方法基本路径测试覆盖准则基本控制流的测试基于数据流的测试基于程序变异的测试面向对象的测试面向对象的测试问题和失效模式OOTestDesignMethodScopeClassScopeFlattenedClassScopeClassScopeCoverageCriteriaOOTestingProblemsThehopeforreductioninOOTestingduetoreuseisillusoryInheritance,polymorphism,latebindingandencapsulationp

2、resentsomenewproblemsfortestcasedesign,testabilityandcoverageanalysisThetestmethodshouldbechangeeasilyaccordingtotheiterationandincrementoodevelopmentTestingactivitiesshouldberegardedasaprofessionaloodevelopmentEncapsulationAaccesscontrolmechanismpresentanobstacletotestingExampleInheritanceLSP子类应当可以

3、替换父类并出现在父类可以出现的任何地方类的扩展原则类的继承原则RelatedBugsIncorrectinitialization(supposeifsuper’sinitializationiswrong)inadvertentbinding(datamemberlifecycle)Missingoverride:copy,isEqualNakedaccess:subclassaccesstothesuperclassdatamemberwithoutstricklycontrolingSpaghettiinheritance:tooheavymultipleinheritanceandde

4、ephierarchies(>6)Naughtychildren:subclasseitherdoesnotacceptallmessagesthatsuperclassacceptsorleavestheobjectinastatethatisillegalinthesuperclassFatinterface:AsubclassinheritsmethodsthatareinappropriateorirrelevantOOBugHazardsTheinteractionofindividuallycorrectsuperclassandsubclassmethodscanbebuggy.

5、InteractionmustbesystematicallyexercisedOmittingasubclassoverrideforahigh-levelsuperclassmethodinadeepinheritancehierachyiseasySuperclasstestsuitesmustbererunonsubclassesandconstructedsothattheycanbereusedtotestanysubclassPoordesignofclasshierarchiessupportingdynamicbindingcanresultinfailuresofasubc

6、lasstoobservesuperclasscontractsAllbindingsmustbesystematicallyexercisedtorevealthesebugsOOBugHazardsThelossofintellectualcontrolthatresultfromspaghettipolymorphismisabugharzardAclientofapolymorphicservercanbeconsideredhavebeenadequatelytestedonlyifallserverbindingsthattheclientcangeneratehavebeenex

7、ercisedClasswithsequentialconstrainsonmethodactivationandtheirclientscanhavecontrolbugs.Subclassmayfailingtoobservestatemodelofsuperclass,sosubclassshouldbetestedinflattenedmodelDomainTestingTestStrat

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。