@misc{8788, keywords = {Conference}, author = {Matthieu Carlier and Catherine Dubois and Arnaud Gotlieb}, title = {A First Step in the Design of a Formally Verified Constraint-Based Testing Tool: FocalTest}, abstract = {Constraint-based test data generators rely on SMT or constraint solvers to automatically generate test data (e.g., Pex, Sage, Gatel, Path\-Crawler, Euclide, etc.). However, for some test data generation requests corresponding to particular testing objectives, these tools may fail to deliver the expected test data because they rather focus on efficiency rather than correction and completeness. In our work, we adopt an opposite view in the development of FocalTest, a test data generation tool for Focalize programs. The goal of the tool is to generate an MC/DC-compliant set of test data over the precondition of user-defined program properties. The development of such a correct-by-construction test data generator requires 1) to provide a formally verified translation of Focalize programs and properties into constraint systems; 2) to introduce a formally verified constraint solver able to solve those constraint systems. This paper is concerned with the first step only where we formally demonstrate with Coq the correctness of the translation of an intermediate functional language into a constraint system. This objective requires to formally define the operational semantics of the source language that features the manipulation of concrete data types via pattern-matching and function calls, constructions that are mirrored in the constraint language. Although such a semantics-oriented formalization is only a first step of a larger goal which is to provide a formally verified constraint-based testing tool, we argue that it is an important contribution to the building of more robust software testing tools.}, year = {2012}, journal = {Proceedings of the Tests And Proofs Conference (TAP 2012), Prague, Czech Republic}, volume = {7305}, pages = {35-50}, publisher = {Springer Berlin Heidelberg}, address = {Berlin Heidelberg}, doi = {10.1007/978-3-642-30473-6\_5}, editor = {Jacques Brucker}, }