系统仿真学报 ›› 2023, Vol. 35 ›› Issue (12): 2512-2526.doi: 10.16182/j.issn1004731x.joss.22-0854

• 论文 • 上一篇    下一篇

复杂流程装备软件数据仿真测试框架

张进坤(), 史龙飞, 胡驰, 张浩, 杨永辉()   

  1. 中国工程物理研究院 计算机应用研究所,四川 绵阳 621900
  • 收稿日期:2022-07-23 修回日期:2022-10-31 出版日期:2023-12-15 发布日期:2023-12-12
  • 通讯作者: 杨永辉 E-mail:zhjinkun@163.com;younphy@163.com
  • 第一作者简介:张进坤(1979-),男,高工,硕士,研究方向为软件测试。E-mail:zhjinkun@163.com
  • 基金资助:
    国家重点研发计划(2021YFB3101805);国家自然科学基金(61903348);四川省科技计划重点研发项目(2021YFG0174)

Data Simulation Testing Framework for Complex Process Equipment Software

Zhang Jinkun(), Shi Longfei, Hu Chi, Zhang Hao, Yang Yonghui()   

  1. Institute of Computer Application, China Academy of Engineering Physics, Mianyang 621900, China
  • Received:2022-07-23 Revised:2022-10-31 Online:2023-12-15 Published:2023-12-12
  • Contact: Yang Yonghui E-mail:zhjinkun@163.com;younphy@163.com

摘要:

针对基于总线通信的装备软件由于业务复杂、耦合紧密、时序严格、数据交换量大导致的自动化测试技术门槛高、实施难度大的问题,引入数据驱动测试和关键字驱动测试的思想,提出了一种数据仿真测试框架,制定了配置规则并在框架中实现。测试人员只需专注于业务分析,配置交换数据和关键字,就可以对复杂流程装备软件进行外围数据仿真,实施自动化测试,无需开发测试脚本,降低了自动化测试的技术门槛。结果表明:与手动测试和实物测试相比,该框架可以执行更多的业务场景,能发现业务流程相关的深层次的软件缺陷。

关键词: 数据仿真, 自动化测试, 测试框架, 业务流程, 装备软件, 数据驱动, 关键字驱动

Abstract:

Due to the complex task, tight coupling, strict timing, and a large amount of interchange data, the technical threshold of automated testing of bus communication equipment software is high, and the implementation is difficult. The ideas of data-driven testing and keyword-driven testing are introduced, and a data simulation testing framework is proposed. Configuration rules are formulated and implemented in the framework. Testers can simulate peripheral data for complex process equipment software and implement automated testing by only focusing on the task analysis, and configuring interchange data and keywords. There is no need to develop test scripts, which reduces the technical threshold of automated testing. Application results show that the framework can perform more task scenarios than manual and physical testing. It also can find the deep software defects related to the task processes.

Key words: data simulation, automated testing, testing framework, business process, equipment software, data-driven, keyword-driven

中图分类号: