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

REST API的自动化测试生成:还没有时间进行Rest

Automated Test Generation for REST APIs: No Time to Rest Yet

Myeongsoo Kim, Qi Xin, Saurabh Sinha, Alessandro Orso

摘要:

现代Web服务通常为客户端提供REST API以访问其功能。这些API为自动化测试带来了独特的挑战和机遇,推动了最近许多技术和工具的开发,这些技术和工具使用各种策略为API端点生成测试用例。理解这些技术如何相互比较是困难的,因为它们是在不同的基准上进行评估的,使用不同的指标。为了填补这一空白,我们进行了一项实证研究,旨在了解REST API自动化测试的前景,并指导该领域的未来研究。我们首先通过系统的选择过程确定了一组10个最先进的REST API测试工具,其中包括由研究人员和实践者开发的工具。然后,我们将这些工具应用于20个真实世界的开源RESTful服务的基准测试,并根据实现的代码覆盖率和触发的独特故障来分析它们的性能。这种分析使我们能够确定所考虑的工具及其基本策略的优点,缺点和局限性,以及我们的研究结果对这一领域未来研究的影响。

英文摘要:

Modern web services routinely provide REST APIs for clients to access their functionality. These APIs present unique challenges and opportunities for automated testing, driving the recent development of many techniques and tools that generate test cases for API endpoints using various strategies. Understanding how these techniques compare to one another is difficult, as they have been evaluated on different benchmarks and using different metrics. To fill this gap, we performed an empirical study aimed to understand the landscape in automated testing of REST APIs and guide future research in this area. We first identified, through a systematic selection process, a set of 10 state-of-the-art REST API testing tools that included tools developed by both researchers and practitioners. We then applied these tools to a benchmark of 20 real-world open-source RESTful services and analyzed their performance in terms of code coverage achieved and unique failures triggered. This analysis allowed us to identify strengths, weaknesses, and limitations of the tools considered and of their underlying strategies, as well as implications of our findings for future research in this area.

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

↑