Test data generation for derived types in C program

  • Zheng Wang*
  • , Xiao Yu
  • , Tao Sun
  • , Geguang Pu
  • , Zuohua Ding
  • , Jue Liang Hu
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

15 Scopus citations

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 1.Experimental results show that our approach is effective to generate test data for derived types.

Original languageEnglish
Title of host publicationProceedings - 2009 3rd IEEE International Symposium on Theoretical Aspects of Software Engineering, TASE 2009
Pages155-162
Number of pages8
DOIs
StatePublished - 2009
Event2009 3rd IEEE International Symposium on Theoretical Aspects of Software Engineering, TASE 2009 - Tianjin, China
Duration: 29 Jul 200931 Jul 2009

Publication series

NameProceedings - 2009 3rd IEEE International Symposium on Theoretical Aspects of Software Engineering, TASE 2009

Conference

Conference2009 3rd IEEE International Symposium on Theoretical Aspects of Software Engineering, TASE 2009
Country/TerritoryChina
CityTianjin
Period29/07/0931/07/09

Fingerprint

Dive into the research topics of 'Test data generation for derived types in C program'. Together they form a unique fingerprint.

Cite this