蚁群用于RESTful API的自动化黑盒测试

Q4 Earth and Planetary Sciences 世界地震工程 Pub Date : 2022-12-31 DOI:10.37394/232025.2022.4.10
S. Ahmed, A. Hamdy
{"title":"蚁群用于RESTful API的自动化黑盒测试","authors":"S. Ahmed, A. Hamdy","doi":"10.37394/232025.2022.4.10","DOIUrl":null,"url":null,"abstract":"Recently, RESTful APIs are widely utilized in a variety of web applications; developers utilize Restful APIs as a blacked-out component in micro-services. Black box testing for Restful APIs is essential as neither of the API’s source code nor its compiled binary is always available for public access. A handful number of research studies were conducted for the automatic generation of test suite for RESTful APIs based on black box testing. However, to our knowledge, none of them considered the test coverage criteria or the test suite optimization. This paper proposed adapting the Artificial Bee Colony (ABC) swarm intelligence algorithm for the automatic generation of test suites for Restful APIs based on Open API Specification (OAS); whilst also maximizing the API test coverage (path, operation, parameter, input value and status code). Experiments were conducted on six APIs that differ from each other in the number of routes, operation types, input values, and how well the API is documented. The experiments showed that the ABC algorithm can generate test suites that achieve high coverage criteria.","PeriodicalId":52482,"journal":{"name":"世界地震工程","volume":"9 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2022-12-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Ant Bee Colony for Automated black-box testing of RESTful API\",\"authors\":\"S. Ahmed, A. Hamdy\",\"doi\":\"10.37394/232025.2022.4.10\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Recently, RESTful APIs are widely utilized in a variety of web applications; developers utilize Restful APIs as a blacked-out component in micro-services. Black box testing for Restful APIs is essential as neither of the API’s source code nor its compiled binary is always available for public access. A handful number of research studies were conducted for the automatic generation of test suite for RESTful APIs based on black box testing. However, to our knowledge, none of them considered the test coverage criteria or the test suite optimization. This paper proposed adapting the Artificial Bee Colony (ABC) swarm intelligence algorithm for the automatic generation of test suites for Restful APIs based on Open API Specification (OAS); whilst also maximizing the API test coverage (path, operation, parameter, input value and status code). Experiments were conducted on six APIs that differ from each other in the number of routes, operation types, input values, and how well the API is documented. The experiments showed that the ABC algorithm can generate test suites that achieve high coverage criteria.\",\"PeriodicalId\":52482,\"journal\":{\"name\":\"世界地震工程\",\"volume\":\"9 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-12-31\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"世界地震工程\",\"FirstCategoryId\":\"1087\",\"ListUrlMain\":\"https://doi.org/10.37394/232025.2022.4.10\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"Earth and Planetary Sciences\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"世界地震工程","FirstCategoryId":"1087","ListUrlMain":"https://doi.org/10.37394/232025.2022.4.10","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"Earth and Planetary Sciences","Score":null,"Total":0}
引用次数: 0

摘要

最近,RESTful api被广泛应用于各种web应用程序中;开发人员利用Restful api作为微服务中的“黑掉”组件。Restful API的黑盒测试是必不可少的,因为API的源代码和编译后的二进制代码都不总是可供公众访问。针对基于黑盒测试的RESTful api测试套件的自动生成,进行了大量的研究。然而,据我们所知,他们都没有考虑测试覆盖标准或测试套件优化。本文提出了基于开放API规范(Open API Specification, OAS),将人工蜂群智能算法应用于Restful API测试套件的自动生成;同时最大化API测试覆盖率(路径、操作、参数、输入值和状态码)。实验在六个API上进行,这些API在路由数量、操作类型、输入值以及API的文档记录方面各不相同。实验表明,ABC算法可以生成达到高覆盖率标准的测试套件。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Ant Bee Colony for Automated black-box testing of RESTful API
Recently, RESTful APIs are widely utilized in a variety of web applications; developers utilize Restful APIs as a blacked-out component in micro-services. Black box testing for Restful APIs is essential as neither of the API’s source code nor its compiled binary is always available for public access. A handful number of research studies were conducted for the automatic generation of test suite for RESTful APIs based on black box testing. However, to our knowledge, none of them considered the test coverage criteria or the test suite optimization. This paper proposed adapting the Artificial Bee Colony (ABC) swarm intelligence algorithm for the automatic generation of test suites for Restful APIs based on Open API Specification (OAS); whilst also maximizing the API test coverage (path, operation, parameter, input value and status code). Experiments were conducted on six APIs that differ from each other in the number of routes, operation types, input values, and how well the API is documented. The experiments showed that the ABC algorithm can generate test suites that achieve high coverage criteria.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
世界地震工程
世界地震工程 Earth and Planetary Sciences-Geotechnical Engineering and Engineering Geology
CiteScore
0.80
自引率
0.00%
发文量
4131
期刊介绍:
期刊最新文献
Multiple Tuned Mass Dampers and Double Tuned Mass Dampers for Soft Story Structures: A Comparative Study Random Furrowing for a Stochastic Unit Commitment Solution Feasibility Study and Design of a Stand-alone Floating Photovoltaic Structure for Toshka Lake Application of Analytical Hierarchy Process (AHP) in the Selection of a Flexible Production System Pair Programming – Cubic Prediction Model Results for Random Pairs and Individual Junior Programmers
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1