Enhancing REST API Testing with NLP Techniques
Myeongsoo Kim, Davide Corradini, Saurabh Sinha, Alessandro Orso, Michele Pasqua, Rachel Tzoref-Brill, Mariano Ceccato
Abstract
RESTful services are commonly documented using OpenAPI specifications. Although numerous automated testing techniques have been proposed that leverage the machine-readable part of these specifications to guide test generation, their human-readable part has been mostly neglected. This is a missed opportunity, as natural language descriptions in the specifications often contain relevant information, including example values and inter-parameter dependencies, that can be used to improve test generation. In this spirit, we propose NLPtoREST, an automated approach that applies natural language processing techniques to assist REST API testing. Given an API and its specification, NLPtoREST extracts additional OpenAPI rules from the human-readable part of the specification. It then enhances the original specification by adding these rules to it. Testing tools can transparently use the enhanced specification to perform better test case generation. Because rule extraction can be inaccurate, due to either the intrinsic ambiguity of natural language or mismatches between documentation and implementation, NLPtoREST also incorporates a validation step aimed at eliminating spurious rules. We performed studies to assess the effectiveness of our rule extraction and validation approach, and the impact of enhanced specifications on the performance of eight state-of-the-art REST API testing tools. Our results are encouraging and show that NLPtoREST can extract many relevant rules with high accuracy, which can in turn significantly improve testing tools’ performance.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- APIRL: Deep Reinforcement Learning for REST API Fuzzing cites Adaptive REST API Testing with Reinforcement Learning
- APIRL: Deep Reinforcement Learning for REST API Fuzzing cites Morest: Model-based RESTful API Testing with Execution Feedback
- APIRL: Deep Reinforcement Learning for REST API Fuzzing cites Automated test generation for REST APIs: no time to rest yet
- APIRL: Deep Reinforcement Learning for REST API Fuzzing cites DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learning
- Adaptive REST API Testing with Reinforcement Learning cites Combinatorial Testing of RESTful APIs
- Adaptive REST API Testing with Reinforcement Learning cites Morest: Model-based RESTful API Testing with Execution Feedback
- Adaptive REST API Testing with Reinforcement Learning cites Automated test generation for REST APIs: no time to rest yet
- Online testing of RESTful APIs: promises and challenges cites Combinatorial Testing of RESTful APIs
- Automated test generation for REST APIs: no time to rest yet cites Combinatorial Testing of RESTful APIs
- Automated test generation for REST APIs: no time to rest yet cites Morest: Model-based RESTful API Testing with Execution Feedback
- DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learning cites Adaptive REST API Testing with Reinforcement Learning
- DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learning cites Combinatorial Testing of RESTful APIs
- DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learning cites Morest: Model-based RESTful API Testing with Execution Feedback
- A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs cites Adaptive REST API Testing with Reinforcement Learning
- A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs cites Combinatorial Testing of RESTful APIs
- A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs cites Morest: Model-based RESTful API Testing with Execution Feedback
- A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs cites Automated test generation for REST APIs: no time to rest yet
- A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs cites DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learning
- A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs cites LlamaRestTest: Effective REST API Testing with Small Language Models
- LlamaRestTest: Effective REST API Testing with Small Language Models cites A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs
- LlamaRestTest: Effective REST API Testing with Small Language Models cites Adaptive REST API Testing with Reinforcement Learning
- LlamaRestTest: Effective REST API Testing with Small Language Models cites Combinatorial Testing of RESTful APIs
- LlamaRestTest: Effective REST API Testing with Small Language Models cites Morest: Model-based RESTful API Testing with Execution Feedback
- LlamaRestTest: Effective REST API Testing with Small Language Models cites Automated test generation for REST APIs: no time to rest yet
- LlamaRestTest: Effective REST API Testing with Small Language Models cites DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learning
Cited by top-tier papers10
- Adaptive REST API Testing with Reinforcement LearningMyeongsoo Kim, Saurabh Sinha, Alessandro OrsoASE 2023 · 29 citations
- DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement LearningDavide Corradini, Zeno Montolli, Michele Pasqua, Mariano CeccatoASE 2024 · 13 citations
- LlamaRestTest: Effective REST API Testing with Small Language ModelsMyeongsoo Kim, Saurabh Sinha, Alessandro OrsoFSE 2025 · 9 citations
- APIRL: Deep Reinforcement Learning for REST API FuzzingMyles Foley, Sergio MaffeisAAAI 2025 · 6 citations
- A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven InputsMyeongsoo Kim, Tyler Stennett, Saurabh Sinha, Alessandro OrsoICSE 2025 · 4 citations
Builds on5
- Automated test generation for REST APIs: no time to rest yetMyeongsoo Kim, Qi Xin, Saurabh Sinha, Alessandro OrsoISSTA 2022 · 67 citations
- Morest: Model-based RESTful API Testing with Execution FeedbackYi Liu, Yuekang Li, Gelei Deng, Yang Liu et al.ICSE 2022 · 52 citations
- Combinatorial Testing of RESTful APIsHuayao Wu, Lixin Xu, Xintao Niu, Changhai NieICSE 2022 · 47 citations
- Online testing of RESTful APIs: promises and challengesAlberto Martin-Lopez, Sergio Segura, Antonio Ruiz-CortésFSE 2022 · 34 citations
- Call Me Maybe: Using NLP to Automatically Generate Unit Test Cases Respecting Temporal ConstraintsArianna Blasi, Alessandra Gorla, Michael D. Ernst, Mauro PezzèASE 2022 · 22 citations
Related papers
- Speculate: Generating REST API Specifications using LLMsKrishanu Singh, Kushagra Karar, Abhilash Jindal, Guowei YangFSE 2026
- RBCTest: Leveraging LLMs to Mine and Verify Oracles of API Response Bodies for RESTful API TestingHieu Huynh, Quoc-Tri Le, Tu Nguyen, Viet Nguyen et al.ICSE 2026
- Generating REST API Specifications through Static AnalysisRuikai Huang, Manish Motwani, Idel Martinez, Alessandro OrsoICSE 2024 · 11 citations
- Industrial Practice of LLM-Based Test Case Carving and Assertion Generation (Experience Paper)Haozhen You, Zhen Dong, Jingjing Wang, Qiang Li et al.ISSTA 2026
- SATORI: Static Test Oracle Generation for REST APIsJuan C. Alonso, Alberto Martin-Lopez, Sergio Segura, Gabriele Bavota et al.ASE 2025 · 2 citations
