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

使用大语言模型自动化完整软件测试流程:一项汽车案例研究

Automating a Complete Software Test Process Using LLMs: An Automotive Case Study

Chalmers University of Technology(查尔姆斯理工大学);Volvo Group(沃尔沃集团)

Shuai Wang, Yinan Yu, Robert Feldt, Dhasarathy Parthasarathy

AI总结:

本文针对车载 API 测试中规范不一致、歧义和相互依赖等复杂问题,提出一种基于大语言模型的分段式自动化测试系统,并在超过 100 个 API 上验证了其有效性和完全自动化潜力。

摘要:

车辆 API 测试验证车辆内部系统与外部应用之间的交互是否符合预期,确保用户能够访问和控制各种车辆功能与数据。然而,该任务本身十分复杂,需要协调 API 系统、通信协议乃至车辆仿真系统,才能开发出有效的测试用例。在实际工业场景中,各类文档和系统规范之间的不一致、歧义和相互依赖带来了重大挑战。本文提出了一个面向车载 API 自动化测试的系统。通过清晰定义并划分测试流程,我们使大语言模型(LLMs)能够专注于特定任务,从而确保测试工作流稳定可控。在超过 100 个 API 上开展的实验表明,我们的系统能够有效实现车辆 API 测试的自动化。实验结果还证实,LLMs 可以高效处理原本需要人工判断的常规任务,因而适合在类似的工业场景中实现完全自动化。

英文摘要:

Vehicle API testing verifies whether the interactions between a vehicle's internal systems and external applications meet expectations, ensuring that users can access and control various vehicle functions and data. However, this task is inherently complex, requiring the alignment and coordination of API systems, communication protocols, and even vehicle simulation systems to develop valid test cases. In practical industrial scenarios, inconsistencies, ambiguities, and interdependencies across various documents and system specifications pose significant challenges. This paper presents a system designed for the automated testing of in-vehicle APIs. By clearly defining and segmenting the testing process, we enable Large Language Models (LLMs) to focus on specific tasks, ensuring a stable and controlled testing workflow. Experiments conducted on over 100 APIs demonstrate that our system effectively automates vehicle API testing. The results also confirm that LLMs can efficiently handle mundane tasks requiring human judgment, making them suitable for complete automation in similar industrial contexts.

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

↑