paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Improving Test Case Generation for REST APIs Through Hierarchical Clustering

通过层次聚类改进 REST API 的测试用例生成
ASE 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE)2021匹配度 1/10 · 论文聚焦 REST API 测试用例生成与进化算法,使用层次聚类保持请求序列模式;与用户关注的静态分析、Agentic/LLM 程序分析、浮点程序分析或贝叶斯程序分析无直接交集。引用 32 inbox
Dimitri Stallenberg, Mitchell Olsthoorn, Annibale Panichella
crossref: 2026-09-12

AI 速览

一句话:提出 LT-MOSA,用凝聚层次聚类学习并保留 REST API 请求序列模式,提升测试覆盖与真实故障发现。

针对 REST API 系统级测试,进化算法中的交叉与变异算子完全随机,可能破坏搜索中发现的有潜力的 API 请求序列模式,降低测试用例生成效果。本文提出 LT-MOSA:利用凝聚层次聚类(AHC)推断连接树模型,捕获、复制并保留这些请求序列模式,并据此生成新测试用例。作者在 7 个真实基准应用上以分支覆盖率和真实故障检测能力进行实证研究,并与先进白盒技术 MIO、MOSA 比较。结果显示,LT-MOSA 在 7 个应用中分别有 4 个和 5 个应用在行/分支测试目标覆盖上显著优于 MIO 和 MOSA;还发现了 MIO 与 MOSA 未检测到的 27 个和 18 个唯一真实故障。

问题
进化算法生成的 REST API 测试用例中,随机交叉与变异可能破坏已发现的有潜力的请求序列模式,限制测试覆盖与故障检测效果。
方法
提出 LT-MOSA,使用凝聚层次聚类(AHC)从已有测试用例中推断连接树模型,以捕获、复制并保留请求序列模式来指导新测试用例生成。
评估
在 7 个真实 REST API 基准应用上,以行/分支覆盖率和真实故障检测能力评估,并与 MIO、MOSA 比较;LT-MOSA 在多数应用上覆盖更优,并发现更多唯一真实故障。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6475,
  title = {Improving Test Case Generation for REST APIs Through Hierarchical Clustering},
  author = {Dimitri Stallenberg and Mitchell Olsthoorn and Annibale Panichella},
  booktitle = {ASE},
  year = {2021},
  doi = {10.1109/ase51524.2021.9678586}
}