In literature, we can find research tools to automatically generate test cases for RESTful APIs, addressing the specificity of this particular programming domain. However, no direct comparison of these tools is available to guide developers in deciding which tool best fits their REST API project. In this paper, we present the results of an empirical comparison of automated black-box test case generation approaches for REST APIs. We surveyed the available black-box testing tools that have been proposed in recent literature, finding four usable prototypes: RestTestGen, RESTler, bBOXRT and RESTest. We used these tools to generate test cases for 14 real-world REST services. Then, testing results have been analyzed and compared in terms of robustness (i.e., success rate) and test coverage. Among the considered tools, RESTler appears to be the most solid, able to successfully test all case studies (the other tools experienced crashes). Conversely, test cases generated by RestTestGen scored the highest coverage, suggesting that its testing strategy is the most effective in testing REST APIs.


翻译:在文献中,我们可以找到自动生成更新的API测试案例的研究工具,解决这一特定编程领域的特殊性。然而,无法对这些工具进行直接比较,以指导开发者决定哪个工具最适合他们的REST API项目。在本文中,我们介绍了对REST API自动黑盒测试案例生成方法进行的经验性比较的结果。我们调查了最近文献中提议的可用黑盒测试工具,发现了四种可用的原型:Restestegen、RESTler、BBBOXRT和RESTest。我们利用这些工具为14个真实世界REST服务生成了测试案例。然后,从强健性(即成功率)和测试范围的角度对测试结果进行了分析和比较。在考虑的工具中,RESTler似乎是最可靠的,能够成功测试所有案例研究(其他撞车工具 ) 。相反,RestestotingGen产生的测试案例获得了最高覆盖率,表明其测试策略在测试REST APIs时最为有效。

0
下载
关闭预览

相关内容

这个新版本的工具会议系列恢复了从1989年到2012年的50个会议的传统。工具最初是“面向对象语言和系统的技术”,后来发展到包括软件技术的所有创新方面。今天许多最重要的软件概念都是在这里首次引入的。2019年TOOLS 50+1在俄罗斯喀山附近举行,以同样的创新精神、对所有与软件相关的事物的热情、科学稳健性和行业适用性的结合以及欢迎该领域所有趋势和社区的开放态度,延续了该系列。 官网链接:http://tools2019.innopolis.ru/
专知会员服务
74+阅读 · 2021年6月7日
一图掌握《可解释人工智能XAI》操作指南
专知会员服务
58+阅读 · 2021年5月3日
强化学习最新教程,17页pdf
专知会员服务
168+阅读 · 2019年10月11日
【哈佛大学商学院课程Fall 2019】机器学习可解释性
专知会员服务
99+阅读 · 2019年10月9日
已删除
将门创投
4+阅读 · 2019年11月20日
Unsupervised Learning via Meta-Learning
CreateAMind
41+阅读 · 2019年1月3日
VIP会员
相关资讯
已删除
将门创投
4+阅读 · 2019年11月20日
Unsupervised Learning via Meta-Learning
CreateAMind
41+阅读 · 2019年1月3日
Top
微信扫码咨询专知VIP会员