Generating RESTful API Test Scripts with Database Constraints using OpenAPI Specification

Nowadays, software systems are interconnected to enhance the user experience and attract new users. As such, software developers require a standard for exchanging information to streamline their work, leading to the creation of APIs. In the software development life cycle, it is essential to have documentation that outlines the software's requirements and functionality, known as a software specification. Similarly, APIs should have standardized documentation to help software developers understand their components, such as parameters, request bodies, responses, and endpoints. This is why the OpenAPI Initiative developed the OpenAPI specification. Moreover, APIs often connect with databases that store information. Relational databases have rules known as database constraints, which ensure the accuracy of stored data. When developing APIs, software testers play a crucial role, especially considering the widespread use of APIs. Software testers may have a different approach to generating test cases, potentially leading to gaps in coverage, particularly regarding database constraints. This paper proposes an approach for generating RESTful API test scripts that account for database constraints using the OpenAPI specification. This approach will be compatible with automated API testing tools, allowing software testers to achieve results more quickly and efficiently.

Authors

Institutions

Publication Details

Published
2024-09-13
DOI
https://doi.org/10.1145/3698062.3698065
Primary Topic
Advanced Database Systems and Queries
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Generating RESTful API Test Scripts with Database Constraints using OpenAPI Specification

Taratip Suwannasart, Nuntipat Yuncharoen
Advanced Database Systems and Queries
article

Generating RESTful API Test Scripts with Database Constraints using OpenAPI Specification

Taratip Suwannasart, Nuntipat Yuncharoen
article en

Abstract

Nowadays, software systems are interconnected to enhance the user experience and attract new users. As such, software developers require a standard for exchanging information to streamline their work, leading to the creation of APIs. In the software development life cycle, it is essential to have documentation that outlines the software's requirements and functionality, known as a software specification. Similarly, APIs should have standardized documentation to help software developers understand their components, such as parameters, request bodies, responses, and endpoints. This is why the OpenAPI Initiative developed the OpenAPI specification. Moreover, APIs often connect with databases that store information. Relational databases have rules known as database constraints, which ensure the accuracy of stored data. When developing APIs, software testers play a crucial role, especially considering the widespread use of APIs. Software testers may have a different approach to generating test cases, potentially leading to gaps in coverage, particularly regarding database constraints. This paper proposes an approach for generating RESTful API test scripts that account for database constraints using the OpenAPI specification. This approach will be compatible with automated API testing tools, allowing software testers to achieve results more quickly and efficiently.

Chulalongkorn University (TH)
Openalex Percentile: Top 74%
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.