From Requirements to Executable Tests: LLM-Based System Test Generation for REST APIs
Articles
Jaroslav Kochanovskis
Vilnius University image/svg+xml
Asta Slotkienė
Vilnius University image/svg+xml
Published 2026-05-08
https://doi.org/10.15388/LMITT.2026.13
PDF

Keywords

software testing
automated test generation
natural language processing
large language models
system testing
REST API

Abstract

Modern software systems increasingly rely on APIs, making efficient testing essential for ensuring reliability and correctness. However, creating system tests from natural language requirements is typically a manual and time-consuming process. This research proposes an approach for automatically generating executable REST API tests from natural language requirements using large language models (LLMs) and OpenAPI specifications. A prototype system was developed and evaluated on two real-world APIs. The results show that the approach can generate executable pytest tests, achieve full endpoint reachability coverage, and provide stable automated test execution.

PDF

References

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

Downloads

Download data is not yet available.

Most read articles by the same author(s)