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] |
---|
Links: |
---|
Themen: |
Automatic test case generation |
---|
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 |
---|
LEADER | 01000naa a22002652 4500 | ||
---|---|---|---|
001 | NLM32993645X | ||
003 | DE-627 | ||
005 | 20231225210215.0 | ||
007 | cr uuu---uuuuu | ||
008 | 231225s2021 xx |||||o 00| ||eng c | ||
024 | 7 | |a 10.3390/s21165375 |2 doi | |
028 | 5 | 2 | |a pubmed24n1099.xml |
035 | |a (DE-627)NLM32993645X | ||
035 | |a (NLM)34450820 | ||
035 | |a (PII)5375 | ||
040 | |a DE-627 |b ger |c DE-627 |e rakwb | ||
041 | |a eng | ||
100 | 1 | |a Baniaș, Ovidiu |e verfasserin |4 aut | |
245 | 1 | 0 | |a Automated Specification-Based Testing of REST APIs |
264 | 1 | |c 2021 | |
336 | |a Text |b txt |2 rdacontent | ||
337 | |a ƒaComputermedien |b c |2 rdamedia | ||
338 | |a ƒa Online-Ressource |b cr |2 rdacarrier | ||
500 | |a Date Completed 31.08.2021 | ||
500 | |a Date Revised 31.08.2021 | ||
500 | |a published: Electronic | ||
500 | |a Citation Status MEDLINE | ||
520 | |a 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 | ||
650 | 4 | |a Journal Article | |
650 | 4 | |a OpenAPI 3.x | |
650 | 4 | |a REST API | |
650 | 4 | |a automatic test case generation | |
650 | 4 | |a software testing | |
650 | 4 | |a specification-based testing | |
700 | 1 | |a Florea, Diana |e verfasserin |4 aut | |
700 | 1 | |a Gyalai, Robert |e verfasserin |4 aut | |
700 | 1 | |a Curiac, Daniel-Ioan |e verfasserin |4 aut | |
773 | 0 | 8 | |i Enthalten in |t Sensors (Basel, Switzerland) |d 2007 |g 21(2021), 16 vom: 09. Aug. |w (DE-627)NLM187985170 |x 1424-8220 |7 nnns |
773 | 1 | 8 | |g volume:21 |g year:2021 |g number:16 |g day:09 |g month:08 |
856 | 4 | 0 | |u http://dx.doi.org/10.3390/s21165375 |3 Volltext |
912 | |a GBV_USEFLAG_A | ||
912 | |a GBV_NLM | ||
951 | |a AR | ||
952 | |d 21 |j 2021 |e 16 |b 09 |c 08 |