Open Access. Powered by Scholars. Published by Universities.®

Physical Sciences and Mathematics Commons

Open Access. Powered by Scholars. Published by Universities.®

Software Engineering

PDF

Western University

2015

Code Coverage

Articles 1 - 1 of 1

Full-Text Articles in Physical Sciences and Mathematics

Generating Invalid Input Strings For Software Testing, Benjamin D. Revington Aug 2015

Generating Invalid Input Strings For Software Testing, Benjamin D. Revington

Electronic Thesis and Dissertation Repository

Grammar-based testing has interested the academic community for decades, but little work has been done with regards to testing with invalid input strings. For our research, we generated LR parse tables from grammars. We then generated valid and invalid strings based on coverage of these tables. We evaluated the effectiveness of these strings in terms of code coverage and fault detection by inputting them to subject programs which accept input based on the grammars. For a baseline, we then compared the effectiveness of these strings to a more general approach where the tokens making up each string are chosen randomly. …