Efficient penetration of API sequences to test stateful RESTful services

Koji Yamamoto
{"title":"Efficient penetration of API sequences to test stateful RESTful services","authors":"Koji Yamamoto","doi":"10.1109/ICWS53863.2021.00101","DOIUrl":null,"url":null,"abstract":"We have improved an approach for listing API sequences using API specification documents to make combinatorial testing for remote services to which requests are sent using APIs such as REST, gRPC, and WSDL. The proposed approach performs a depth-first, backward, all-at-once search rather than a breadth-first, forward, one-by-one search which was the strategy of previous studies. Our proposed approach parses an API specification document and creates a directed tree that represents a partial order of calls of APIs to collect values demanded by each target API. The approach calculates the leading-following relations of APIs by manipulating a matrix that represents the relations of APIs and named values that mediate the relations. We applied our proposed approach to a practical service, GitLab. We obtained the result that the approach lists the longer executable API sequences that can visit more methods in service implementation than the approaches of existing work without listing a large number of sequences.","PeriodicalId":213320,"journal":{"name":"2021 IEEE International Conference on Web Services (ICWS)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE International Conference on Web Services (ICWS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICWS53863.2021.00101","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

We have improved an approach for listing API sequences using API specification documents to make combinatorial testing for remote services to which requests are sent using APIs such as REST, gRPC, and WSDL. The proposed approach performs a depth-first, backward, all-at-once search rather than a breadth-first, forward, one-by-one search which was the strategy of previous studies. Our proposed approach parses an API specification document and creates a directed tree that represents a partial order of calls of APIs to collect values demanded by each target API. The approach calculates the leading-following relations of APIs by manipulating a matrix that represents the relations of APIs and named values that mediate the relations. We applied our proposed approach to a practical service, GitLab. We obtained the result that the approach lists the longer executable API sequences that can visit more methods in service implementation than the approaches of existing work without listing a large number of sequences.
有效地渗透API序列以测试有状态RESTful服务
我们改进了一种使用API规范文档列出API序列的方法,以便对使用REST、gRPC和WSDL等API向其发送请求的远程服务进行组合测试。该方法采用深度优先、向后、一次性搜索的方法,而不是以往研究采用的宽度优先、向前、逐一搜索的方法。我们建议的方法解析API规范文档,并创建一个有向树,该树表示API调用的部分顺序,以收集每个目标API所需的值。该方法通过操作表示api关系的矩阵和中介关系的命名值来计算api的前导-后导关系。我们将我们提出的方法应用到一个实际的服务GitLab中。我们得到的结果是,该方法列出了较长的可执行API序列,这些序列可以访问服务实现中的更多方法,而不需要列出大量序列。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信