Title :
Generating String Test Data for Code Coverage
Author :
Beyene, Michael ; Andrews, James H.
Author_Institution :
Dept. of Comput. Sci., Univ. of Western Ontario, London, ON, Canada
Abstract :
String data has traditionally been difficult for test data generation tools to generate. Of particular concern are strings that conform to a given grammar, since coverage of grammar productions does not guarantee high code coverage or fault-finding ability. We address this problem by deriving Java classes from the grammatical categories in the grammar, and then using a collection of deterministic and met heuristic techniques to generate strings from them. We compare the code coverage of these techniques and the standard conformance test suites for the grammars. We conclude that the various techniques have complementary strengths, and that they can be usefully used in combination.
Keywords :
Java; grammars; program testing; Java classes; code coverage; fault-finding ability; grammar productions; grammatical categories; string test data; test data generation tools; Biological cells; Genetic algorithms; Grammar; HTML; Java; Software; Testing; Software testing; metaheuristic algorithms; string data generation; structural code coverage;
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
DOI :
10.1109/ICST.2012.107