一种新的面向对象软件集成测试序列生成方法  被引量:2

A New Method to Generating OO Integration Testing Scenarios

在线阅读下载全文

作  者:苏荟[1] 

机构地区:[1]西安财经学院信息学院,西安710100

出  处:《软件》2012年第3期75-76,79,共3页Software

摘  要:集成测试是面向对象软件测试中的重要环节。UML不仅在软件分析领域具有重要作用,同时是软件测试的有力依据。在本文中,提出了一种以UML类图为基础的面向对象软件集成测试的测试序列生成方法。从UML类图中提取类的所有信息。然后依据提取的信息计算每个类的内聚度和类间耦合度,将计算结果存入数据库中。最后根据计算的类间耦合度与类的内聚度从高到低对类进行遍历。最后生成集成测试时的类测试序列。经证明该方法对于软件有较好效果。Integrated testing is an important part of OO software testing. UML is useful not only in software design but also in soft- ware testing. In this paper, an testing scenarios approach based on UML class diagram is presented, which is in terms of OO software’s inte- grated testing features. Firstly, class’s massages are taken out from UML class diagram. Secondly, the class cohesion and degree of coupling between classes are computed according to definitions in paper and saved in database. Thirdly, select the class info from database standing on the degree of coupling between classes from big to small. Finally, the OO integrate testing scenarios are created and put out .The experi- ments show that the method is effective.

关 键 词:UML类图 测试序列 面向对象软件测试 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象