API Test Case Generation by Extracting HTTP Requests During Front-End Testing

This study proposes a semi-automated generation method for Web API test cases based on front-end behavior-driven testing, called BATCG (BDD-based API Test Case Generation). BATCG uses the Gherkin language to describe front-end test scenarios to ensure the correct execution of front-end behavior-driven tests. It captures HTTP request data during the front-end UI (user interface) testing to accumulate test data. Based on API Swagger documents, it generates Web API test cases by considering usage scenarios in the form of Karate scripts. Besides, this study conducts experiments on five actual systems with six test cases (including 12 scenarios). The experimental results show that BATCG can correctly generate 10 test scripts that achieve an accuracy rate of 83.33%.

Authors

Institutions

Publication Details

Published
2024-10-11
DOI
https://doi.org/10.1109/icebe62490.2024.00013
Citations
1
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

API Test Case Generation by Extracting HTTP Requests During Front-End Testing

Shang‐Pin Ma, Yijie Guo, Yu‐Sheng Su, H. P. Peng
1 citations
Software Testing and Debugging Techniques
0.49
article

API Test Case Generation by Extracting HTTP Requests During Front-End Testing

Shang‐Pin Ma, Yijie Guo, Yu‐Sheng Su, H. P. Peng
article en
1 citations

Abstract

This study proposes a semi-automated generation method for Web API test cases based on front-end behavior-driven testing, called BATCG (BDD-based API Test Case Generation). BATCG uses the Gherkin language to describe front-end test scenarios to ensure the correct execution of front-end behavior-driven tests. It captures HTTP request data during the front-end UI (user interface) testing to accumulate test data. Based on API Swagger documents, it generates Web API test cases by considering usage scenarios in the form of Karate scripts. Besides, this study conducts experiments on five actual systems with six test cases (including 12 scenarios). The experimental results show that BATCG can correctly generate 10 test scripts that achieve an accuracy rate of 83.33%.

National Chung Cheng University (TW), National Taiwan Ocean University (TW)
Openalex Percentile: Top 28%
Software Testing and Debugging Techniques
0.49
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.

API Test Case Generation by Extracting HTTP Requests During Front-End Testing — Shang‐Pin Ma, Yijie Guo, et al. · (2024) | TGRS Research Map | TGRS