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