DocumentCode :
2088471
Title :
Grammar-Based Testing Using Realistic Domains in PHP
Author :
Enderlin, Ivan ; Dadeau, Frédéric ; Giorgetti, Alain ; Bouquet, Fabrice
Author_Institution :
Inst. FEMTO-ST, Univ. of Franche-Comte, Besancon, France
fYear :
2012
fDate :
17-21 April 2012
Firstpage :
509
Lastpage :
518
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.
Keywords :
Internet; conformance testing; grammars; program testing; program verification; source coding; specification languages; PHP application; Web applications; complex textual data validation; conformance verdict; contract assertion validation; contract-based testing; dedicated grammar description language; grammar-based testing; realistic domain; runtime assertion checker; source code; test generation tool; unit testing; Computational modeling; Contracts; Electronic mail; Generators; Grammar; Syntactics; Testing; Grammar-based testing; PHP; contracts; random generation; realistic domains; rule coverage;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Testing, Verification and Validation (ICST), 2012 IEEE Fifth International Conference on
Conference_Location :
Montreal, QC
Print_ISBN :
978-1-4577-1906-6
Type :
conf
DOI :
10.1109/ICST.2012.136
Filename :
6200148
Link To Document :
بازگشت