Title :
Test Data Generation for Derived Types in C Program
Author :
Wang, Zheng ; Yu, Xiao ; Sun, Tao ; Pu, Geguang ; Ding, Zuohua ; Hu, Jueliang
Author_Institution :
Shanghai Key Lab. of Trustworthy Comput., East China Normal Univ., Shanghai, China
Abstract :
Test data generation is one of the important tasks during software testing. This paper proposes an approach to generating test cases automatically for the unit test of C programs with derived types including pointers, structures and arrays. Our approach combines symbolic execution and concrete execution. The approach captures operations on variables precisely by concrete execution, and thus it is capable of handling derived types. Benefited from symbolic execution, accessing variables as array index can be solved by a substitution strategy. The substitution strategy also translates a path constraint involving variables of derived type to the one containing only primitive variables. An implementation of this approach is integrated into our test case generation tool called CAUT. Experimental results show that our approach is effective to generate test data for derived types.
Keywords :
C language; data analysis; program testing; symbol manipulation; C program; concrete execution; data handling; derived type; software testing; symbolic execution; test data generation; Automatic testing; Concrete; Data structures; Laboratories; Logic testing; Programming; Software engineering; Software testing; Sun; System testing;
Conference_Titel :
Theoretical Aspects of Software Engineering, 2009. TASE 2009. Third IEEE International Symposium on
Conference_Location :
Tianjin
Print_ISBN :
978-0-7695-3757-3
DOI :
10.1109/TASE.2009.10