摘要
面向对象的程序与传统的结构化程序相比,具有许多特点,如消息传递、同步、动态绑定、对象实例、继承、多态等.面向对象软件的测试比结构化软件的测试更困难,因此提出一种基于OOPN模型的面向对象的集成测试方法.首先用面向对象petri网(OOPN)模拟系统中的对象及其交互过程,然后在此模型的基础上提出生成测试例的算法.此方法的创新之处在于将数据流与控制流相结合的方法用于面向对象的测试之中.
Object-oriented programs have many unique features, such as message passing, synchronization, dynamic binding, object instantiation, inheritance, polymorphism, which are not presented in their conventional counterparts. Integration testing for such a program is more difficult than that for a conventional program. An approach of integration testing based on the OOPN model is presented. First the objects of the OOPN model and the process of interaction with each other are given,then the algorithm of generating test cases based on this model is proposed. The novel of this approach is to apply the combination of the data flow with the control flow to the object-oriented testing.
出处
《内蒙古大学学报(自然科学版)》
CAS
CSCD
北大核心
2007年第1期84-87,共4页
Journal of Inner Mongolia University:Natural Science Edition
基金
内蒙古自然科学基金项目(200408020806)
关键词
面向对象
集成测试
OOPN
object-oriented
integration testing
OOPN model