面向搜索引擎的自动化测试系统的设计与实现-计算机技术专业毕业论文.docxVIP

  • 20
  • 0
  • 约5.43万字
  • 约 72页
  • 2019-05-11 发布于上海
  • 举报

面向搜索引擎的自动化测试系统的设计与实现-计算机技术专业毕业论文.docx

摘要 近年来,随着互联网行业的不断发展,搜索引擎的应用范围越来越广,其质 量问题日益受到人们的重视。目前,由于缺乏面向搜索引擎的自动化测试系统, 测试工作主要由测试人员手工完成,测试效率较低;鉴于搜索引擎功能升级快和 测试周期不断缩短等原因,故更难满足测试需求。而使用通用的自动化测试软件 测试搜索引擎,如 QTP,LoadRunner 等,既需支付高额的软件费用,又会因适用 性不高而带来测试用例维护困难和执行效率低等问题,最终给企业带来较大的经 济负担。 为此,本文设计并实现了面向搜索引擎的自动化测试系统。本文以页面测试 框架 WebDriver 为基础,提出了一种新的测试用例与配置信息解耦方法,该方法 利用 Leo 文件将测试用例与配置信息相剥离,降低了两者的耦合程度,从而降低 了测试用例的维护成本;提出了一种新的筛选测试用例方法,该方法通过函数注 解筛选出不同浏览器下相应的测试用例,解决了浏览器兼容性问题;提出了一种 随机检索法,并以此作为测试用例集的扩充,降低了漏测率。同时,通过使用基 于 Django 框架的服务器,本系统不仅支持任务查询等常规功能,还支持分布式测 试、出错测试用例自动校验等新功能,从而提高了测试效率,降低了误报率。 测试结果表明,该系统对测试用例的维护更方便,测试结果更可靠,执行效 率更高,有效地缩短了产品测试时间,解决了搜索引擎前端页面变动频繁给自动 化测试系统带来的测试用例维护不便等问题。 由于目前浏览器版本较多,加上偶然因素对测试带来的影响,自动化测试脚 本在不同浏览器下表现有所差异。因此,进一步提高浏览器兼容性以降低误报率 将是接下来研究的方向。此外,还需建立一个测试用例统一管理平台,来降低测 试用例的管理成本。 关键词:自动化测试 搜索引擎 配置文件解耦 随机检索法 浏览器兼容性 Abstract With the development of the Internet, the range of applications for search engine has become wider and wider, thus increasing attention has been paid to its quality. Nowadays, since there are no automated testing systems for search engine, the test work is mainly done manually by testers, and the efficiency of the test is quite low. In addition, because the functions of search engine upgrade frequently and the test cycle has been shortened, it is difficult to meet the demand for testing. However, when common automated test software such as QTP and LoadRunner are used, the high fees for software and the difficulty in maintaining test cases caused by low suitability bring great economic burden to the enterprise. In this case, an automated testing system is designed and implemented in this paper. Based on Web testing framework WebDriver, a new method using Leo files to decouple the test cases and configuration information is proposed in this paper, thus reducing the cost of maintaining the test cases. A method which is used to screen the test cases is proposed, which screens the corresponding test cases under different browsers by annotations, thus solving the problem of browser compatibility. A random

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档