一种基于C#的Cantata工具变更过程改进方法  

A C#-Based Cantata Tool Change Process Improvement Method

在线阅读下载全文

作  者:周毅 王玉婷 方霞 连红森 ZHOU Yi;WANG Yu-ting;FANG Xia;LIAN Hong-sen(AECC Aero Engine Control System Institute,Wuxi 214063,China)

机构地区:[1]中国航发控制系统研究所,江苏无锡214063

出  处:《测控技术》2021年第4期13-16,24,共5页Measurement & Control Technology

摘  要:航空发动机控制软件在升级过程中使用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.

关 键 词:DO-178C 嵌入式系统 单元测试 C# 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象