paperbot · PL 论文追踪

全部论文 待读 收藏

P2 RESTest: automated black-box testing of RESTful web APIs

RESTest:RESTful Web API 的自动化黑盒测试
ISSTA Proceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis2021匹配度 1/10 · 该论文研究的是基于 API 规约的 RESTful Web API 黑盒测试与测试用例生成,属于软件测试方向,与用户关注的静态分析、浮点程序分析、贝叶斯程序分析以及 LLM/Agent 与程序分析的交叉均无直接关系。引用 73 inbox
Alberto Martin-Lopez, Sergio Segura, Antonio Ruiz-Cortés
crossref: 2026-09-12

AI 速览

一句话:提出开源黑盒测试框架 RESTest,支持基于 API 规约的多种测试用例生成与在线持续测试。

RESTful API 在软件集成中至关重要,因此需要充分的测试。然而,现有自动化测试用例生成工具虽展现出潜力,但大多依赖随机输入(即 fuzzing),限制了其适用性。本文提出 RESTest,一个面向 RESTful Web API 的开源黑盒测试框架。RESTest 基于 API 规约,支持使用多种测试技术生成测试用例,包括 fuzzing 和基于约束的测试等;它被设计为可扩展框架,能够方便地加入新的测试用例生成器以及面向不同编程语言的测试写入器。作者在离线和在线两种场景下评估该工具:离线场景表明 RESTest 能高效生成真实的测试用例(测试输入与测试预言),并发现真实 API 中的缺陷;在线场景则展示了其作为持续测试与监控框架的能力。

问题
RESTful API 测试至关重要,但现有自动化测试用例生成工具多依赖随机 fuzzing,导致适用性和有效性受限。
方法
提出开源黑盒测试框架 RESTest,基于 API 规约支持 fuzzing、基于约束的测试等多种测试用例生成技术,并允许扩展新的生成器和不同语言的测试写入器。
评估
在离线和在线两类场景中评估:离线验证其生成真实测试用例并发现真实 API 缺陷的能力,在线展示其作为持续测试与监控框架的功能。
原文摘要(Abstract)

Testing RESTful APIs thoroughly is critical due to their key role in software integration. Existing tools for the automated generation of test cases in this domain have shown great promise, but their applicability is limited as they mostly rely on random inputs, i.e., fuzzing. In this paper, we present RESTest, an open source black-box testing framework for RESTful web APIs. Based on the API specification, RESTest supports the generation of test cases using different testing techniques such as fuzzing and constraint-based testing, among others. RESTest is developed as a framework and can be easily extended with new test case generators and test writers for different programming languages. We evaluate the tool in two scenarios: offline and online testing. In the former, we show how RESTest can efficiently generate realistic test cases (test inputs and test oracles) that uncover bugs in real-world APIs. In the latter, we show RESTest's capabilities as a continuous testing and monitoring framework. Demo video: https://youtu.be/1f_tjdkaCKo.

链接与引用

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

BibTeX
@inproceedings{paperbot6691,
  title = {RESTest: automated black-box testing of RESTful web APIs},
  author = {Alberto Martin-Lopez and Sergio Segura and Antonio Ruiz-Cortés},
  booktitle = {ISSTA},
  year = {2021},
  doi = {10.1145/3460319.3469082}
}