kirancodes.me
To Proof Maintenance & Beyond!

Diversity-based web test generation

Matteo Biagiola, Andrea Stocco, Filippo Ricca, Paolo Tonella

Abstract

Existing web test generators derive test paths from a navigational model of the web application, completed with either manually or randomly generated input values. However, manual test data selection is costly, while random generation often results in infeasible input sequences, which are rejected by the application under test. Random and search-based generation can achieve the desired level of model coverage only after a large number of test execution at- tempts, each slowed down by the need to interact with the browser during test execution. In this work, we present a novel web test generation algorithm that pre-selects the most promising candidate test cases based on their diversity from previously generated tests. As such, only the test cases that explore diverse behaviours of the application are considered for in-browser execution. We have implemented our approach in a tool called DIG. Our empirical evaluation on six real-world web applications shows that DIG achieves higher coverage and fault detection rates significantly earlier than crawling-based and search-based web test generators.

BibTeX
@inproceedings{Biagiola-al:FSE19,
  author    = {Matteo Biagiola and
               Andrea Stocco and
               Filippo Ricca and
               Paolo Tonella},
  title     = {Diversity-based web test generation},
  booktitle = {{ESEC/SIGSOFT} {FSE}},
  pages     = {142--153},
  publisher = {{ACM}},
  year      = {2019},
}

Related papers