With the continuous acceleration of the intelligentization and electrification of automobiles, traditional Hardware-in-the-Loop (HIL) testing is facing problems such as high dependence on human resources, low testing efficiency, and difficulty in knowledge reuse. This paper proposes an intelligent agent architecture that integrates Large Language Model (LLM) and Retrieval-Augmented Generation (RAG). Through hierarchical task decomposition, RAG knowledge enhancement, and code collaborative generation, it achieves efficient generation of test cases and automated test scripts. Experimental results show that this solution can significantly reduce human intervention, lower token consumption, and effectively improve testing development efficiency.
Key words
AI /
HIL testing /
Large Language Model /
Retrieval-Augmented Generation /
automated testing
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
References
[1] 周时莹,陈霞,张东波,等 . 基于大语言模型的智能驾驶测试用例自动生成系统 [J]. 汽车文摘,2025(10):6-18.
[2] LIU P,YUAN W,FU J,et al. Pre train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing[J]. ACM Computing Surveys,2023,55(9):1-35.
[3] LEWIS P, PEREZ E, PIKTUS A, et al. Retrieval augmented generation for knowledge intensive NLP tasks[C]//Proceedings of the 34th Conference on Neural Information Processing Systems (NeurIPS). Addis Ababa, Ethiopia, 2020, 33:9459-9474.
[4] JOHNSON J,DOUZE M,JÉGOU H. Billion-scale similarity search with GPUs[J]. IEEE Transactions on Big Data,2021,7(3):535-547.
[5] [英]本 · 奥法斯 .LangChain 大模型应用开发 [M]. 郭涛,译 . 北京:清华大学出版社,2025.