基于TestBed和Visual Studio对QT程序单元测试的研究与实现  

Research and Implementation of Unit Testing of QT Program Based on TestBed and Visual Studio

在线阅读下载全文

作  者:马慧芳[1] 费自强 范孝彬 MA Hui-fang;FEI Zi-qiang;FAN Xiao-bin(China National Aeronautical Radio Electronics Research Institute,Shanghai 200233,China)

机构地区:[1]中国航空无线电电子研究所,上海200233

出  处:《航空电子技术》2023年第1期42-46,共5页Avionics Technology

摘  要:针对测试工具TestBed无法动态执行QT程序单元测试用例的问题,文章通过介绍单元测试定义、测试原理以及TestBed工具的使用原理、并指出了TestBed工具对QT程序进行单元测试存在的问题,最终提出了一种结合TestBed和Visual Studio对QT程序进行单元测试的方法,并给出了方法的详细设计与实现步骤,为QT程序动态执行单元测试提供一种简单、便捷的实现方式。实际结果表明,结合TestBed与Visual Studio对QT程序的单元测试方法显著提高了单元测试的效率,减少了单元测试的成本。Aiming at the problem that test tool TestBed cannot dynamically implement unit testing of QT program,in-troduces 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 implemen-tation 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.

关 键 词:QT 单元测试 TESTBED Visual Studio 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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