Juan Carlos Alonso

Juan Carlos Alonso

Auto-generated profile, based on publicly available information

Juan Carlos Alonso

Universidad de Sevilla

Research Focus & Metrics

Academic Career Length

6Years (2021-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
14 February 2022 in IEEE Transactions on Software Engineering
Verified
Journal Article
Closed access
JAJuan Carlos Alonso
Juan Carlos Alonso
AMAlberto Martin-Lopez
Alberto Martin-Lopez
SSSergio Segura
Sergio Segura
JGJose Maria Garcia
Jose Maria Garcia
ARAntonio Ruiz-Cortes
Antonio Ruiz-Cortes
Automated test case generation for web APIs is a thriving research topic, where test cases are frequently derived from the API specification. However, this process is only partially automated since testers are usually obliged to manually set meaningful valid test inputs for each input parameter. In this article, we present ARTE, an approach for the automated extraction of realistic test data for web APIs from knowledge bases like DBpedia. Specifically, ARTE leverages the specification of the API parameters to automatically search for realistic test inputs using natural language processing, search-based, and knowledge extraction techniques. ARTE has been integrated into RESTest, an open-source testing framework for RESTful APIs, fully automating the test case generation process. Evaluation results on 140 operations from 48 real-world web APIs show that ARTE can efficiently generate realistic test inputs for 64.9% of the target parameters, outperforming the state-of-the-art approach SAIGEN (31.8%). More importantly, ARTE supported the generation of over twice as many valid API calls (57.3%) as random generation (20%) and SAIGEN (26%), leading to a higher failure detection capability and uncovering several real-world bugs. These results show the potential of ARTE for enhancing existing web API testing tools, achieving an unprecedented level of automation.

11 December 2025 in ACM Transactions on Software Engineering and Methodology
Verified
Journal Article
Open access
JAJuan C. Alonso
Juan C. Alonso
MEMichael D. Ernst
Michael D. Ernst
SSSergio Segura
Sergio Segura
ARAntonio Ruiz-Cortés
Antonio Ruiz-Cortés
The number and complexity of test case generation tools for REST APIs have significantly increased in recent years. These tools excel in automating input generation but are limited by their test oracles, which can only detect crashes, regressions, and violations of API specifications or design best practices. This article introduces AGORA+, an approach for generating test oracles for REST APIs through the detection of invariants—output properties that should always hold. AGORA+ learns the expected behavior of an API by analyzing API requests and their corresponding responses. We enhanced the Daikon tool for dynamic detection of likely invariants, adding new invariant types and creating a front-end called Beet. Beet translates any OpenAPI specification and a set of API requests and responses into Daikon inputs. AGORA+ can detect 106 different types of invariants in REST APIs. We also developed PostmanAssertify, which converts the invariants identified by AGORA+ into executable JavaScript assertions. AGORA+ achieved a precision of 80% on 25 operations from 20 industrial APIs. It also identified 48% of errors systematically seeded in the outputs of the APIs under test. AGORA+ uncovered 32 bugs in popular APIs, including Amadeus, Deutschebahn, GitHub, Marvel, NYTimesBooks, and YouTube, leading to fixes and documentation updates.

20 February 2026 in Information and Software Technology
Verified
Journal Article
Open access
MRMiguel Romero-Arjona
Miguel Romero-Arjona
JPJosé A. Parejo
José A. Parejo
JAJuan C. Alonso
Juan C. Alonso
ASAna B. Sánchez
Ana B. Sánchez
AAAitor Arrieta
Aitor Arrieta
SSSergio Segura
Sergio Segura

18 August 2021
Verified
Conference Paper
Open access
JAJuan C. Alonso
Juan C. Alonso
Testing web APIs automatically requires generating input data values such as addressess, coordinates or country codes. Generating meaningful values for these types of parameters randomly is rarely feasible, which means a major obstacle for current test case generation approaches. In this paper, we present ARTE, the first semantic-based approach for the Automated generation of Realistic TEst inputs for web APIs. Specifically, ARTE leverages the specification of the API under test to search for meaningful test inputs for the API parameters in knowledge bases like DBpedia. Our approach has been integrated into RESTest, a state-of-the-art tool for API testing, achieving an unprecedented level of automation which allows to generate up to 100% more valid API calls than existing fuzzing techniques, 30% on average. Evaluation results on a set of 26 real-world APIs show that ARTE can generate realistic inputs for 7 out of every 10 parameters, outperforming related approaches.

25 July 2025
Verified
Book Chapter
Closed access
PDF file
FCFrancisco Javier Cavero
Francisco Javier Cavero
JAJuan C. Alonso
Juan C. Alonso
ARAntonio Ruiz-Cortés
Antonio Ruiz-Cortés

2 January 2026
Verified
Book Chapter
Closed access
PDF file
FCFrancisco Javier Cavero
Francisco Javier Cavero
JPJosé Antonio Parejo
José Antonio Parejo
JAJuan C. Alonso
Juan C. Alonso
ARAntonio Ruiz-Cortés
Antonio Ruiz-Cortés