面向对象软件集成测试策略研究-计算机科学与技术专业毕业论文.docxVIP

  • 2
  • 0
  • 约4.02万字
  • 约 50页
  • 2019-05-14 发布于上海
  • 举报

面向对象软件集成测试策略研究-计算机科学与技术专业毕业论文.docx

华中科技大学硕士学位论文摘 华中科技大学硕士学位论文 摘 要 传统的测试技术很少考虑由封装、继承、多态和动态绑定等面向对象新特性所 带来的面向对象的错误。面向对象软件测试是在过程式软件测试的基础上引入面向 对象程序的新特性而形成的测试技术。面向对象软件的集成测试主要是通过测试发 现和接口有关的错误来构造程序结构的系统化技术。 /相互之iBq有继承关系的相关类的接口应该尽早进行测试,这就必须考虑使用集 成测试技术。由于和过程式程序在程序结构上的不同,在面向对象软件测试中集成 测试处于首要地位,而单元测试仍然是集成测试的基础。L产一一 基于活动对象的面向对象程序集成测试策略以类的对象的定义一使用的所有活 动为线索,同时使用三种覆盖标准来处理由面向对象新特性给软件测试带来的新问 题。其中,所有定义一使用对覆盖标准主要用于指导测试设计者设计验证对象生存 期的动态行为的测试用例;所有绑定覆盖标准主要用于解决继承和多态问题,以及 执行了哪个绑定;所有交互覆盖标准主要用于解决方法间的数据共享问题。在测试 执行的每一步都要检查影响到的每个对象的状态,以确保对象的状态改变是正确无 误的。 f基于活动对象的面向对象程序集成测试策略是在类的层次上进行集成测试的策 略。此策略不仅考虑类的方法闻的相互作用,还考虑由类的虚函数所引起的动态绑 定、多态等问题。由此策略生成的测试用例针对的是相互独立的单独的对象或数据 成员,尽管这样减少了可生成的测试用例的数量,却使测试用例的生成在具有针对 性的同时既快又容易。,)一/一 7。/ o/ 关键词:道i《i墅蠹软件测试:集成测试;测试策略;《垂夏至)/疋/~ 华中科技大学硕士学位论文Abstract 华中科技大学硕士学位论文 Abstract Traditional testing techniques often overlook Object-Oriented fauRs caused by encapsulation,inheritance and polymorphism features.The Object-Oriented software testing(OOST)is a new testing technique谢t}l the importation of Object-Oriented specialties to traditional software testing techniques.And the integration testing of OOST is a systematic technique tO construct program structures mainly through testing and finding eITors related tO interthces supplied by classes. The classes,which have inherent relation,should be tested earlier,and this causes the USe of integration testing technique.Because of the distinctness in structures,the integration testing is chief in OOST and the unit testing is still its groundwork. The active object based integration testing strategy(AOBITS)takes the define—use pairs of an object as main thread together witll three coverage criteria to tackle the new features of object·oriented programs.The All-Define-Use—Pairs criterion is used to guide testers in designing test Cases that carl validate the dynamic behavior of every object through its lifetime.The All-Bindings criterion takes inheritance and polymorphism features into account and also helps testers identi鸟exercised dynamic bindings.Data sharing problems ca

文档评论(0)

1亿VIP精品文档

相关文档