面向搜索引擎的自动化测试系统的设计与实现
本文选题:自动化测试 + 搜索引擎 ; 参考:《西安电子科技大学》2013年硕士论文
【摘要】:近年来,随着互联网行业的不断发展,搜索引擎的应用范围越来越广,其质量问题日益受到人们的重视。目前,由于缺乏面向搜索引擎的自动化测试系统,测试工作主要由测试人员手工完成,测试效率较低;鉴于搜索引擎功能升级快和测试周期不断缩短等原因,故更难满足测试需求。而使用通用的自动化测试软件测试搜索引擎,如QTP,LoadRunner等,既需支付高额的软件费用,又会因适用性不高而带来测试用例维护困难和执行效率低等问题,最终给企业带来较大的经济负担。 为此,本文设计并实现了面向搜索引擎的自动化测试系统。本文以页面测试框架WebDriver为基础,提出了一种新的测试用例与配置信息解耦方法,该方法利用Leo文件将测试用例与配置信息相剥离,降低了两者的耦合程度,从而降低了测试用例的维护成本;提出了一种新的筛选测试用例方法,该方法通过函数注解筛选出不同浏览器下相应的测试用例,解决了浏览器兼容性问题;提出了一种随机检索法,并以此作为测试用例集的扩充,,降低了漏测率。同时,通过使用基于Django框架的服务器,本系统不仅支持任务查询等常规功能,还支持分布式测试、出错测试用例自动校验等新功能,从而提高了测试效率,降低了误报率。 测试结果表明,该系统对测试用例的维护更方便,测试结果更可靠,执行效率更高,有效地缩短了产品测试时间,解决了搜索引擎前端页面变动频繁给自动化测试系统带来的测试用例维护不便等问题。 由于目前浏览器版本较多,加上偶然因素对测试带来的影响,自动化测试脚本在不同浏览器下表现有所差异。因此,进一步提高浏览器兼容性以降低误报率将是接下来研究的方向。此外,还需建立一个测试用例统一管理平台,来降低测试用例的管理成本。
[Abstract]:In recent years, with the continuous development of the Internet industry, the scope of application of search engines has become more and more extensive, and the quality of search engines has been paid more and more attention. At present, due to the lack of an automated testing system for search engines, the testing work is mainly done by the testers by hand, and the testing efficiency is low. In view of the rapid upgrading of search engine functions and the continuous shortening of the test cycle, Therefore, it is more difficult to meet the test requirements. The use of general automated test software to test search engines, such as QTPN LoadRunner, not only requires high software costs, but also leads to problems such as difficult maintenance of test cases and low execution efficiency due to low applicability. Finally, it will bring a great economic burden to the enterprise. Therefore, this paper designs and implements an automatic test system for search engine. Based on WebDriver, a new decoupling method of test case and configuration information is proposed in this paper. The method uses Leo file to separate test case from configuration information, which reduces the coupling degree between the test case and configuration information. Thus, the maintenance cost of test cases is reduced, and a new method of screening test cases is proposed, which can filter out the corresponding test cases under different browsers by means of function annotations, thus solving the problem of browser compatibility. A random retrieval method is proposed, which is used as an extension of test case set to reduce the leakage rate. At the same time, by using a Django based server, the system not only supports general functions such as task query, but also supports new functions, such as distributed testing, error test case automatic checking, etc., which improves the test efficiency and reduces the false alarm rate. The test results show that the system is more convenient to maintain the test cases, the test results are more reliable, the execution efficiency is higher, and the test time is shortened effectively. It solves the problem of test case maintenance inconvenience caused by frequent changes in front page of search engine. Due to the large number of browser versions and the impact of accidental factors on testing, automated test scripts differ from browser to browser. Therefore, further improving browser compatibility to reduce false alarm rate will be the next research direction. In addition, a unified test case management platform is needed to reduce the cost of test case management.
【学位授予单位】:西安电子科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP311.53
【参考文献】
相关期刊论文 前7条
1 单锦辉,姜瑛,孙萍;软件测试研究进展[J];北京大学学报(自然科学版);2005年01期
2 侯勇;张海林;;自动化测试中的关键字驱动脚本技术[J];电子科技;2006年02期
3 郑俊生;姜敏;;一种基于MVC模式Web开发框架WebWork的研究[J];福建电脑;2008年08期
4 李秋英,刘斌,阮镰;灰盒测试方法在软件可靠性测试中的应用[J];航空学报;2002年05期
5 吴莹;;基于Selenium的Web自动化测试框架[J];科技传播;2011年18期
6 刘雅君;;软件回归测试技术[J];计算机系统应用;2011年07期
7 马瑞芳,王会燃;计算机软件测试方法的研究[J];小型微型计算机系统;2003年12期
相关硕士学位论文 前10条
1 王文娟;基于WATIR和STAF的自动化测试的设计与实现[D];西南交通大学;2011年
2 江新;基于JMeter的MS Web应用系统的性能测试研究[D];南京航空航天大学;2011年
3 冯佳;基于QTP的SAFFRON自动化测试框架的研究[D];华中科技大学;2011年
4 应杭;软件自动化测试技术及应用研究[D];浙江大学;2006年
5 唐凌遥;软件回归测试管理技术[D];国防科学技术大学;2005年
6 刘冬;基于LSGA的最小测试用例集自动生成[D];华中科技大学;2008年
7 周娟;基于Web功能测试的自动化框架实现与应用的研究[D];中南大学;2009年
8 徐淑焕;存储集群平台软件敏捷迭代测试的研究与应用[D];重庆大学;2009年
9 马涤非;Selenium在EMGC系统自动化测试过程中的应用与研究[D];北京交通大学;2010年
10 赵宁;基于QTP的软件回归测试自动化框架的开发与应用[D];上海交通大学;2009年
本文编号:2044098
本文链接:https://www.wllwen.com/kejilunwen/sousuoyinqinglunwen/2044098.html