paper-with-me

Papers

Improving Test Case Generation for REST APIs Through Hierarchical Clustering

2021-09-14 · Dimitri Stallenberg, Mitchell Olsthoorn, Annibale Panichella

With the ever-increasing use of web APIs in modern-day applications, it is becoming more important to test the system as a whole. In the last decade, tools and approaches have been proposed to automate the creation of system-level test cases for these APIs using evolutionary algorithms (EAs). One of the limiting factors of EAs is that the genetic operators (crossover and mutation) are fully randomized, potentially breaking promising patterns in the sequences of API requests discovered during the search. Breaking these patterns has a negative impact on the effectiveness of the test case generation process. To address this limitation, this paper proposes a new approach that uses agglomerative hierarchical clustering (AHC) to infer a linkage tree model, which captures, replicates, and preserves these patterns in new test cases. We evaluate our approach, called LT-MOSA, by performing an empirical study on 7 real-world benchmark applications w.r.t. branch coverage and real-fault detection capability. We also compare LT-MOSA with the two existing state-of-the-art white-box techniques (MIO, MOSA) for REST API testing. Our results show that LT-MOSA achieves a statistically significant increase in test target coverage (i.e., lines and branches) compared to MIO and MOSA in 4 and 5 out of 7 applications, respectively. Furthermore, LT-MOSA discovers 27 and 18 unique real-faults that are left undetected by MIO and MOSA, respectively.

📄 PDF Abstract BibTeX arXiv:2109.06655

Code (0)

등록된 구현이 없습니다.

Tasks

ClusteringEvolutionary AlgorithmsFault Detection

Similar Papers 제목 키워드 기반

Automated Test-Case Generation for REST APIs Using Model Inference Search Heuristic

2024-12-04 · Clinton Cao, Annibale Panichella, Sicco Verwer

The rising popularity of the microservice architectural style has led to a growing demand for automated testing approaches tailored to these systems. EvoMaster is a state-of-the-art tool that uses Evolutionary Algorithms…

Evolutionary Algorithms

A Framework for Testing and Adapting REST APIs as LLM Tools

2025-04-22 · Jayachandu Bandlamudi, Ritwik Chaudhuri, Neelamadhav Gantayat, Kushal Mukherjee 외

Large Language Models (LLMs) are enabling autonomous agents to perform complex workflows using external tools or functions, often provided via REST APIs in enterprise systems. However, directly utilizing these APIs as to…

Roleplaying with Structure: Synthetic Therapist-Client Conversation Generation from Questionnaires

2025-10-29 · Doan Nam Long Vu, Rui Tan, Lena Moench, Svenja Jule Francke 외 arxiv

Large Language Models (LLMs) are promising tools for synthetic data generation in mental health. However, privacy policies and restrictions forced previous work to rely mainly on generic information. We present a compreh…

Combining TSL and LLM to Automate REST API Testing: A Comparative Study

2025-09-05 · Thiago Barradas, Aline Paes, Vânia de Oliveira Neves arxiv

The effective execution of tests for REST APIs remains a considerable challenge for development teams, driven by the inherent complexity of distributed systems, the multitude of possible scenarios, and the limited time a…

Prompt Engineering

APIRL: Deep Reinforcement Learning for REST API Fuzzing

2024-12-20 · Myles Foley, Sergio Maffeis

REST APIs have become key components of web services. However, they often contain logic flaws resulting in server side errors or security vulnerabilities. HTTP requests are used as test cases to find and mitigate such is…

Deep Reinforcement Learningreinforcement-learningReinforcement Learning