mlsanityData to 14 Oct 2026

Combining TSL and LLM to Automate REST API Testing: A Comparative Study

arXiv 2509.05540 ↗First posted 5 Sep 2025cs.SE cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

The effective execution of tests for REST APIs remains a considerable challenge for development teams, driven by the inherent complexity of distributed systems, the multitude of possible scenarios, and the limited time available for test design. Exhaustive testing of all input combinations is impractical, often resulting in undetected failures, high manual effort, and limited test coverage. To address these issues, we introduce RestTSLLM, an approach that uses Test Specification Language (TSL) in conjunction with Large Language Models (LLMs) to automate the generation of test cases for REST APIs. The approach targets two core challenges: the creation of test scenarios and the definition of appropriate input data. The proposed solution integrates prompt engineering techniques with an automated pipeline to evaluate various LLMs on their ability to generate tests from OpenAPI specifications. The evaluation focused on metrics such as success rate, test coverage, and mutation score, enabling a systematic comparison of model performance. The results indicate that the best-performing LLMs - Claude 3.5 Sonnet (Anthropic), Deepseek R1 (Deepseek), Qwen 2.5 32b (Alibaba), and Sabia 3 (Maritaca) - consistently produced robust and contextually coherent REST API tests. Among them, Claude 3.5 Sonnet outperformed all other models across every metric, emerging in this study as the most suitable model for this task. These findings highlight the potential of LLMs to automate the generation of tests based on API specifications.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 9 of its 50 references that are in the map. First posted on arXiv 5 Sep 2025.

Builds on

9 of 50 references.

References · 9

  1. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 558
  2. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  3. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
  4. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
  5. 2025A Closer Look at System Prompt Robustnesscited by 32
  6. 2024Recent Advances in Generative AI and Large Language Models: Current Status, Challenges, and Perspectivescited by 30
  7. 2024SPRIG: Improving Large Language Model Performance by System Prompt Optimizationcited by 29
  8. 2023Leveraging Large Language Models to Improve REST API Testingcited by 20
  9. 2022Testing RESTful APIs: A Surveycited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025LlamaRestTest: Effective REST API Testing with Small Language Models
  2. 2025Test Amplification for REST APIs via Single and Multi-Agent LLM Systems
  3. 2025A Framework for Testing and Adapting REST APIs as LLM Tools
  4. 2025AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL
  5. 2026Multi-Agent LLM-based Metamorphic Testing for REST APIs
  6. 2026APITestGenie: Generating Web API Tests from Requirements and API Specifications with LLMs ↗
  7. 2026REST API Testing with Verified LLM-Inferred Dependencies and Response-Driven Refinement ↗
  8. 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applications