COTTAGE: A Consistency Based System for Test Data Generation
نویسندگان
چکیده
This paper presents a system, called COTTAGE, for automated test data generation of C programs. The main originality of our system is its ability to handle programs with oat variables as well as boolean and integer variables. It can also deal with arrays and procedure calls. The system is based on our previous work [25, 26]. A test program (with procedure calls) is represented by an Interprocedural Control Flow Graph (ICFG). Path coverage is the core of our approach. Given a speci ed path of the ICFG, a path constraint is derived and solved to obtain a test case. The constraint solving is carried out based on a consistency notion. For statement coverage, paths reaching a speci ed node are dynamically constructed. The COTTAGE system, a 13,000 Java lines software, implements our approach for C programs. For each generated test data, the system also automatically generates an instrumented C program, allowing the user to verify the correctness of the test data. Experimental results, including complex numerical programs from [23], demonstrate the feasability of the method and the efciency of the COTTAGE system, as well as its versatility and exibility to di erent classes of problems (integer and/or oat variables; arrays, procedures, path coverage, statement coverage).
منابع مشابه
COTTAGE: Test Data Generation based on Consistency Techniques
This paper presents a new approach for automated test data generation of imperative programs containing integer, boolean and/or oat variables. A test program (with procedure calls) is represented by an Interprocedural Control Flow Graph (ICFG). The classical testing criteria (statement, branch, and path coverage), widely used in unit testing, are extended to the ICFG. Path coverage is the core ...
متن کاملUsing the Modified Shuffled Frog Leaping Algorithm for Optimal Sizing and location of Distributed Generation Resources for Reliability Improvement
Restructuring the recent developments in the power system and problems arising from construction as well as the maintenance of large power plants lead to increase in using the Distributed Generation (DG) resources. DG units due to its specifications, technology and location network connectivity can improve system and load point reliability indices. In this paper, the allocation and sizing of di...
متن کاملAutomatic Test Data Generation for Programs with Integer and Float Variables
This paper presents a novel approach for automated test data generation of imperative programs containing integer, boolean and/or float variables. Our approach is based on consistency techniques integrating integer and float variables. We handle statement, branch and path coverage criteria. Our purpose is thus to automatically generate test data that will cause the program to execute a statemen...
متن کاملIvestigation of Entropy Generation in 3-D Laminar Forced Convection Flow over a Backward Facing Step with Bleeding
A numerical investigation of entropy generation in laminar forced convection of gas flow over a backward facing step in a horizontal duct under bleeding condition is presented. For calculation of entropy generation from the second law of thermodynamics in a forced convection flow, the velocity and temperature distributions are primary needed. For this purpose, the three-dimensional Cartesian co...
متن کاملSymbolic Test Case Generation for Time-Discrete Hybrid Systems
In this article we present a model-based test case specification and associated test data generation methods for embedded systems processing Boolean, integral and real-valued variables. Testing experts are relieved from the task of constructing input data to the system under test in an explicit way and manually calculating the expected reactions. Instead, test cases are specified by means of te...
متن کامل