首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于TestBed 和Visual Studio 对QT 程序单元 测试的研究与实现
引用本文:马慧芳,费自强,范孝彬.基于TestBed 和Visual Studio 对QT 程序单元 测试的研究与实现[J].航空电子技术,2023(1):42-46.
作者姓名:马慧芳  费自强  范孝彬
作者单位:中国航空无线电电子研究所,上海 200233
摘    要:针对测试工具TestBed 无法动态执行QT 程序单元测试用例的问题,文章通过介绍单元测试定义、测 试原理以及TestBed 工具的使用原理、并指出了TestBed 工具对QT 程序进行单元测试存在的问题,最终提出 了一种结合TestBed 和Visual Studio 对QT 程序进行单元测试的方法,并给出了方法的详细设计与实现步骤, 为QT 程序动态执行单元测试提供一种简单、便捷的实现方式。实际结果表明,结合TestBed 与Visual Studio 对QT 程序的单元测试方法显著提高了单元测试的效率,减少了单元测试的成本。

关 键 词:QT  单元测试  TestBed  Visual  Studio
收稿时间:2021/12/14 0:00:00
修稿时间:2022/9/22 0:00:00

Research and Implementation of Unit Testing of QT Program Based on TestBed and Visual Studio
MA Hui-fang,EI Zi-qiang,FAN Xiao-bin.Research and Implementation of Unit Testing of QT Program Based on TestBed and Visual Studio[J].Avionics Technology,2023(1):42-46.
Authors:MA Hui-fang  EI Zi-qiang  FAN Xiao-bin
Institution:China National Aeronautical Radio Electronics Research Institute, Shanghai 200233, China
Abstract:Aiming at the problem that test tool TestBed cannot dynamically implement unit testing of QT program, introduces the definition of unit testing and the principle of unit testing and TestBed tool are introduced, and the problems of unit testing of QT program by TestBed tool are pointed out, then a method that combines TestBed and Visual Studio to do unit testing of QT program is proposed, and detailed steps of design and implementation and a simple implementation method for unit testing of QT program are described. As the result of practical application, the method combining TestBed and Visual Studio in unit testing of QT program improves the efficiency of unit testing, decreases cost of unit testing.
Keywords:QT  unit testing  TestBed  Visual Studio
点击此处可从《航空电子技术》浏览原始摘要信息
点击此处可从《航空电子技术》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号