计算机科学2024,Vol.51Issue(12) :63-70.DOI:10.11896/jsjkx.240900093

汽车验证电控系统中的测试用例自动生成方法

Automatic Test Case Generation Method for Automotive Electronic Control System Verification

李占旗 吴新维 张蕾 刘全周 谢辉 熊德意
计算机科学2024,Vol.51Issue(12) :63-70.DOI:10.11896/jsjkx.240900093

汽车验证电控系统中的测试用例自动生成方法

Automatic Test Case Generation Method for Automotive Electronic Control System Verification

李占旗 1吴新维 2张蕾 3刘全周 3谢辉 4熊德意2
扫码查看

作者信息

  • 1. 中汽研(天津)汽车工程研究院有限公司 天津 300300;天津大学机械工程学院 天津 300354;中国汽车技术研究中心有限公司 天津 300300
  • 2. 天津大学智能与计算学部 天津 300350
  • 3. 中汽研(天津)汽车工程研究院有限公司 天津 300300
  • 4. 天津大学机械工程学院 天津 300354
  • 折叠

摘要

随着"软件定义汽车"的发展,汽车软件功能的复杂性和快速开发需求对电控系统验证提出了更高的要求.当前,电控系统软件功能的测试流程图开发主要依赖人工方式,效率低且存在人为因素影响.文中详细描述了汽车验证电控系统中的测试用例自动生成任务及其面临的挑战,并提出了一种基于大语言模型(LLM)的自动生成测试流程图方法,以提高开发效率并减少人力成本.该方法包括构建领域任务数据集和选择合适场景的大模型应用路线.在实验中探讨了基于传统语言模型微调和大语言模型API适配两种技术路线的优劣,并通过实验验证了不同的大模型API在测试用例生成任务上的表现,以及提示工程技术对大模型API的提升效果.提出了一种高效的自动生成汽车测试流程图的方法,展示了大语言模型在提升汽车软件测试效率中的潜力.

Abstract

With the development of"software-defined vehicles",the complexity of automotive software functions and the demand for rapid development have imposed higher requirements on the verification of electronic control systems.Currently,the develop-ment of test flow charts for electronic control system software functions mainly relies on manual methods,which are inefficient and susceptible to human factors.This paper details the task and challenges of automatic test case generation in automotive elec-tronic control system verification and proposes an automatic test flow chart generation method based on large language models(LLM)to improve development efficiency and reduce labor costs.The method includes constructing domain task datasets and se-lecting appropriate LLM application routes.The study explores the advantages and disadvantages of two technical routes:tradi-tional language model fine-tuning and LLM API adaptation.Experiments validate the performance of different LLM APIs in test case generation tasks and the effectiveness of prompt engineering techniques in enhancing LLM API performance.In summary,this paper proposes an efficient method for automatically generating automotive test flow charts,demonstrating the potential of LLMs in improving the efficiency of automotive software testing.

关键词

汽车领域应用/大语言模型/提示工程

Key words

Automotive applications/Large language models/Prompt engineering

引用本文复制引用

出版年

2024
计算机科学
重庆西南信息有限公司(原科技部西南信息中心)

计算机科学

CSTPCD北大核心
影响因子:0.944
ISSN:1002-137X
段落导航相关论文