Metraipolis › archive › dc_4ab8ca4fcd69

REST API Testing with Verified LLM-Inferred Dependencies and Response-Driven Refinement — arXiv:2608.17546

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.17546
License (as archived)
CC0-1.0
Archived
2026-10-18T14:55:28.989Z
SHA-256 of the archived text
71cfec1b0b12e65f7e98d9b037558dbfb96cbe06f6aee785a7397983e044c06c
Stable URL of this page
https://metraipolis.com/documento/dc_4ab8ca4fcd69

How to cite

REST API Testing with Verified LLM-Inferred Dependencies and Response-Driven Refinement — arXiv:2608.17546 — arXiv (en), https://arxiv.org/abs/2608.17546 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4ab8ca4fcd69 (Metraipolis archive dc_4ab8ca4fcd69, sha256 71cfec1b0b12e65f7e98d9b037558dbfb96cbe06f6aee785a7397983e044c06c)
BibTeX
@misc{dc4ab8ca4fcd69,
  title = {REST API Testing with Verified LLM-Inferred Dependencies and Response-Driven Refinement — arXiv:2608.17546},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.17546},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4ab8ca4fcd69; sha256 71cfec1b0b12e65f7e98d9b037558dbfb96cbe06f6aee785a7397983e044c06c},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.17546. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Testing RESTful APIs requires generating sequences of API calls that satisfy dependencies among operations, parameters, and runtime-created resources. Recent LLM-based approaches infer such dependencies and generate test sequences from OpenAPI specifications, but they often treat LLM-inferred relationships as correct without execution-based validation. This can introduce spurious dependencies, miss feasible operation chains, and produce infeasible tests. In this paper, we propose APIPilot}, an execution-validated framework for REST API testing. APIPilot first derives candidate producer-consumer dependencies from OpenAPI specifications using structural heuristics and LLM-based semantic reasoning. It then treats these dependencies as hypotheses and validates them through concrete API executions before using them for test generation. The validated dependencies are organized into a dependency graph from which APIPilot constructs coverage-aware workflows via bounded top-k graph traversal, separating semantic dependency inference from sequence construction. To improve subsequent tests, APIPilot further performs response-driven refinement: runtime responses are analyzed to update resource pools, adjust input-generation constraints, and prune or revise invalid dependency mappings. Empirical evaluation on 16 real-world REST API services shows that APIPilot achieves 92.3% operation coverage, up to 58.6% code coverage, and an 88.1% workflow execution success rate, outperforming both LLM-based and traditional REST API testing baselines. APIPilot also detects 197 unique 5xx failures and specification-execution mismatches, demonstrating the benefit of grounding dependency inference in execution feedback.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-19 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.17546 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T14:48:24.133Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-19?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).