arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.08600cs.SEcs.AI
收藏

AutoRestTest:一种使用 LLMs 和 MARL 的自动化 REST API 测试工具

AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL

Georgia Institute of Technology(佐治亚理工学院);IBM Research(IBM研究院)

Tyler Stennett, Myeongsoo Kim, Saurabh Sinha, Alessandro Orso

AI总结:

本文提出 AutoRestTest 工具,结合语义属性依赖图(SPDG)、多智能体强化学习(MARL)和大语言模型(LLMs),通过五个专门智能体生成操作序列与参数组合,有效解决 REST API 测试中代码覆盖率低和故障检测不佳的问题。

摘要:

随着 REST APIs 在现代 Web 服务中变得普及,对这些 API 进行全面测试日益关键。由于操作、参数和参数值及其依赖关系和约束条件的搜索空间庞大,当前的测试工具通常实现较低的代码覆盖率,导致故障检测效果不佳。为了解决这一局限性,我们提出了 AutoRestTest,这是一种新颖的工具,它将语义属性依赖图(SPDG)与多智能体强化学习(MARL)和大语言模型(LLMs)相结合,用于有效的 REST API 测试。AutoRestTest 使用 SPDG 确定依赖于操作的参数,并采用五个专门的智能体(操作、参数、值、依赖关系和头部)来识别操作的依赖关系,并生成操作序列、参数组合和值。通过直观的命令行界面,用户可以轻松配置和监控测试,包括成功的操作计数、检测到的唯一服务器错误以及所用时间。完成时,AutoRestTest 会生成一份详细报告,突出显示检测到的错误和执行的操作。在本文中,我们介绍了我们的工具并展示了初步发现,演示视频可在 https://www.youtube.com/watch?v=VVus2W8rap8 查看。

英文摘要:

As REST APIs have become widespread in modern web services, comprehensive testing of these APIs is increasingly crucial. Because of the vast search space of operations, parameters, and parameter values, along with their dependencies and constraints, current testing tools often achieve low code coverage, resulting in suboptimal fault detection. To address this limitation, we present AutoRestTest, a novel tool that integrates the Semantic Property Dependency Graph (SPDG) with Multi-Agent Reinforcement Learning (MARL) and large language models (LLMs) for effective REST API testing. AutoRestTest determines operation-dependent parameters using the SPDG and employs five specialized agents (operation, parameter, value, dependency, and header) to identify dependencies of operations and generate operation sequences, parameter combinations, and values. Through an intuitive command-line interface, users can easily configure and monitor tests with successful operation count, unique server errors detected, and time elapsed. Upon completion, AutoRestTest generates a detailed report highlighting errors detected and operations exercised. In this paper, we introduce our tool and present preliminary findings, with a demonstration video available at https://www.youtube.com/watch?v=VVus2W8rap8.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑