欢迎访问铁路通信信号工程技术,今天是 English

铁路通信信号工程技术 ›› 2024, Vol. 21 ›› Issue (1): 76-82.DOI: 10.3969/j.issn.1673-4440.2024.01.014

• • 上一篇    下一篇

一种针对全自动运行系统的测试用例生成方法

梁君海1,李春峰1,万 里1,杨毅峰2,薛一鸣2   

  1. 1.中车成都机车车辆有限公司西南研发中心,成都 610511;
    2.西南交通大学信息科学与技术学院,成都 610097
  • 收稿日期:2023-01-17 修回日期:2023-12-21 出版日期:2024-01-25 发布日期:2024-01-25
  • 作者简介:梁君海(1976—),男,正高级工程师,硕士,主要研究方向:全自动运行系统测试,邮箱:liangjunhai@crrcgc.cc。
  • 基金资助:
    中国铁路总公司科技研究开发计划课题项目(N2018G062, K2018G011);四川省科技计划资助项目(2021YJ0070)

Test Case Generation Method for Fully Automatic Operation System

Liang Junhai1,  Li Chunfeng1,  Wan Li1,  Yang Yifeng2,  Xue Yiming2   

  1. 1. Southwest R&D Center, CRRC Chengdu Locomotive&Rolling Stock Co., Ltd., Chengdu     610511, China;
    2. The School of Information Science and Technology, Southwest Jiaotong University, Chengdu     610097, China
  • Received:2023-01-17 Revised:2023-12-21 Online:2024-01-25 Published:2024-01-25

摘要: 针对全自动运行系统测试指定路径覆盖的测试需求,基于时间自动机建模理论提出满足指定路径覆盖和边覆盖的全自动运行系统测试用例自动生成算法。研究时间自动机建模理论,建立全自动运行系统的时间自动机模型;为表征全自动运行系统指定路径覆盖的测试需求,提出基于时间自动机模型的标记变量建模方法;结合Yggdrasil的测试用例生成机制,提出全自动运行系统测试用例生成方法,同时满足全自动运行系统测试的指定路径覆盖和边覆盖准则;以全自动运行系统的模式转换功能为例,建立时间自动机模型并生成测试用例。结果表明,测试用例100%覆盖测试人员指定的测试需求和时间自动机模型所有的边,能够满足全自动运行系统指定路径覆盖的测试要求。

关键词: 全自动运行系统, 指定路径覆盖, 时间自动机, Yggdrasil, 测试用例

Abstract: Aiming at the test requirements of specified path coverage of fully automatic operation (FAO) system test, this paper proposes an algorithm for automatic generation of test cases for FAO based on the modeling theory of timed automata to meet the specified path coverage and edge coverage. Firstly, the modeling theory of timed automata is studied, and the FAO timed automata model is established. Then, a modeling method to add marker variables to the d automata model is proposed to characterize the FAO test requirements of specified path coverage. Thirdly,  combined with the test case generation mechanism of Yggdrasil, a test case generation method of FAO is proposed, which satisfies both the specified path coverage and edge coverage criteria of FAO. Finally, taking the mode conversion function of FAO as an example, the timed automata model is established and test cases are generated. The results show that the test cases cover 100 % of the test requirements specified by the tester and all the edges of the timed automata model, which can meet the test requirements of the specified path coverage of FAO.

Key words: fully automatic operation system, specify path coverage, timed automata, yggdrasil, test case

中图分类号: