Skip to Main content Skip to Navigation
New interface
Conference papers

Grammar-Based Testing using Realistic Domains in PHP

Ivan Enderlin 1, 2 Frédéric Dadeau 2, 1 Alain Giorgetti 2, 1 Fabrice Bouquet 2, 1 
1 CASSIS - Combination of approaches to the security of infinite states systems
FEMTO-ST - Franche-Comté Électronique Mécanique, Thermique et Optique - Sciences et Technologies (UMR 6174), Inria Nancy - Grand Est, LORIA - FM - Department of Formal Methods
Abstract : This paper presents an integration of grammar-based testing in a framework for contract-based testing in PHP. It relies on the notion of gtypes, that make it possible to assign domains to data, by means of contract assertions written inside the source code of a PHP application. Then a test generation tool uses the contracts to generate relevant test data for unit testing. Finally a runtime assertion checker validates the assertions inside the contracts (among others membership of data to gtypes) to establish the conformance verdict. We introduce here the possibility to generate and validate complex textual data specified by a grammar written in a dedicated grammar description language. This approach is tool-supported and experimented on the validation of web applications.
Document type :
Conference papers
Complete list of metadata
Contributor : Alain Giorgetti Connect in order to contact the contributor
Submitted on : Tuesday, November 13, 2012 - 11:06:02 AM
Last modification on : Friday, January 21, 2022 - 3:09:36 AM

Links full text



Ivan Enderlin, Frédéric Dadeau, Alain Giorgetti, Fabrice Bouquet. Grammar-Based Testing using Realistic Domains in PHP. ICST 2012 - IEEE Fifth International Conference on Software Testing, Verification and Validation, Apr 2012, Montreal, Canada. pp.509-518, ⟨10.1109/ICST.2012.136⟩. ⟨hal-00751321⟩



Record views