BOSQTGEN: Breaking the Sound Barrier in Test Generation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Asif, S M Sadrul Islam, Chen, James, Barr, Earl T., Marron, Mark
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912665170870272
author Asif, S M Sadrul Islam
Chen, James
Barr, Earl T.
Marron, Mark
author_facet Asif, S M Sadrul Islam
Chen, James
Barr, Earl T.
Marron, Mark
contents Modern software is increasingly built by composing APIs, elevating the API contract to a critical role. Inadequate contracts, however, lead to mismatched expectations and failures, creating a pressing need for robust conformance testing. Current test generation techniques are hindered by key challenges: polyglot systems, source code inaccessibility, a cost-reliability trade-off, and, most critically, the difficulty of generating structured inputs. We introduce BOSQTGEN, a novel black-box methodology and tool for API test generation. BOSQTGEN utilizes a novel approach for decomposing API specifications into primitives, using LLMs to suggest coherent strata for them, and employing combinatorial testing to efficiently sample over these values. This approach ensures coverage of critical interactions while avoiding the redundancy of random sampling. The resulting BOSQTGEN system achieves an average of 82% code coverage on RESTful benchmarks, often a 20% or more increase over prior state-of-the-art systems and nearing parity with hand-written test suites. Providing a fully API-driven approach to test generation, enables developers to automatically create high-quality test cases for validation or test-driven development.
format Preprint
id arxiv_https___arxiv_org_abs_2510_19777
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle BOSQTGEN: Breaking the Sound Barrier in Test Generation
Asif, S M Sadrul Islam
Chen, James
Barr, Earl T.
Marron, Mark
Software Engineering
Modern software is increasingly built by composing APIs, elevating the API contract to a critical role. Inadequate contracts, however, lead to mismatched expectations and failures, creating a pressing need for robust conformance testing. Current test generation techniques are hindered by key challenges: polyglot systems, source code inaccessibility, a cost-reliability trade-off, and, most critically, the difficulty of generating structured inputs. We introduce BOSQTGEN, a novel black-box methodology and tool for API test generation. BOSQTGEN utilizes a novel approach for decomposing API specifications into primitives, using LLMs to suggest coherent strata for them, and employing combinatorial testing to efficiently sample over these values. This approach ensures coverage of critical interactions while avoiding the redundancy of random sampling. The resulting BOSQTGEN system achieves an average of 82% code coverage on RESTful benchmarks, often a 20% or more increase over prior state-of-the-art systems and nearing parity with hand-written test suites. Providing a fully API-driven approach to test generation, enables developers to automatically create high-quality test cases for validation or test-driven development.
title BOSQTGEN: Breaking the Sound Barrier in Test Generation
topic Software Engineering
url https://arxiv.org/abs/2510.19777