1 / 12

Automatic Test Data Generation Using Constraint Solving Techniques

Automatic Test Data Generation Using Constraint Solving Techniques. Arnaud Gotlieb Bernard Botella Michel Rueher. Problem and Contribution. Problem Automatic Test Data Generation Leads to identify input values on which a selected point on a procedure is executed Main Contribution

valin
Download Presentation

Automatic Test Data Generation Using Constraint Solving Techniques

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Automatic Test Data Generation Using Constraint Solving Techniques Arnaud Gotlieb Bernard Botella Michel Rueher

  2. Problem and Contribution • Problem • Automatic Test Data Generation • Leads to identify input values on which a selected point on a procedure is executed • Main Contribution • A new method based on constraint solving techniques for automatic test data generation

  3. Key Points • Take advantage of constraint techniques when solving the constraint system • Global constraints used on preliminary steps to detect some non feasible paths • Partial consistency techniques help to reduce the domains of possible values of the test data

  4. Proposed Method • A procedure is statically transformed into a constraint system by the use of Static Single Assignment (SSA) form and control dependencies. • Result: Set of constraints (Kset) • Constraints generated for the entire procedure • Constraints specific to the selected point • Kset is solved to check whether there exists at least one feasible path which goes through the selected point. • Test data corresponding to one of these paths are generated. • Identify test data by using search methods based on enumeration and inference processes.

  5. Generation of Kset • Generation of the SSA form • Generation of a set of constraints corresponding to the procedure p (pKset(p)) • Generation of a set of constraints corresponding to the control dependencies of a selected point n (cKset(n)) • Kset(p, n) = pKset(p)  cKset(n)

  6. Control Flow Graphs path < 1, 2, 4, 5, 6 > is non-feasible. block 5 is control dependent on block 4

  7. SSA Form • SSA form is a semantically equivalent version of a procedure on which every variable has a unique definition and every use of a variable is reached by this definition. • SSA form(linear sequence of code) = renaming of the variables. • (i  i0, i  i1, …) • SSA form(control structures) = special assignments called -functions, in the junction nodes of the CFG. • A -function returns one of its arguments depending on the control flow.

  8. Example SSA form

  9. Generation of pKset • pKset(p) is a set of both atomic and global constraints associated with a procedure p. • Atomic constraint is a relation between logical variables. • Global constraints are designed to handle more efficiently set of atomic constraints. • Example of global constraint: • ELEMENT/3 2 : ELEMENT(k, L, v) constraints the kth argument of the list L to be equal to v. • Generation of pKset is driven by the syntax. • Different generation techniques for declaration, assignment and decision, conditional statement, loop statement, array and record,

  10. Generation of cKset • cKset(n) is the set of constraints of the statements and the branches on which n is control-dependent. • For example, node 5 is control-dependant on node 4: • cKset(5) = {j2 = 2}

  11. Example (Sets generated)

  12. Solving the Constraint System

More Related