周 毅,王玉婷,方 霞,连红森.一种基于C#的Cantata工具变更过程改进方法[J].测控技术,2021,40(4):13-16
一种基于C#的Cantata工具变更过程改进方法
A C#-Based Cantata Tool Change Process Improvement Method
  
DOI:10.19708/j.ckjs.2020.10.316
中文关键词:  A C#-Based Cantata Tool Change Process Improvement Method
英文关键词:DO-178C  embedded systems  unit test  C#
基金项目:
作者单位
周 毅 中国航发控制系统研究所 
王玉婷 中国航发控制系统研究所 
方 霞 中国航发控制系统研究所 
连红森 中国航发控制系统研究所 
摘要点击次数: 630
全文下载次数: 290
中文摘要:
      航空发动机控制软件在升级过程中使用Cantata工具开展单元测试活动时,存在未变更函数的Cantata测试脚本需重新人工隔离插桩导致时间和人力耗费的问题。通过研究Cantata自动生成测试脚本的过程及插桩特点,提出了一种基于C#的Cantata工具变更过程改进方法。该方法通过C#语言结合正则表达式进行代码分析,识别出升级过程中的变更函数和全局变量,并按照Cantata插桩格式,自动完成测试脚本更新工作。详细介绍了该方法的设计过程,并在某型航空发动机控制软件升级过程中进行实践应用。实践结果表明,该方法可准确识别源码信息并完成变更前后的差异比对,能正确快速地实现未变更函数的自动隔离插桩工作,有效解决了人力和时间消耗的问题,对回归测试效率有极大提升。
英文摘要:
      When using the Cantata tool to carry out unit test activities during the upgrade of aero engine control software,there are problems that time and manpower costs caused by manual isolation and insertion of Cantata test scripts with unchanged functions.By studying the process of the Cantata tool to automatically generate test scripts and the characteristics of instrumentation,a C#-based Cantata tool change process improvement method was proposed.Code analysis was performed through C# language and regular expressions,the changed functions and global variables were identified in the upgrade process,and the test script update work was automatically completed follow the Cantata instrumentation format.The design process of this method is introduced in detail,and it is applied to the upgrading process of an aeroengine control software.Practical results show that the method can accurately identify the source code information and complete the difference comparison before and after the change,and can correctly and quickly realize the automatic isolation and insertion of the unchanged functions.It effectively solves the problems of manpower and time consumption,and greatly improves the efficiency of regression testing.
查看全文  查看/发表评论  下载PDF阅读器
关闭