期刊文献+

基于程序切片的测试用例生成系统研究与实现 被引量:3

Program Slicing-guied Test Case Generation System
下载PDF
导出
摘要 介绍了一种基于程序行为切片的测试用例生成系统的实现方案,系统在不扫描全部程序路径的情况下,生成可以覆盖全部程序行为的测试用例集。系统分为静态分析、动态符号执行以及测试用例生成3个模块。在静态分析模块中根据输入的程序代码分析程序的控制流和信息流,提取程序的控制依赖和数据依赖,并计算程序的潜在依赖;动态符号执行模块求解约束条件、生成测试用例和分析代码执行过程;测试用例生成模块根据执行路径和依赖关系计算被路径覆盖的程序行为切片和未被覆盖的程序行为切片,然后根据未被覆盖的程序行为切片,引导符号执行生成能覆盖新的程序行为切片的测试用例。实验证明,本系统生成的测试用例集可以保证覆盖所有的程序行为,同时能显著减少生成的测试用例数量。 A program slicing-guided test case generation system was introduced in this paper, which could generate the set of test case covering all program behavior without scanning all paths of the program. It consists of three modules: the static analysis,dynamic symbolic execution and test case generation. In the static analysis module, the control flow and information flow of input program are analyzed to extract the control dependency and data dependency, and the potential dependency is also computed. The dynamic symbol execution module is applied to solve the constraints, generate test case and monitor the execution path. In the test case generation module, the covered and uncovered program slices of the execution test scase are computed to guide the new test case generation. In the experiments, the test case set gen erated by our system, can cover all program behaviors and significantly reduce the number of test cases.
出处 《计算机科学》 CSCD 北大核心 2014年第9期71-74,共4页 Computer Science
基金 国家自然科学基金(91118005 91218301 61221063 61203174 61202392) 国家科技支撑计划(2011BAK 08B02) 教育部博士点基金(20110201120010) 中央高校基本科研业务费专项资金资助
关键词 软件测试 测试用例集生成 动态符号执行 程序切片 Software testing Test case set generation Dynamic symbolic execution Program slicing
  • 相关文献

参考文献12

  • 1Majumdar R, Sen K. Hybrid concolic testing[C]//29th Interna- tional Conference on Software Engineering, 2007, ICSE 2007. IEEE, 2007 : 416-426.
  • 2Bohme M. Software regression as change of input partitioning [C]//2012 34th International Conference onSoftware Enginee- ring(ICSE). IEEE, 2012 : 1523 -1526.
  • 3Bohme M, Oliveira B C S, Roychoudhury A. Partition-based re- gression verification[C]//Proceedings of the 2013 International Conference on Software Engineering. IEEE Press, 2013 : 302 -311.
  • 4Pasfireanu C S, Rungta N. Symbolic PathFinder: symbolic exe- cution of Java bytecode[C]//Proceedings of the IEEE/ACM in- ternational conference on Automated software engineering. ACM, 2010 : 179-180.
  • 5Godefroid P, Klarlund N, Sen K. DART: directed automated ran-dora testing[J]. ACM Sigplan Notices, 2005,40(6) : 213-223.
  • 6Sen K, Marinov D, Agha G. CUTE;a concolic unit testing engine for C[M]. ACM,2005.
  • 7Cadar C, Dunbar D, Engler D R. KLEE: Unassisted and Auto- matic Generation of High-Coverage Tests for Complex Systems Programs[C]// OSDI. 2008,8 : 209-224.
  • 8Gyimothy T,Beszdes d, Forgdcs I. An efficient relevant slicing method for debugging[C]//Software Engineering ES[C/FSE' 99. Springer Berlin Heidelberg, 1999: 303-321.
  • 9Qi D, Nguyen H D T, Roychoudhury A. Path exploration based on symbolic output[C]// Proceeding of the ACM SIGSOFT Symposium on the Foundations of Software Engineering. 2011: 278-288.
  • 10Weiser M. Program slicing[C]//Proceedings of the 5th interna- tional conference on Software engineering. IEEE Press, 1981: 439-449.

同被引文献37

  • 1张策,刘宏伟,白睿,王瞰宇,王金勇,吕为工,孟凡超.可靠性模型中故障检测率研究述评[J].软件学报,2020(9):2802-2825. 被引量:8
  • 2赵建涛,黄立松.微服务故障诊断相关技术研究探讨[J].网络新媒体技术,2020,9(1):57-64. 被引量:2
  • 3Zhang Peng, Mao Xiaoguang, Lei Yan, et al. Fauh locali- zation based on dynamic slicing via JSlice for Java programs [ C ]// Proceedings of the 5th IEEE International Confer- ence on Software Engineering and Service Science ~ IC- SESS). 2014:565-568.
  • 4Zhao Binglin, Wang Yinhao, Shan Zheng, et al. Software behavior model based on functional slicing[ C ]//Proceed- ings of the 2015 International Conference on Intelligent Sys- tems Research and Mechatronics Engineering. Atlantis Press, 2015.
  • 5Weiser M. Program slicing[ C]// Proceedings of the 5th International Conference on Software Engineering. 1981: 439-449.
  • 6Korel B, Laski J. Dynamic program slicing[ J ]. Informa- tion Processing Letters, 1988,29(3) : 155-163.
  • 7Krishnaswamy A. Program Slicing: An Application of Ob- ject-oriented Program Dependency Graphs [ R ]. Technical Report TR94-108, Clemson University, 1994.
  • 8Cheng Jingde. Slicing concurrent programs: A graph-theo- retical approach [ C ]//Proceedings of the 1 st International Workshop on Automated and Algorithmic Debugging. 1993:223-240.
  • 9Jackson D, Rollins E J. Abstraction mechanisms for picto- rial slicing[ C ]// Proceedings of the 3rd IEEE Workshop on Program Comprehension. 1994:82-88.
  • 10Jayaraman G, Ranganath V P, Hatcliff J. Kaveri: Delive- ring the Indus Java program slicer to eclipse [ M ]//Funda- mental Approaches to Software Engineering. Springer Ber- lin Heidelberg, 2005:269-272.

引证文献3

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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