Effective and efficient API misuse detection via exception propagation and search-based testing

Maria Kechagia, Xavier Devroey, Annibale Panichella, Georgios Gousios, Arie van Deursen

Résultats de recherche: Contribution dans un livre/un catalogue/un rapport/dans les actes d'une conférenceArticle dans les actes d'une conférence/un colloque

Résumé

Application Programming Interfaces (APIs) typically come with (implicit) usage constraints. The violations of these constraints (API misuses) can lead to software crashes. Even though there are several tools that can detect API misuses, most of them suffer from a very high rate of false positives. We introduce Catcher, a novel API misuse detection approach that combines static exception propagation analysis with automatic search-based test case generation to effectively and efficiently pinpoint crash-prone API misuses in client applications. We validate Catcher against 21 Java applications, targeting misuses of the Java platform’s API. Our results indicate that Catcher is able to generate test cases that uncover 243 (unique) API misuses that result in crashes. Our empirical evaluation shows that Catcher can detect a large number of misuses (77 cases) that would remain undetected by the traditional coverage-based test case generator EvoSuite. Additionally, on average, Catcher is eight times faster than EvoSuite in generating test cases for the identified misuses. Finally, we find that the majority of the exceptions triggered by Catcher are unexpected to developers, i.e., not only unhandled in the source code but also not listed in the documentation of the client applications.

langue originaleAnglais
titreISSTA 2019 - Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis
rédacteurs en chefDongmei Zhang, Anders Moller
Lieu de publicationNew York, New York, USA
EditeurACM Press
Pages192-203
Nombre de pages12
ISBN (Electronique)9781450362245
ISBN (imprimé)9781450362245
Les DOIs
Etat de la publicationPublié - 10 juil. 2019
Modification externeOui

Série de publications

NomISSTA 2019 - Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis

Empreinte digitale Examiner les sujets de recherche de « Effective and efficient API misuse detection via exception propagation and search-based testing ». Ensemble, ils forment une empreinte digitale unique.

  • Contient cette citation

    Kechagia, M., Devroey, X., Panichella, A., Gousios, G., & van Deursen, A. (2019). Effective and efficient API misuse detection via exception propagation and search-based testing. Dans D. Zhang, & A. Moller (eds.), ISSTA 2019 - Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis (p. 192-203). (ISSTA 2019 - Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis). ACM Press. https://doi.org/10.1145/3293882.3330552