Probabilistic Grammar-based Test Generation
Autor(en):
Zusammenfassung
Given a program that has been tested on some sample input(s), what does one test next? To further test the program, one needs to construct inputs that cover (new) input features, in a manner that is different from the initial samples. This talk presents an approach that learns from past test inputs to generate new but different inputs. To achieve this, we present an approach called inputs from hell which employs probabilistic context-free grammars to learn the distribution of input elements from sample inputs. In this work, we employ probabilistic grammars as input parsers and producers. Applying probabilistic grammars as input parsers, we learn the statistical distribution of input features in sample inputs. As a producer, probabilistic grammars ensure that generated inputs are syntactically correct by construction, and it controls the distribution of input elements by assigning probabilities to individual production rules. Thus, we create inputs that are dissimilar to the sample by inverting learned probabilities. In addition, we generate failure-inducing inputs by learning from inputs that caused failures in the past, this gives us inputs that share similar features and thus also have a high chance of triggering bugs. This approach is useful for bug reproduction and testing for patch completeness.
- Vollständige Referenz
- BibTeX
Soremekun, E., Pavese, E., Havrikov, N., Grunske, L. & Zeller, A.,
(2021).
Probabilistic Grammar-based Test Generation.
In:
Koziolek, A., Schaefer, I. & Seidl, C.
(Hrsg.),
Software Engineering 2021.
Bonn:
Gesellschaft für Informatik e.V..
(S. 97-98).
DOI: 10.18420/SE2021_36
@inproceedings{mci/Soremekun2021,
author = {Soremekun, Ezekiel AND Pavese, Esteban AND Havrikov, Nikolas AND Grunske, Lars AND Zeller, Andreas},
title = {Probabilistic Grammar-based Test Generation},
booktitle = {Software Engineering 2021},
year = {2021},
editor = {Koziolek, Anne AND Schaefer, Ina AND Seidl, Christoph} ,
pages = { 97-98 } ,
doi = { 10.18420/SE2021_36 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
author = {Soremekun, Ezekiel AND Pavese, Esteban AND Havrikov, Nikolas AND Grunske, Lars AND Zeller, Andreas},
title = {Probabilistic Grammar-based Test Generation},
booktitle = {Software Engineering 2021},
year = {2021},
editor = {Koziolek, Anne AND Schaefer, Ina AND Seidl, Christoph} ,
pages = { 97-98 } ,
doi = { 10.18420/SE2021_36 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
Sollte hier kein Volltext (PDF) verlinkt sein, dann kann es sein, dass dieser aus verschiedenen Gruenden (z.B. Lizenzen oder Copyright) nur in einer anderen Digital Library verfuegbar ist. Versuchen Sie in diesem Fall einen Zugriff ueber die verlinkte DOI: 10.18420/SE2021_36
Haben Sie fehlerhafte Angaben entdeckt? Sagen Sie uns Bescheid: Feedback abschicken
Mehr Information
DOI: 10.18420/SE2021_36
ISBN: 978-3-88579-704-3
ISSN: 1617-5468
Datum: 2021
Sprache:
(en)
(en)
Typ: Text/ConferencePaper

