RESTifAI:基于大语言模型的可重用REST API测试工作流
RESTifAI: LLM-Based Workflow for Reusable REST API Testing
AI总结:
RESTifAI是一种基于大语言模型的工具,用于生成可重用且适用于CI/CD的REST API测试,通过系统性构建测试场景并验证功能和鲁棒性。
摘要:
本文介绍了RESTifAI,一种基于大语言模型(LLM)生成可重用且适用于持续集成/持续交付(CI/CD)的REST API测试的工作流,遵循快乐路径方法。与现有工具主要关注内部服务器错误不同,RESTifAI系统性地构建有效的测试场景(快乐路径)并推导负面案例以验证预期功能(2xx响应)和对无效输入或业务规则违反的鲁棒性(4xx响应)。结果表明,RESTifAI在性能上与最新LLM工具(如AutoRestTest和LogiAgent)相当,同时解决了可重用性、 oracle复杂性和集成性方面的限制。为此,我们提供了常见的比较结果,并展示了该工具在工业服务中的适用性。如需工具演示,请参考https://www.youtube.com/watch?v=2vtQo0T0Lo4。RESTifAI在https://github.com/casablancahotelsoftware/RESTifAI上公开可用。
英文摘要:
With this paper, we introduce RESTifAI, an LLM-driven approach for generating reusable, CI/CD ready REST API tests, following the happy-path approach. Unlike existing tools that often focus primarily on internal server errors, RESTifAI systematically constructs valid test scenarios (happy paths) and derives negative cases to verify both intended functionality (2xx responses) and robustness against invalid inputs or business-rule violations (4xx responses). The results indicate that RESTifAI performs on par with the latest LLM tools, i.e., AutoRestTest and LogiAgent, while addressing limitations related to reusability, oracle complexity, and integration. To support this, we provide common comparative results and demonstrate the tool's applicability in industrial services. For tool demonstration, please refer to https://www.youtube.com/watch?v=2vtQo0T0Lo4. RESTifAI is publicly available at https://github.com/casablancahotelsoftware/RESTifAI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。