节点文献

无线通讯模块自动化测试工具的设计与实现

Design and Development of Automated Testing Tool for Wireless Communication Module

【作者】 刘艳

【导师】 陈雨亭; 干晓鸣;

【作者基本信息】 上海交通大学 , 软件工程, 2012, 硕士

【摘要】 随着近年来计算机信息技术、集成电路技术的高速发展,嵌入式软件越来越多地深入到通讯网络、工业装备、数字家庭、医疗、交通、电子监测等众多领域。嵌入式应用的广泛增长,嵌入式技术的不断发展,嵌入式系统软件硬件相依赖性,实时性等特点增加了软件测试投入的力度,同时软件测试本身是一项繁复艰苦的工作,而通过自动化测试技术来提高软件的质量和可靠性,缩短软件开发周期势在必行。现在市面上已经有很多自动化测试工具,嵌入式软件方面的自动化测试工具也不占少数。其中白盒自动化测试中代码分析,覆盖测试的方法和工具已经比较系统全面,但价格也非常昂贵,但是针对黑盒测试方面,大多数无线通讯公司的测试部门还是采用手工测试。例如在无线通讯模块软件的测试过程中,手工使用电脑键盘输入AT指令来进行软件功能测试。在软件版本递送测试后,测试人员都需要对其基本功能进行常规性全面测试,这其中有一定的重复性,工作量也比较大,况且人工按键输入难免出错,也无法达到覆盖所有测试项的要求。另外,对于只更换Flash存储而不修改软件功能这样的软件版本,需要进行一定量的性能测试来考察软件的可靠性,但是通过手工测试是无法满足的。针对这些现状,并根据无线通讯模块自身软件测试的特点,从功能和性能两个方面考察,使用C++编程语言自主研发设计测试工具,来实现无线通讯模块的自动化测试过程。测试人员可以有目的且容易地规范编写测试脚本,快速掌握测试工具的用法,减轻手工键盘输入的操作,避免手工测试中出现按键错误的现象,也可以将客户反馈问题中的操作指令转化成测试脚本,快速复现反馈问题,从而提高了工作效率。为此,本文首先对无线通讯模块进行了介绍,阐明了无线通讯模块的测试过程及工作原理。然后分析测试工具的一般开发需求和实际需求,介绍了功能和性能测试工具的系统设计,测试脚本的规范管理,接着详细地介绍了功能和性能测试工具各个功能模块的实现,最后通过结合测试工具在实际测试过程中的应用对比,总结了这两种测试工具的优点和不足。本文创新工作如下:1.针对使用AT指令来进行无线通讯模块功能测试,设计了一种自动检查AT指令参数范围的测试工具,并上报测试结果。2.根据嵌入式软件的特性,设计了一种考察软件性能的自动化测试工具。

【Abstract】 For now, with the rapid development of information technology, embeddedsystem have been widely and deeply applied in communication, industrial equipment,digital home, medical instrument, transportation, electronic monitor system in manyareas. With the growth of embedded applications, the development of embeddedtechnology, and the interdependence of software and hardware in embedded system,people should take more efforts in software testing. Thus we can improve the qualityand the reliability of software through auto-testing technology and shorten thesoftware development cycle.There are many automated testing tools in the market. In white-box automatedtest area, it has been more systematic and comprehensive, and almost covers all fields.But as it refers to Black-box automated test, most testing jobs were done manually.For instance, testers need to use keyboard to enter “AT” command in order to testsome functions or features. After every version of software be sent, the testers need todo routine testing of their basic functions, which means it is a labor-consuming work.Furthermore, mistakes are inevitable in such test. And cannot cover all testrequirements. In addition, testers need to do a certain amount of performance tests toexamine the reliability of the software, which just replace the Flash memory without modifying the features, and manual testing cannot be reached.This thesis will discuss solutions from both function and capability to addressthese problems. We can program some testing tools by using “C++” language to testsoftware automatically. Testers can easily write test scripts, then quickly master theusage of test tools Through using testing tools, testers can also operate the customerfeedback into test scripts,which quickly re-current it. The duplication of labor canbe reduced and, work efficiency can be improved..For that, firstly, we introduce thewireless communication module and clarified the testing process and the workingprinciple. Then the requirements of system design and reality are analyzed.According to the results, the development of test tools and management of test scriptscan be recommended. After that, we present each part of the testing tool in detail. Inthe end, we illustrate the pros and cons of these tools.Innovations in this article are as follows:1. We have developed a testing tool which can check the limitation of inputparameters value (AT Commands) and then report test results2. We have designed an auto-test tool to verify the compatibility of softwarebased on the characters of embedded system.

节点文献中: