期刊文献+

基于区间必然集的测试用例生成方法 被引量:2

A Method of Test Case Generation Based on Necessary Interval Set
下载PDF
导出
摘要 针对自动化单元测试中面向路径的测试用例生成问题,通过改进传统的基于符号执行的测试用例生成方法,提出"符号化区间"来表示和分析变量的静态取值范围,并给出简单表达式和逻辑表达式中"区间可能集"和"区间必然集"的计算方法.提出了面向路径的值区间分析算法,通过对给定路径进行前向数据流分析来计算各条边上的区间上下文环境以及各符号的必然取值区间,在路径出口处的符号值区间必然集中任意取值,可得到覆盖给定路径的测试用例.与基于约束求解的传统方法相比,文中方法省去了表达式变换及调用约束求解器的过程,对输入变量弱关联的情况能够快速、准确地生成测试用例. Aiming at path-oriented test generation in automatic unit testing, this paper improves the classic test generation method based on symbolic execution, proposes the symbolic interval to describe and analyze the range of variable value, and gives the computing method of possible interval set and necessary interval set of variable value in different condition expressions. Then, the paper designs a new path-oriented interval analysis algorithm using the forward data-flow analysis. Choosing value from the necessary interval set of symbolic variable on the path exit, the test case can be obtained. Compared to the classic method which is always dependent on constraint solver, this new method omits the steps of expression conversion and constraint solving, and it can generate test case appropriately and efficiently in case of the weakly relevant input.
出处 《计算机辅助设计与图形学学报》 EI CSCD 北大核心 2013年第4期550-556,563,共8页 Journal of Computer-Aided Design & Computer Graphics
基金 国家自然科学基金(61202080) 国家"八六三"高技术研究发展计划(2012AA011201) 计算机体系结构国家重点实验室开放课题(CARCH201201)
关键词 测试用例 面向路径 符号执行 上下文环境 区间必然集 test case path oriented symbolic execution environment necessary interval set
  • 相关文献

参考文献14

  • 1Gotlieb A, Botella B, Rueher M. Automatic test data generation using constraint solving techniques [C] // Proceedings of the ACM SIGSOFT International Symposium on Software Testing and Analysis. New York: ACM Press, 1998:53-62.
  • 2Xu Z X, Zhang J. A test data generation tool for unit testing of C programs [C]// Proceedings of the 6th International Conference on Quality Software. Los Alamitos: IEEE Computer Society Press, 2006:107-116.
  • 3Gotlieb A. Euclide: a constraint-based testing framework for critical C programs [C] //Proceedings of the 2nd International Conference on Software Testing Verification and Validation. Los Alamitos: IEEE Computer Society Press, 2009:151-160.
  • 4Korel B. Automated software test data generation [J]. IEEE Transactions on Software Engineering, 1990, 16(8): 870-879.
  • 5Godefroid P. Compositional dynamic test generation [C] // Proceedings of the 34th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. New York: ACM Press, 2007:47-54.
  • 6谢晓园,徐宝文,史亮,聂长海.面向路径覆盖的演化测试用例生成技术(英文)[J].软件学报,2009,20(12):3117-3136. 被引量:26
  • 7Sen K, Marinov D, Agha G. CUTE : a concolic unit testing engine for C [C] // Proceedings of the 10th European Software Engineering Conference. New York: ACM Press, 2005: 263- 272.
  • 8Zhao Y S, Wang Y W, Gong Y Z, etal. STVL.. improve the precision of static defect detection with symbolic three-valued logic [C] // Proceedings of the 18th Asia-Pacific Software Engineering Conference. Los Alamitos.. IEEE Computer Society Press, 2011:179-186.
  • 9王雅文,宫云战,肖庆,杨朝红.基于抽象解释的变量值范围分析及应用[J].电子学报,2011,39(2):296-303. 被引量:16
  • 10Cousot P, Cousot R. Abstract interpretation:a unified lattice model for static analysis of programs by construction or approximation of fixpoints[C] // Proceedings of the 4th ACM Symposium on Principles of Programming Languages. New York.. ACM Press, 1977: 238-252.

二级参考文献47

  • 1姬孟洛,李军,王馨,齐治昌.一种基于抽象解释的WCET自动分析工具[J].计算机工程,2006,32(14):54-56. 被引量:10
  • 2薛云志,陈伟,王永吉,赵琛,王青.一种基于Messy GA的结构测试数据自动生成方法[J].软件学报,2006,17(8):1688-1697. 被引量:14
  • 3姬孟洛,王怀民,李梦君,董威,齐治昌.一种基于抽象解释和通用单调数据流框架的值范围分析方法[J].计算机研究与发展,2006,43(11):2020-2026. 被引量:10
  • 4Harrison W H. Compiler analysis of the value ranges for variables. IEEE Transactions on Software Engineering, 1977, 3(3): 243 -250.
  • 5Simon A. Value-Range Analysis of C Programs: Towards Proving the Absence of Buffer Overflow Vulnerabilities. Berlin: Springer, 2008.
  • 6Cousot P, Cousot R. Abstract interpretation: A unified lattice model for static analysis of programs by construction or approximation of fixpoints//Proceedings of the 4th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL'77). Los Angeles, California, USA, 1977:238-252.
  • 7Cousot P, Cousot R. Static determination of dynamic properties of programs//Proceedings of the 2nd International Symposium on Programming, Paris, France, 1976:106-130.
  • 8Blanchet B, Cousot P, Cousot R, Feret J, Mauborgne L, Mine A, Monniaux D, Rival X. A static analyzer for large safety-critical software//Proceedings of the ACM SIGPLAN 2003 Conference on Programming Language Design and Implementation (PLDI' 03). San Diego, California, USA, 2003:196-207.
  • 9Cousot P, Halbwachs N. Automatic discovery of linear restraints among variables of a program//Proceedings of the 5th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL' 78). Tucson, Arizona, USA, 1978:84- 97.
  • 10Mine A. The octagon abstract domain. Higher-Order and Symbolic Computation, 2006, 19(1): 31-100.

共引文献64

同被引文献17

  • 1Beizer B. Software Testing Techniques. 2nd ed. New York: Van Nostrand Reinhold, 1990.
  • 2King S, Hammond J, Chapman R, et al. Is proof more cost effective than testing?. IEEE Trans Softw Eng, 2000, 26: 675-686.
  • 3DeMilli R A, Offutt A J. Constraint-based automatic test data generation. IEEE Trans Softw Eng, 1991, 17: 900-910.
  • 4Gallagher M J, Narasimhan V L. Adtest: a test data generation suite for ada software systems. IEEE Trans Softw Eng, 1997, 23: 473-484.
  • 5Gupta R, Mathur A P, Soffia M L. UNA based iterative test data generation and its evaluation. In: Proceedings of the IEEE International Conference on Automated Software Engineering, New York, 1999. 224-232.
  • 6Robschink T, Snelting G. Efficient path conditions in dependence graphs. In: Proceedings of the 24th International Conference on Software Engineering, New York, 2002. 478-488.
  • 7Cadar C, Dunbar D, Engler D R. KLEE: unassisted and automatic generation of high-coverage tests for complex systems programs. In: Proceedings of OSDI, 2008. 209-224.
  • 8唐容, 王雅文, 宫云战. 面向测试用例生成的抽象内存模型研究. 第七届中国测试学术会议. 杭州, 2012. 144-149.
  • 9Harman M, McMinn P. A theoretical and empirical study of search-based testing: local, global, and hybrid search. IEEE Trans Softw Eng, 2010, 36:226-247.
  • 10Xing Y, Gong Y Z, Wang Y W, et al. Path-wise test data generation based on heuristic look-ahead methods. Math Probl Eng, 2014.

引证文献2

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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