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

汽车实用技术 ›› 2025, Vol. 50 ›› Issue (1): 37-41.DOI: 10.16638/j.cnki.1671-7988.2025.001.007

• 设计研究 • 上一篇    

基于全对测试的汽车软件测试用例开发

薛红梅   

  1. 泛亚汽车技术中心有限公司
  • 发布日期:2025-01-09
  • 通讯作者: 薛红梅
  • 作者简介:薛红梅(1987-),女,硕士,工程师,研究方向为汽车研发质量技术,E-mail:Hongmei_xue@patac.com.cn

Automotive Software Use Cases Development Based on Pairwise Testing

XUE Hongmei   

  1. Pan Asia Technical Automotive Center Company Limited
  • Published:2025-01-09
  • Contact: XUE Hongmei

摘要: 应用全对测试方法,对汽车软件的测试用例开发进行研究,以保证测试覆盖度和提高 测试效率为目标,开发自动化工具并加以应用。文章以使用语音助手播放音乐为例,先分析 用户的使用场景和使用习惯,识别出可能的因子和水平;再使用自动化工具生成典型测试用 例,并定义每个测试用例的期望表现;接下来进行测试,通过比较实际表现和期望表现,得 到每个用例的测试结果;最后根据测试结果计算每两个因子的各水平组合的失效率,得到响 应表;如果响应表中发现缺陷,则优化软件再次开展测试,直到响应表中没有缺陷,也就是 软件在测试中没有任何问题为止。通过该实例的详细阐述,说明全对测试方法在汽车软件测 试中的作用和价值,已成为提升测试覆盖率和效率的重要助力。

关键词: 汽车软件测试;全对测试;用例开发

Abstract: To ensure the test coverage and improve the test efficiency, this paper studies the use case development of automotive software by applying the pairwise testing method. Using voice assistant to play music as an example, this paper first analyzes the user's usage scenario and usage habits, identifies the possible factors and levels. Then uses automated tools to generate typical test cases and define the expected behavior of each use case. Next, the test results of each use case are obtained by comparing the actual behavior and the expected behavior. Finally, according to the test results, the failure rate of each combination of each two factors is calculated, and the response table is obtained. If defects are found in the response table, the software should be optimized and be tested again until there are no defects in the response table. Through the detailed illustration of the example, the function and value of the pairwise testing method in the automotive software testing has become an important help to improve the testing coverage and efficiency.

Key words: automotive software testing; pairwise testing; use cases development