Abstract
Nowadays, REpresentational State Transfer Application Programming Interfaces (REST APIs) are widely used in web applications, hence a plethora of test cases are developed to validate the APIs calls. We propose a solution that automates the generation of test cases for REST APIs based on their specifications. In our approach, apart from the automatic generation of test cases, we provide an option for the user to influence the test case generation process. By adding user interaction, we aim to augment the automatic generation of APIs test cases with human testing expertise and specific context. We use the latest version of OpenAPI 3.x and a wide range of coverage metrics to analyze the functionality and performance of the generated test cases, and non-functional metrics to analyze the performance of the APIs. The experiments proved the effectiveness and practicability of our method.
Subject
Electrical and Electronic Engineering,Biochemistry,Instrumentation,Atomic and Molecular Physics, and Optics,Analytical Chemistry
Reference21 articles.
1. An Analysis of Public REST Web Service APIs
2. Review of Web Service Technologies: REST over SOAP;Toman;J. Al-Qadisiyah Comput. Sci. Math.,2020
3. RESTful or RESTless—Current State of Today’s Top Web APIs;Bülthoff,2014
Cited by
10 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Reducing Workload in Using AI-based API REST Test Generation;Proceedings of the 5th ACM/IEEE International Conference on Automation of Software Test (AST 2024);2024-04-15
2. CODA: an open-source platform for federated analysis and machine learning on distributed healthcare data;Journal of the American Medical Informatics Association;2023-12-21
3. Automated Black-Box Testing of RESTful APIs Using Enhanced Artificial Bee Colony;2023 International Conference on Advanced Enterprise Information System (AEIS);2023-12-01
4. Testing RESTful APIs: A Survey;ACM Transactions on Software Engineering and Methodology;2023-11-24
5. Specification-based Test Case Generation for C++ Engineering Software;2023 IEEE International Conference on Software Maintenance and Evolution (ICSME);2023-10-01