paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Using LLM for Mining and Testing Constraints in API Testing

使用LLM挖掘与测试API测试中的约束
ASE Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering2024匹配度 3/10 · 该论文用LLM挖掘REST API隐式约束以改进黑盒测试,属于LLM辅助软件测试,与用户关注的静态程序分析、Agentic程序分析、浮点/贝叶斯程序分析等核心方向交集较弱。虽然涉及LLM作为工具,但并非面向静态分析或形式化验证,研究问题也偏API测试。引用 4 inbox
Hieu Huynh, Quoc-Tri Le, Tien N. Nguyen, Vu Nguyen
crossref: 2026-09-12

AI 速览

一句话:利用LLM挖掘API隐式约束并用于REST API测试,弥补状态码与模式校验的不足。

REST API 测试对现代 Web 服务的可靠性与性能至关重要,其中黑盒测试依赖 OpenAPI 规范(OAS)生成测试用例与数据。然而,现有 API 测试自动化方法主要局限于状态码校验与响应模式(schema)校验:前者检查每个 HTTP 请求是否返回状态码,后者检查响应中必填属性是否存在、数据类型是否与规范一致。这类检查难以覆盖请求与响应中的深层语义约束。本文(标题为《Using LLM for Mining and Testing Constraints in API Testing》)提出借助大语言模型从 API 规范中挖掘隐式约束,并将这些约束用于 API 测试,以弥补仅做状态码与模式校验的不足。摘要主要给出了动机与问题界定,未详细报告具体方法与实验结果。

问题
现有 REST API 黑盒测试自动化主要只做 HTTP 状态码校验与响应 schema 校验,无法检验 API 数据交换与集成中更深层的语义约束。
方法
利用大语言模型从 OpenAPI 规范(OAS)等信息中挖掘 API 约束,并将挖掘出的约束用于生成或增强 API 测试。
评估
摘要未给出具体评估设置与结果;从摘要看,其目标是对照并补充仅做状态码与模式校验的现有自动化方法。
原文摘要(Abstract)

Testing Representational State Transfer (REST) APIs is crucial for ensuring the reliability and performance of APIs, which are essential to modern web services. This testing process helps identify and resolve issues related to data exchange and integration with other systems. Among the various API testing techniques, black-box testing relies on the OpenAPI Specification (OAS) to generate test cases and data. However, current API test automation methods are primarily focused on status code [10] and schema validation [1]. Status code validation involves ensuring that each HTTP request returns a response with a status code, a three-digit integer that indicates the outcome of the request. Schema validation verifies the correctness of the response data by comparing it to the schema. This includes checking that all required properties are present and that data types of these properties align with the schema specified.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8332,
  title = {Using LLM for Mining and Testing Constraints in API Testing},
  author = {Hieu Huynh and Quoc-Tri Le and Tien N. Nguyen and Vu Nguyen},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695341}
}