主办:陕西省汽车工程学会
ISSN 1671-7988  CN 61-1394/TH
创刊:1976年

Automobile Applied Technology ›› 2026, Vol. 51 ›› Issue (3): 80-85.DOI: 10.16638/j.cnki.1671-7988.2026.003.014

• Testing and Experiment • Previous Articles    

Research on Vehicle ECU Software Integration Testing Methods Based on Testbed

LU Guoguang, ZHOU Xiaoqing, LIU Yu, ZHU Changjiu, PENG Jiajia   

  1. Xi'an Automotive Engineering Research Institute, BYD Auto Industry Company Limited
  • Published:2026-02-04
  • Contact: LU Guoguang

基于 Testbed 的车载 ECU 软件集成 测试方法研究

路国光,周晓清,刘煜,祝昌久,彭佳佳   

  1. 比亚迪汽车工业有限公司 西安汽车工程研究院
  • 通讯作者: 路国光
  • 作者简介:路国光(1986-),男,硕士,工程师,研究方向为软件测试

Abstract: Conducting code-level integration testing in the early stage of software development can help identify and fix potential errors and defects early on, reducing the cost of later fixes. ISO 26262 requires software testing based on requirements, but in current vehicle software integration testing, more attention is paid to code structure coverage, lacking verification of software requirements and functions. This paper proposes a new software integration testing method based on the Testbed tool. Through functional decomposition, thread division, call path analysis, and design parameters, it completes the design of use cases based on requirements, ensuring 100% coverage and traceability of software requirements. Additionally, to further cover special operating conditions of the system, a method of variable parameter loop execution of use cases is proposed. By monitoring the paths and statements executed multiple times during the execution of use cases, fault injection testing is achieved at the code level. Finally, this method is verified on the software of a vehicle trailer controller, and the results show that it has strong practicality and efficiency.

Key words: software integration testing; vehicle ECU; Testbed tool

摘要: 在软件开发初期进行代码级集成测试可以提早发现并修复潜在的错误和缺陷,减少后 期修复成本。ISO 26262 中要求做基于需求的软件测试,但在目前的车载软件集成测试中,更 多关注代码结构覆盖率,缺乏对软件需求和功能的验证。文章依托 Testbed 工具实现了一种 新的软件集成测试方法,通过功能分解、线程划分、调用路径分析以及设计参数等,完成了 基于需求的用例设计,保证对软件需求的 100%覆盖与追溯。此外,为了进一步覆盖系统运行的 特殊工况,提出了可变参数循环执行用例的方法。通过监测用例多次执行的路径和语句被执 行次数,在代码层面实现了故障注入测试。最后,在车载拖车控制器软件上对该方法进行验 证,结果表明,该方法具有很强的实用性和高效性。

关键词: 软件集成测试;车载 ECU;Testbed 工具