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

浮力调节软件的单元测试技术研究
引用本文:李磊.浮力调节软件的单元测试技术研究[J].应用声学,2017,25(3):119-122.
作者姓名:李磊
作者单位:中国船舶重工集团公司第七一〇研究所,湖北 宜昌 443000[HJ1.6mm]
摘    要:为了提高嵌入式软件的单元测试效率,同时能达到很好的测试效果,针对嵌入式软件制定单元测试充分性准则和单元测试策略,并使用测试工具对嵌入式软件进行单元测试具有实际意义;以浮力调节软件为例,通过研究基于控制流的单元测试充分性准则,结合浮力调节软件的单元测试需求,提出了针对浮力调节软件的单元测试充分性准则;同时,考虑到圈复杂度和函数节点数对函数正确实现的影响,制定了基于优先级的单元测试策略;利用自动化单元测试工具Testbed搭建了浮力调节软件动态测试环境,通过代码覆盖率分析,帮助创建测试用例以达到单元测试充分性要求,从而实现了浮力调节软件单元测试自动化;在自动化测试工具的帮助下,结合单元测试充分性准则和单元测试策略,最终实现严格而高效的单元测试。

关 键 词:浮力调节软件  单元测试  单元测试充分性准则  单元测试策略  Testbed
收稿时间:2016/9/18 0:00:00
修稿时间:2016/11/21 0:00:00

Research on Unit Testing Techniques of Buoyancy Adjusting Software
Li Lei.Research on Unit Testing Techniques of Buoyancy Adjusting Software[J].Applied Acoustics,2017,25(3):119-122.
Authors:Li Lei
Institution:No.710 Research Institute of CSIC, Yichang 443000, China
Abstract:In order to improve the efficiency of embedded software unit testing, and achieve good testing result in the meantime. It has practical significance to make adequacy criteria and strategy of unit testing and use automatic unit testing tool to accomplish unit testing. Take the buoyancy adjusting software for example, by studying the adequacy criteria of unit testing based on control flow and unit testing requirement of the buoyancy adjusting software, the unit testing adequacy criteria of buoyancy adjusting software has been put forward. Meanwhile, considering the influence of cyclomatic complexity and knots on realizing functions correctly, the unit testing strategy based on priority has been made. The dynamic testing environment is established by Testbed, which is an automatic unit testing tool. By analyzing code coverage, Testbed helped to create test cases to meet the adequacy criteria requirements, thereby realized the automatic unit testing of the buoyancy adjusting software. With the help of automatic unit testing tool, adequacy criteria and strategy of unit testing, rigorous and efficient unit testing has been accomplished in the end.
Keywords:buoyancy adjusting software  unit testing  adequacy criteria of unit testing  unit testing strategy  Testbed
点击此处可从《应用声学》浏览原始摘要信息
点击此处可从《应用声学》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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