首页 | 本学科首页   官方微博 | 高级检索  
     

基于ODDWG的面向对象软件集成测试序列生成
引用本文:苏荟.基于ODDWG的面向对象软件集成测试序列生成[J].现代电子技术,2012,35(18):38-40.
作者姓名:苏荟
作者单位:西安财经学院信息学院,陕西西安,710100
摘    要:为了更好地完成面向对象软件测试中的集成测试,提出了一种基于UML类图的面向对象软件集成测试方法。首先从UML类图的文件中利用RationalRose提供的接口将类图中的类内信息、类间信息提取出来,并计算每个类的内聚度以及类间耦合度,同时把每个类看作有向图的结点,类的内聚度、类间耦合度的加权作为节点的权值,类间关系的出度作为关系的权值。根据动态绑定的特点,在图中添加类间可能存在的动态绑定线索;然后,遍历该动态对象赋权图生成集成测试的测试序列;最后对生成的序列进行筛选,得出最有效的测试序列。实验证明该方法是有效的。

关 键 词:UML类图  有向赋权图  面向对象软件集成测试  ODDwG

Object-oriented software integrated testing sequence based on ODDWG
SU Hui.Object-oriented software integrated testing sequence based on ODDWG[J].Modern Electronic Technique,2012,35(18):38-40.
Authors:SU Hui
Affiliation:SU Hui(School of Information,Xi’an University of Finance and Economics,Xi’an 710100,China)
Abstract:In this paper,an object-oriented(OO) software integrated testing approach based on UML class diagram is presented to complete the integrated testing of OO software perfectly.The class content and messages between classes are extracted from UML class diagram file by using the interface provided by RationalRose.The coherence of each class and coupling factor between classes are calculated.Each class is taken as the node of directed weight graph,the weight of the class coherence and the coupling factor between classes as the node′s weight value,and the out-degree of relation between classes as the weight value of the relation.The dynamic binding clues which possibly exists between classes are added into the diagram according to the features of dynamic banding.this dynamic object directed weight graph is traveled to generate the integrated testing sequence.The sequence are screened to get more valid results.The experiments proved the effectiveness of the method.
Keywords:UML class diagram  DWG  OO integrated testing  object dynamic directed weight graph
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号