arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.25862cs.SEcs.AI
收藏

RESTestBench:一个评估LLM生成REST API测试用例有效性的基准

RESTestBench: A Benchmark for Evaluating the Effectiveness of LLM-Generated REST API Test Cases from NL Requirements

CASABLANCA hotelsoftware GmbH(CASABLANCA酒店软件公司);University of Innsbruck(因斯布鲁克大学);Technical University of Munich(慕尼黑技术大学);Diffblue Ltd(Diffblue有限公司)

Leon Kogler, Stefan Hangler, Maximilian Ehrhart, Benedikt Dornauer, Roland Wuersching, Peter Schrammel

AI总结:

RESTestBench通过精确和模糊的自然语言需求评估LLM生成的REST测试用例有效性,引入基于需求的变异测试指标,评估两种生成方法在不同LLM中的表现。

摘要:

RESTestBench通过精确和模糊的自然语言需求评估LLM生成的REST测试用例有效性,引入基于需求的变异测试指标,评估两种生成方法在不同LLM中的表现。

英文摘要:

Existing REST API testing tools are typically evaluated using code coverage and crash-based fault metrics. However, recent LLM-based approaches increasingly generate tests from NL requirements to validate functional behaviour, making traditional metrics weak proxies for whether generated tests validate intended behaviour. To address this gap, we present RESTestBench, a benchmark comprising three REST services paired with manually verified NL requirements in both precise and vague variants, enabling controlled and reproducible evaluation of requirement-based test generation. RESTestBench further introduces a requirements-based mutation testing metric that measures the fault-detection effectiveness of a generated test case with respect to a specific requirement, extending the property-based approach of Bartocci et al. . Using RESTestBench, we evaluate two approaches across multiple state-of-the-art LLMs: (i) non-refinement-based generation, and (ii) refinement-based generation guided by interaction with the running SUT. In the refinement experiments, RESTestBench assesses how exposure to the actual implementation, valid or mutated, affects test effectiveness. Our results show that test effectiveness drops considerably when the generator interacts with faulty or mutated code, especially for vague requirements, sometimes negating the benefit of refinement and indicating that incorporating actual SUT behaviour is unnecessary when requirement detail is high.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑