期刊文献+

基于谓词动态切片技术的AOP测试用例生成方法研究

Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing
在线阅读 下载PDF
导出
摘要 面向方面程序设计是面向对象程序设计技术的补充和完善,高效的面向方面程序测试方法是面向方面程序的质量保证.提出一个基于谓词动态切片技术的测试方法.首先,构造完整的AOP语句控制流图,它包含AOP的方面、切入点、连接点、建议等因素.然后,根据完整的AOP语句控制流图生成所有路径,针对每条路径,构造其分支函数,计算得到相应的测试数据,若路径不可执行,则不再计算其测试数据.在这个过程中,通过构建简化动态依赖图来生成谓词动态切片,再用谓词动态切片来帮助调整测试数据.最后,将各路径的实际输出数据与期望输出数据相比较,即可判断该程序是否有错误.经实例分析和实验验证,此方法可以系统地测试一个完整的面向方面程序,提高了测试数据的生成效率,并产生有效的测试用例. Aspect-oriented programming (AOP) is the complement and perfection of the technology of object-oriented programming ( OOP), while efficient AOP testing method is the quality assurance of AOP. In this paper, we propose an effective testing method which is based on Predicate Dynamic Slicing. First of all, our method constructs Complete AOP Statement Control Flow Graph which contains the aspect, pointcut, join point and advice of AOP. Then, the method generates all of the paths of AOP from Complete AOP Statement Control Flow Graph and constructs branched function of each path to obtain its corresponding testing data. If the path can- not execute, the method fails to generate the testing data. During this procedure, it would build Simplified Dynamic Dependency Graph to generate the predicate dynamic slicing which can help to adjust the test data afterwards. Ultimately, to each path, we com- pare the actual output with desired output to decide whether the software has bugs or not. Cases analysis and experimental results show that our solution can test an integrated AOP systematically, meanwhile improve the efficiency when producing the testing data, and e- ventually obtain valid test cases.
出处 《小型微型计算机系统》 CSCD 北大核心 2013年第6期1321-1327,共7页 Journal of Chinese Computer Systems
关键词 面向方面程序设计 语句控制流图 谓词动态切片 分支函数 aspect-oriented programming statement control-flow graph predicate dynamic slicing branched function
  • 相关文献

参考文献5

二级参考文献34

  • 1王申源,董传良,刘英丹.面向方面的编程的研究与实现[J].计算机应用研究,2004,21(11):220-223. 被引量:15
  • 2郭东亮,张立臣.面向方面软件开发研究[J].计算机应用研究,2005,22(8):36-38. 被引量:6
  • 3徐宝文,周超洪,周天琳,史亮.面向方面的程序设计:概念、实现与未来[J].计算机与数字工程,2005,33(8):1-10. 被引量:14
  • 4赵辉,王黎明.一个基于网格服务的分布式关联规则挖掘算法[J].小型微型计算机系统,2006,27(8):1544-1548. 被引量:9
  • 5朱鸿 金凌紫.软件测试和质量保障技术[M].科学出版社,1997..
  • 6Domingos P, Hulten G. Mining high-speed data streams [C]. Proceedings of the Sixth International Conference on Knowledge Discovery and Data Mining, Boston, MA, 2000,71 -80.
  • 7Hulten G, Spencer L, Domingos P. Mining time-changing data streams [ C]. Proceedings of the Seventh International Conference on Knowledge Discovery and Data Mining, SanFrancisco, CA, 2001,97-106.
  • 8Gama J Rocha R, Medas P. Accurate decision trees for mining high-speed data streams [ C]. Proceedings of the Ninth International Conference on Knowledge Discovery and Data Mining, Washington, D. C, 2003, 523-528.
  • 9Wang H, Fan W, Yu P S, et al. Mining concept-drifting data streams using ensemble classifiers [ C]. Proceedings of the Ninth International Conference on Knowledge Discovery and Data Mining, 2003, 226-235.
  • 10Aggarwal C C,Han J, Wang J, et al. On demand classification of data streams [C]. Proceedings of the Ninth International Conference on Knowledge Discovery and Data Mining, Seattle, WA, USA , 2004, 503-508.

共引文献21

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部