Automated Specification-Based Testing of REST APIs

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.

Medienart:

E-Artikel

Erscheinungsjahr:

2021

Erschienen:

2021

Enthalten in:

Zur Gesamtaufnahme - volume:21

Enthalten in:

Sensors (Basel, Switzerland) - 21(2021), 16 vom: 09. Aug.

Sprache:

Englisch

Beteiligte Personen:

Baniaș, Ovidiu [VerfasserIn]
Florea, Diana [VerfasserIn]
Gyalai, Robert [VerfasserIn]
Curiac, Daniel-Ioan [VerfasserIn]

Links:

Volltext

Themen:

Automatic test case generation
Journal Article
OpenAPI 3.x
REST API
Software testing
Specification-based testing

Anmerkungen:

Date Completed 31.08.2021

Date Revised 31.08.2021

published: Electronic

Citation Status MEDLINE

doi:

10.3390/s21165375

funding:

Förderinstitution / Projekttitel:

PPN (Katalog-ID):

NLM32993645X