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

面向对象软件测试的蜕变关系构造方法
引用本文:侯雪梅,于磊,张兴隆,李志博.面向对象软件测试的蜕变关系构造方法[J].计算机应用,2015,35(10):2990-2994.
作者姓名:侯雪梅  于磊  张兴隆  李志博
作者单位:信息工程大学 网络空间安全学院, 郑州 450001
基金项目:国家自然科学基金资助项目(61402525);郑州市科技攻关计划项目(141PPTGG383)。
摘    要:针对面向对象软件类级测试中方法序列调用时的Oracle问题,提出了一种基于代数规格的面向对象蜕变关系构造方法,并根据此方法进行蜕变测试。首先基于代数规格给出面向对象测试中蜕变关系的构造准则,然后根据构造准则对GFT(Generating a Finite number of Test cases)算法中范式构造蜕变关系方法进行改进,最后通过一个整数栈类对提出的蜕变关系构造准则进行了验证测试,并与GFT算法中范式构造蜕变关系方法进行了对比,结果表明在相似的变异检测率下,改进后的方法使得构造的蜕变关系冗余度降低了66%,验证了改进的蜕变关系构造方法有更低的蜕变关系冗余度,提高了软件测试效率。

关 键 词:面向对象  蜕变关系  代数规格  变异检测率  
收稿时间:2015-04-14
修稿时间:2015-07-09

Constructing method of metamorphic relations in object-oriented software testing
HOU Xuemei,YU Lei,ZHANG Xinglong,LI Zhibo.Constructing method of metamorphic relations in object-oriented software testing[J].journal of Computer Applications,2015,35(10):2990-2994.
Authors:HOU Xuemei  YU Lei  ZHANG Xinglong  LI Zhibo
Affiliation:College of of Cyberspace Security, Information Engineering University, Zhengzhou Henan 450001, China
Abstract:To solve the Oracle problem of method sequence call in object-oriented software testing, a method of metamorphic relations constructing for object-oriented software testing based on algebraic specification was proposed. Firstly, metamorphic relations constructing criteria for object-oriented testing was defined based on the algebraic specification. Then the normal form metamorphic relations constructing method in the Generating a Finite number of Test cases (GFT) algorithm was improved according to these criteria. Finally, the improved method was verified through constructing IntStack class metamorphic relations. The experimental results showed that, compared with the normal form metamorphic relations constructing method, the metamorphic relations redundancy was reduced by 66% at the same mutation score. The results indicate that the new method has a low metamorphic relations redundancy and improves the efficiency of software testing.
Keywords:object-oriented                                                                                                                        metamorphic relation                                                                                                                        algebraic specification                                                                                                                        mutation score
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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