期刊文献+

函数调用路径测试用例自动生成的方法研究 被引量:2

Research on Automatic Generation of Function Call Path Test Case
下载PDF
导出
摘要 测试用例自动生成是软件测试自动化中最为关键的组成部分之一,符号执行作为一种程序分析方法,以其可提供高覆盖率测试用例的优势被广泛应用其中,但路径爆炸和约束求解问题很大程度制约了符号执行技术在现实程序分析中的应用。将研究粒度由语句提升至函数,利用抽象语法树和字节码序列提取到的函数关键信息和控制信息得到函数调用关系模型,设计算法生成函数调用路径(函数调用路径表示程序从开始到结束之间函数的调用或执行序列)。该方法不仅减少了测试路径数目缓解了路径爆炸问题,还有效解决了控制条件中存在函数导致符号表达式难求解的问题。实验结果表明该方法可优化测试路径集,在不降低覆盖率的前提下减少测试用例数量。 Automatic generation of test case is one of the most critical components in software test automation. Symbolic execution, as a program analysis method, is widely used because of its advantages of providing high coverage test case,but path explosion and constraint solving are very problematic. It greatly restricts the application of symbolic execution technology in real-time program analysis. The paper studies the granularity from statement to function, uses the abstract syntax tree and the bytecode sequence to extract the key information and control information of the function to get the function call relation model. The design algorithm generates the function call path(the function call path indicates the program from the beginning to the end). This method not only reduces the number of test paths to alleviate the path explosion problem, but also effectively solves the problem that the existence of function in the control condition makes the symbolic expression difficult to solve. The experimental results show that the method can optimize the test path set and reduce the number of test cases without reducing the coverage.
作者 沈晴 牟永敏 SHEN Qing;MU Yongmin(College of Computer Science,Bejing Information Science and Technology University,Bejing 100101,China)
出处 《计算机工程与应用》 CSCD 北大核心 2020年第18期238-246,共9页 Computer Engineering and Applications
基金 网络文化与数字传播北京市重点实验室开放课题(No.5221735410) 北京市自然科学基金(No.Z160002)。
关键词 函数调用路径 符号执行 全局测试用例 测试用例自动生成 function call path symbolic execution global test case test case automatic generation
  • 相关文献

参考文献8

二级参考文献68

  • 1李爱国.多粒子群协同优化算法[J].复旦学报(自然科学版),2004,43(5):923-925. 被引量:398
  • 2单锦辉,姜瑛,孙萍.软件测试研究进展[J].北京大学学报(自然科学版),2005,41(1):134-145. 被引量:135
  • 3高海昌,贺晓红,冯博琴,朱利.软件结构测试自动化关键技术研究[J].微电子学与计算机,2005,22(2):25-28. 被引量:8
  • 4侯芸,顾刚,高海昌,郭斌.一种路径覆盖自动生成的改进方法[J].计算机工程,2007,33(4):67-69. 被引量:6
  • 5S G Elbaum,P Kallakuri,A G Malishevsky,G Rothermel,S Kanduri.Understanding the effects of changes on the cost-effectiveness of regression testing techniques.Software Testing[J].Verification and Reliability,2003,13(2):65-83.
  • 6高芳.分段边界内部路径覆盖软件测试方法的研究与实现 .哈尔滨:哈尔滨工业大学,2002.
  • 7T Ball,P Mataga,M Sagiv.Edge profiling versus path profiling:The Show down .Proc of the 25th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Language .New York:ACM Press,1998.134-148.
  • 8Mary Jean Harrold,Alessandro Orso.Retesting software during development and maintenance .Frontiers of Software Maintenance (FoSM 2008) .Beijing,China,2008.99-108.
  • 9M J Harrold,J J Jones,T Li,et al.Regression test selection for Java software .In Proceedings of OOPSLA'O1 .Tampa Bay,Florida,USA,2001.312-326.
  • 10G Rothermel,M J Harrold.Analyzing regression test selection techniques[J].IEEE Transactions on Software Engineering,1996,22(8):529-551.

共引文献84

同被引文献26

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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