Journal article · 2026 · Open access

Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework

Onkar Khadke

International Journal of Artificial Intelligence and Machine Learning, 6(9s), 1466–1477 · Published 1 January 2026 · DOI 10.51483/ijaiml.6.9s.2026.1466-1477

Open PDFView at the publisherCite this paper

In brief

“Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework” is a 2026 journal article by Onkar Khadke, published in International Journal of Artificial Intelligence and Machine Learning. OpenAlex counts 0 citations as of 30 November 2026. It is open access under a CC BY licence: the full text is free to read at International Journal of Artificial Intelligence and Machine Learning.

Citations
0
References
19
Authors
1

Abstract

The exponential growth of REST API surfaces in microservice architectures has outpaced the capacity of manually authored test suites to provide meaningful specification-level coverage. Existing AI-driven test generation tools address this gap in isolation: large language model (LLM)-based approaches generate syntactically valid inputs but treat each API endpoint independently, discarding the inter-endpoint dependency semantics encoded in OpenAPI specifications; reinforcement learning (RL)-based approaches optimize test execution scheduling but presuppose that test cases already exist and leave the oracle construction problem unresolved. This article presents a hybrid autonomous test generation framework with four integrated components: a Spec-Semantic Graph (SSG) that encodes endpoint dependency relationships as a weighted directed graph; a Contextual Boundary Inference Engine (CBIE) that uses few-shot LLM prompting to extract semantic boundary conditions from natural-language description fields in OpenAPI specifications; a Coverage-Aware RL Test Scheduler (CARTS) that prioritizes test execution using a multi-dimensional coverage state vector; and Differential Oracle Synthesis (DOS) that constructs pass/fail verdicts without manually authored expected-output specifications. When evaluated on three open-source REST APIs with varying levels of specification completeness, the framework achieves higher endpoint coverage than any individual LLM-only or search-based baseline, reduces oracle false-positive rates, and incurs a one-time CI pipeline overhead that amortizes across specification versions rather than accumulating on every run. Together, the four components realize a specification-native quality assurance pipeline that derives test intelligence directly from the OpenAPI document without manual annotation.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Khadke, O. (2026). Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework. International Journal of Artificial Intelligence and Machine Learning, 6(9s), 1466–1477. https://doi.org/10.51483/ijaiml.6.9s.2026.1466-1477

MLA 9

Khadke, Onkar. “Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework.” International Journal of Artificial Intelligence and Machine Learning, vol. 6, no. 9s, 2026, pp. 1466–1477. https://doi.org/10.51483/ijaiml.6.9s.2026.1466-1477.

Chicago

Khadke, Onkar. 2026. “Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework.” International Journal of Artificial Intelligence and Machine Learning 6 (9s): 1466–1477. https://doi.org/10.51483/ijaiml.6.9s.2026.1466-1477.

Harvard

Khadke, O. (2026) ‘Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework’, International Journal of Artificial Intelligence and Machine Learning, 6(9s), pp. 1466–1477. doi:10.51483/ijaiml.6.9s.2026.1466-1477.

IEEE

O. Khadke, “Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework,” International Journal of Artificial Intelligence and Machine Learning, vol. 6, no. 9s, pp. 1466–1477, 2026, doi: 10.51483/ijaiml.6.9s.2026.1466-1477.

BibTeX

@article{khadke2026autonomous,
  title     = {{Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework}},
  author    = {Khadke, Onkar},
  journal   = {International Journal of Artificial Intelligence and Machine Learning},
  year      = {2026},
  volume    = {6},
  number    = {9s},
  pages     = {1466--1477},
  doi       = {10.51483/ijaiml.6.9s.2026.1466-1477},
  url       = {https://doi.org/10.51483/ijaiml.6.9s.2026.1466-1477}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques

  • OpenAPI
  • REST API
  • microservices
  • large language models
  • reinforcement learning
  • test scheduling
  • oracle construction
  • test automation

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Khadke, O. (2026). Autonomous Test Case Generation From API Specifications Using AI: A Hybrid LLM and Reinforcement Learning Framework. International Journal of Artificial Intelligence and Machine Learning, 6(9s), 1466–1477. https://doi.org/10.51483/ijaiml.6.9s.2026.1466-1477

How many times has this paper been cited?

0 times, according to OpenAlex on 30 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at International Journal of Artificial Intelligence and Machine Learning: sign in and open the PDF from this page.

Who wrote this paper?

Onkar Khadke.

What is the DOI of this paper?

10.51483/ijaiml.6.9s.2026.1466-1477, permanently at https://doi.org/10.51483/ijaiml.6.9s.2026.1466-1477. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 30 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.