Combining Symbolic Execution and Search-Based Testing for Programs with Complex Heap Inputs

被引:44
作者
Braione, Pietro [1 ]
Denaro, Giovanni [1 ]
Mattavelli, Andrea [2 ]
Pezze, Mauro [3 ]
机构
[1] Univ Milano Bicocca, Milan, Italy
[2] Imperial Coll London, London, England
[3] USI, Lugano, Switzerland
来源
PROCEEDINGS OF THE 26TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS (ISSTA'17) | 2017年
基金
英国工程与自然科学研究理事会;
关键词
Automatic test case generation; Symbolic execution; Search-based software engineering; GENERATION;
D O I
10.1145/3092703.3092715
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Despite the recent improvements in automatic test case generation, handling complex data structures as test inputs is still an open problem. Search-based approaches can generate sequences of method calls that instantiate structured inputs to exercise a relevant portion of the code, but fall short in building inputs to execute program elements whose reachability is determined by the structural features of the input structures themselves. Symbolic execution techniques can effectively handle structured inputs, but do not identify the sequences of method calls that instantiate the input structures through legal interfaces. In this paper, we propose a new approach to automatically generate test cases for programs with complex data structures as inputs. We use symbolic execution to generate path conditions that characterise the dependencies between the program paths and the input structures, and convert the path conditions to optimisation problems that we solve with search-based techniques to produce sequences of method calls that instantiate those inputs. Our preliminary results show that the approach is indeed effective in generating test cases for programs with complex data structures as inputs, thus opening a promising research direction.
引用
收藏
页码:90 / 101
页数:12
相关论文
共 56 条
  • [41] Lakhotia K, 2010, LECT NOTES COMPUT SC, V6435, P142, DOI 10.1007/978-3-642-16573-3_11
  • [42] Lakhotia Kiran., 2008, Proceedings of the Annual Conference on Genetic and Evolution- ary Computation (GECCO), P1759, DOI 10.1145/1389095.1389435
  • [43] Malburg J., 2011, 2011 26th IEEE/ACM International Conference on Automated Software Engineering, P436, DOI 10.1109/ASE.2011.6100092
  • [44] Search-based software test data generation: a survey
    McMinn, P
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2004, 14 (02) : 105 - 156
  • [45] Pacheco C, 2007, PROC INT CONF SOFTW, P75
  • [46] Pargas R. P., 1999, Software Testing, Verification and Reliability, V9, P263, DOI 10.1002/(SICI)1099-1689(199912)9:4<263::AID-STVR190>3.0.CO
  • [47] 2-Y
  • [48] Pezze Mauro, 2007, Software Testing and Analysis: Process, Principles and Techniques
  • [49] BLISS: Improved Symbolic Execution by Bounded Lazy Initialization with SAT Support
    Rosner, Nicolas
    Geldenhuys, Jaco
    Aguirre, Nazareno M.
    Visser, Willem
    Frias, Marcelo F.
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (07) : 639 - 660
  • [50] Sen K, 2006, LECT NOTES COMPUT SC, V4144, P419