Automated Specification-Based Testing of REST APIs.

Sensors (Basel)

Automation and Applied Informatics Department, Politehnica University of Timisoara, Parvan 2, 300223 Timisoara, Romania.

Published: August 2021

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.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC8400446PMC
http://dx.doi.org/10.3390/s21165375DOI Listing

Publication Analysis

Top Keywords

test cases
20
rest apis
12
generation test
8
automatic generation
8
metrics analyze
8
apis
6
test
6
cases
5
automated specification-based
4
specification-based testing
4

Similar Publications

Gender Disparities and Lung Cancer Screening Outcomes Among Individuals Who Have Never Smoked.

JAMA Netw Open

January 2025

Division of Pulmonary and Critical Care Medicine, Department of Internal Medicine, Seoul National University Bundang Hospital, Seongnam, Republic of Korea.

Importance: Lung cancer in individuals who have never smoked (INS) is a growing global concern, with a rapidly increasing incidence and proportion among all lung cancer cases. Particularly in East Asia, opportunistic lung cancer screening (LCS) programs targeting INS have gained popularity. However, the sex-specific outcomes and drawbacks of screening INS remain unexplored, with data predominantly focused on women.

View Article and Find Full Text PDF

Background: The large language model ChatGPT can now accept image input with the GPT4-vision (GPT4V) version. We aimed to compare the performance of GPT4V to pretrained U-Net and vision transformer (ViT) models for the identification of the progression of multiple sclerosis (MS) on magnetic resonance imaging (MRI).

Methods: Paired coregistered MR images with and without progression were provided as input to ChatGPT4V in a zero-shot experiment to identify radiologic progression.

View Article and Find Full Text PDF

Scapho-metacarpal dual mobility prosthesis for TMC-1 joint salvage: technical insights.

Arch Orthop Trauma Surg

January 2025

BG Klinikum Unfallkrankenhaus Berlin, Department of Hand-, Replantation- and Microsurgery and Chair of Hand-, Replantation- and Microsurgery, Charité Universitätsmedizin Berlin, Berlin, Germany.

Introduction: Rhizarthrosis, or osteoarthritis of the trapeziometacarpal joint, predominantly affects women over 50, with up to 30% experiencing some degree of arthritis in this joint. Traditional surgical approaches, such as trapeziectomy with ligament reconstruction, can result in some patients in persistent pain or limited functionality. TMC ball-in-socket arthroplasty, with a cup placed in the distal scaphoid, offers a promising alternative to traditional arthrodesis or resection-suspension arthroplasty.

View Article and Find Full Text PDF

Background: Repeat neurological assessment is standard in cases of severe acute brain injury. However, conventional measures rely on overt behavior. Unfortunately, behavioral responses may be difficult or impossible for some patients.

View Article and Find Full Text PDF

Lichen planus is a chronic skin lesion characterized by pruritic violaceous papules, which has a high risk of morbidity. Skin microbiota plays an important role in the maintenance of cutaneous mucosal barrier and human health and immune homeostasis. Studies have shown that skin microbiota may play a role in the pathogenesis of lichen planus, but it is not yet clear.

View Article and Find Full Text PDF

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!