Wi-Fi产品自动测试技术研究与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
Wi-Fi测试项目众多,如果单靠测试工程师手动按键来执行所有测试用例,要花费几周时间,时间上不允许,也容易让测试工程师产生疲倦心里,很容易造成测试的遗漏。本课题组设计了一种基于Tcl语言实现的自动测试系统
     该测试系统能自动配置网络参数,按照预先准备好的命令顺序执行,和Wi-Fi产品完成交互式测试过程。测试中间的log文件能自动保存,测试结果能自动判断成功与否。测试效率提高很多倍。
     每当Wi-Fi产品发布一个新的版本,就必须要做回归测试,为了在最短的时间内发现bug,回归测试项的选取就很重要。本课题组利用最小测试集理论,对众多的测试项目进行分析比较,研究不同测试项对测试效率和性能的影响,找到了最能体现Wi-Fi系统的测试案例,实践证明这个最小测试集能够发现绝大部分bug,优化了回归测试。
     如果测试程序本身不稳定,造成经常死机,测试工程师还要花费精力来判断是测试程序问题,还是被测试系统bug。这是不可接受的,这将大大增加测试系统的复杂性,耽误测试进度。所以该自动测试系统的可靠性要求很高。本课题组通过二项实用增强技术优化测试代码,做到代码足够的精炼和简洁,占用计算机内存空间足够小,才不至于内存泄漏,导致测试系统崩溃,大大提高了测试系统的稳定性。
There is a lot of the test items of Wi-Fi. It will spend a few weeks to test all cases if Test Engineer strikes the key to execute it by hand, and the time is unacceptable. Morever, Test Engineer becomes tired and even some cases were omitted. Our task Group designs a kind of auto test system based on Tcl language to implement the test.
     The test system can configure the network parameter automatically, execute the Command orderly according to the rules had been prepared, and communication with Wi-Fi production to finish the process of test alternately. The log file can be saved automatically, the result can be judged automatically to indicate that it is successful or failure. The efficiency is improved severalfold.
     Once a new version of Wi-Fi production is released, the regression test must be executed. It is important to select the items of regression in order to find the bugs in a short time. Our task Group utilize the theory of Minimum test sets to analyse and compare a lot of test items, and find the test cases that can show Wi-Fi function basically. The result proved the Minimum test sets can find a majority of bugs, and optimized the regression test.
     If the test programs is unstable and result in the system is down frequently, it will spend test Engineer much times to judge the problem located in test programs or tested system. This is unacceptable, and will increase the complexity of test system, delay the test plan. It shows that the reliability of auto test system is high grade. Our task Group optimize the test code by two kind of applied technology, make the code is simple and compact. The test progranms uses the memory of computer is small enough to avoid the leakage of memory, and improve the stable of test system greatly.
引文
[1]易观国际,中国Wi-Fi市场白皮书:机遇、动力和挑战2006年4月
    [2]LAN MAN Standards Committee of the IEEE Computer Society.IEEE 802.11a.Wireless LAN Medium Access Control(MAC)and Physical Layer (PHY)specification:High-speed Physical Layer in the 5GHz Band.16September 1999
    [3]LAN MAN Standards Committee of the IEEE Computer Society.IEEE 802.11b.Wireless LAN Medium Access Control(MAC)and Physical Layer (PHY)specification:High-speed Physical Layer Extension in the 2.4GHz Band.16 September 1999
    [4]Cww.net.cn 2006年9月6日09:29 eNet硅谷动力
    [5]高宏,肖雳,罗振东,Wi-Fi认证测试的热点与展望,《现代电信技术》,2007,January P52,
    [6]www.wi-fi.org "WMM Power Save for Mobile and Portable Wi-Fi CERTIFIED(?)Devices" "Wi-Fi CERTIFIED(?)for WMM~(TM)--Support for Multimedia Applications with Quality of Service in Wi-Fi Networks"
    [7]http://www.paralink.com.cn
    [8]王道义,乔陶鹏,Tcl_Tk组合教程(第二版),电子工业出版社,2001年
    [9]刘乃安,无线局域网(WLAN)—原理、技术与应用,西安电子科技大学出版社,2004年
    [10]G Bianchi,Performance analysis of the IEEE 802.11 distributed coordination function.IEEE Journal on Selected Areas in Communications,2000.18(3):535-547.
    [11]邹思轶主编,《Linux嵌入式设计与应用》,清华大学出版社,2002年1月
    [12]孙昌爱,靳若明,刘超,金茂忠 实时嵌入式软件的测试技术[J],小型微型计算机系统,第21卷第9期2000.9 920-924
    [13]姚实颖,肖沙里,谭霞等.软件测试自动化中建立可维护脚本的技术.计算机工程,2003,29(11):79-51
    [14]Brent B.Welch,Practical Programming,中国电力出版社,2002
    [15]张海帆,软件工程(第四版),清华大学出版社,2003
    [16]HARROLD M J,GUPTA R,SOFFA M L.A methodlogy for controlling the size of a test suite[J].ACM Trans.Software Eng.and Methods,1993,2(3):270-285.
    [17]ROTHERMEL G,HAROOL M J.Selecting tests and identifying test coverage requirement for modified software:proc.of the 1994 International Symposium on Software Testing and Analysis[C].Washington,United States:[s.n.],1994:169-184.]
    [18]郑大钟,赵千川,离散事件动态系统,清华大学出版社,北京,2000年
    [19]张巍,夏立.用DES理论测试数模混合电路[J].系统工程与电子技术,2001.Vol.23 No.10.
    [20]聂长海,徐宝文,一种最小测试用例集生成方法,计算机学报,2003,26(12):1690-1695
    [21]中国泰尔实验室http://www.chinattl.com/
    [22]www.marvell.com
    [23]中国协议分析网,“封包探嗅器”http://www.cnpaf.net/Class/SNIFFER/index.html
    [24]赛迪网,“如何测试局域网的网速及数据吞吐量”,http://bbs.tech.ccidnet.com/thread.php?fid=24