Automated Specification-Based Testing of REST APIs

Autor: Ovidiu Baniaș, Diana Florea, Robert Gyalai, Daniel-Ioan Curiac
Jazyk: angličtina
Rok vydání: 2021
Předmět:
Zdroj: Sensors, Vol 21, Iss 16, p 5375 (2021)
Druh dokumentu: article
ISSN: 1424-8220
DOI: 10.3390/s21165375
Popis: 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.
Databáze: Directory of Open Access Journals