Improvements of Directed Automated Random Testing in Test Data Generation for C++ Projects
Authors:
- 1 September 2019
- journal article
- research article
- Published by World Scientific Pub Co Pte Ltd in International Journal of Software Engineering and Knowledge Engineering
- Vol. 29 (09) , 1279-1312
Abstract
This paper improves the breadth-first search strategy in directed automated random testing (DART) to generate a fewer number of test data while gaining higher branch coverage, namely Static DART or SDART for short. In addition, the paper extends the test data compilation mechanism in DART, which currently only supports the projects written in C, to generate test data for C++ projects. The main idea of SDART is when it is less likely to increase code coverage with the current path selection strategies, the static test data generation will be applied with the expectation that more branches are covered earlier. Furthermore, in order to extend the test data compilation of DART for C++ context, the paper suggests a general test driver technique for C++ which supports various types of parameters including basic types, arrays, pointers, and derived types. Currently, an experimental tool has been implemented based on the proposal in order to demonstrate its efficacy in practice. The results have shown that SDART achieves higher branch coverage with a fewer number of test data in comparison with that of DART in practice.Keywords
Funding Information
- Vietnam National University, Hanoi (QG.16.31)
This publication has 20 references indexed in Scilit:
- Automated Coverage-Driven Test Data Generation Using Dynamic Symbolic Execution2014
- Symbolic execution for software testingCommunications of the ACM, 2013
- KLOVER: A Symbolic Execution and Automatic Test Generation Tool for C++ ProgramsLecture Notes in Computer Science, 2011
- Test Data Generation for Derived Types in C Program2009
- Z3: An Efficient SMT Solver2008
- DART2005
- PathCrawler: Automatic Generation of Path Tests by Combining Static and Dynamic Analysis2005
- CIL: Intermediate Language and Tools for Analysis and Transformation of C Programs2002
- Composite design patterns1997
- Symbolic execution and program testingCommunications of the ACM, 1976