计算机应用 ›› 2009, Vol. 29 ›› Issue (11): 3110-3113.

• 软件过程技术 • 上一篇    下一篇

面向对象软件的依赖性分析与回归测试

陈树峰1,郑洪源2   

  1. 1. 南京航空航天大学 信息科学与技术学院 计算机科学与工程系
    2. 南京航空航天大学信息科学与技术学院
  • 收稿日期:2009-05-26 修回日期:2009-07-11 发布日期:2009-11-26 出版日期:2009-11-01
  • 通讯作者: 陈树峰

Dependence analysis and regression testing of object-oriented software

Shu-feng CHEN,Hong-yuan ZHENG   

  • Received:2009-05-26 Revised:2009-07-11 Online:2009-11-26 Published:2009-11-01
  • Contact: Shu-feng CHEN

摘要: 针对面向对象软件中类之间复杂的依赖性问题,通过分析UML类图中类之间的各种静态关系,提出一个基于UML类图的依赖性分析模型。为了实现自动化分析,引入了类依赖关系图的概念,并提出一个基于UML类图导出的XMI文件的类依赖关系图生成算法。根据这个模型,通过分析一个类或依赖关系的改变对其他类产生的影响,提出测试路径查找算法,并利用此算法得到需要进行回归测试的类集与测试序列。

关键词: 统一建模语言, 类图, 类依赖关系, 继承, XMI, 回归测试

Abstract: Concerning the complex dependence between classes in the object-oriented software, through the analysis of all kinds of static relations in UML Class Diagram (UCD), a dependence analysis model was proposed. In order to implement automatic analysis, the concept of Class Dependence Relation Graph (CDG) was introduced. Meanwhile, a CDG creation algorithm based on the XMI file exported from UCD was proposed. On the basis of this model, the test path search algorithm was proposed by the impact analysis of UCD. With the help of test path search algorithm, class set and test paths that need regression testing can be obtained.

Key words: Unified Modeling Language (UML), class diagram, class dependence relations, inheritance, XMI, regression testing