Effective and Efficient API Misuse Detection via Exception Propagation and Search-Based Testing

Conference Paper (2019)
Author(s)

M. Kechagia (University College London)

Xavier DEVROEY (TU Delft - Software Engineering)

Annibale Panichella (TU Delft - Software Engineering)

Georgios Gousios (TU Delft - Software Engineering)

Arie van Van Deursen (TU Delft - Software Technology)

Research Group
Software Engineering
Copyright
© 2019 M. Kechagia, Xavier Devroey, A. Panichella, G. Gousios, A. van Deursen
DOI related publication
https://doi.org/10.1145/3293882.3330552
More Info
expand_more
Publication Year
2019
Language
English
Copyright
© 2019 M. Kechagia, Xavier Devroey, A. Panichella, G. Gousios, A. van Deursen
Research Group
Software Engineering
Pages (from-to)
192-203
ISBN (electronic)
978-1-4503-6224-5
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

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.

Files

Catcher.pdf
(pdf | 1.03 Mb)
License info not available