检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]郑州大学信息工程学院,河南郑州450001 [2]河南财经政法大学,河南郑州450000
出 处:《电子学报》2013年第6期1242-1248,共7页Acta Electronica Sinica
摘 要:面向对象所具有的类、封装、继承、动态连接等特性,使得面向对象测试步骤的划分以及测试策略的选择有别于传统的测试思想.本文针对面向对象软件的特点,采用基于模型的软件测试方法,对UML(United Model Language)设计模型中的顺序图添加OCL(Object Constraints Language)约束,做类间交互的软件测试.本文提出执行图EG生成算法,将顺序图SD转换为执行图EG,解决UML2.0顺序图新增特性中的alt、loop、opt、break四种常见组合片段及其嵌套和多态性问题;为得到最小完备的测试路径,本文提出了EG的遍历策略和测试路径生成算法;最后,根据测试路径确定测试场景,并删除无效场景,生成测试用例.经实验验证,此方法可以基于UML顺序图与OCL约束进行系统地测试.There are some features in object-oriented software,such as classes,encapsulation,inheritance,and dynamic connections. They make the division of object-oriented testing procedures and the choice of strategy different from traditional testing ideas.According to the characteristics of object-oriented software,the paper adopts the methods based on models for testing software and adds OCL(Object Constraints Language)constraints for sequence diagram of UML(United Model Language)design model and tests interaction among classes.The paper proposes the algorithm for generating EG(Execution Graph)and transforms SD(Sequence Diagram) to EG,and SD is constrainted by OCL for testing interaction among classes.In this algorithm,the testing problem for four major combined fragments including alt,loop,opt,break in the new features,and their nesting among them and the polymorphism, win be solved in sequence diagram of UML 2.0.In order to get the smallest complete test pathes,strategy for traversing EG and algorithm for generating test paths are presented.Finally,the paper proposes algorithm for determining test scenarios by testing pathes, deleting invalid scenarios by OCL constraints,and generating test cases.Experimental validation shows that our solution can test software based on UML sequence diagram and OCL.
关 键 词:UML 顺序图 OCL 执行图(EG) 测试场景 测试用例
分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.183