分布式浏览器自动化测试系统的设计与实现
发布时间:2018-03-31 19:12
本文选题:分布式 切入点:浏览器 出处:《华南理工大学》2014年硕士论文
【摘要】:当前的浏览器开源代码WebKit作为开源项目,提交代码的有几百人,它是通过自动化测试来保证其软件质量的。自动化测试作为WebKit的一个官方测试集,一直紧跟着WebKit代码进行跟新。每一次代码提交,WebKit都要求先跑自动化测试,自动化测试的所有案例都是预期的结果才允许提交。 当前的自动化测试案例集有27000多个测试案例(测试案例在不断增加),其中包含了css、排版、javascript、DOM、加载、编辑、事件处理等方方面面,基本对HTML相关标准进行了完整的覆盖。因此,目前的自动化测试的目的主要是测试浏览器内核对HTML相关标准(包括CSS标准及JavaScript标准)的支持程度,并且防止在修改/添加代码后在标准方面对其他模块产生不良影响。 但是目前面向手机客户端的自动化测试存在一个问题,就是完整运行一次所花费的时间太久。使用开源浏览器提供的自动化测试程序,,完整的运行一次花费的时间在5个小时以上。造成这种结果的主要原因在于测试案例数量庞大,目前总共有三万个以上的测试案例。如此低效的测试效率是无法保证每次修改的代码质量的,因此迫切需要提供一种更高效的测试架构来大大缩短一次完成的测试所花费的时间。 本文所述的面向移动终端浏览器的分布式自动化测试架构是为了解决这一个问题而提出的。在本文中,首先分析了研制该系统的必要性和可行性,之后又分析了本课题实现过程中用到的一些基础理论,然后对系统进行了详细分析,进行了详细的设计和实现部分的论述,最后阐述本课题的关键技术点并对论文做了总结。
[Abstract]:The current browser open source code WebKit as an open source project with hundreds of people submitting code through automated testing to ensure the quality of its software.Automated testing, as an official set of WebKit tests, has been followed by WebKit code.For each code submission, WebKit requires that automated tests be run first, and that all cases of automated testing are allowed to be submitted with the expected results.At present, there are more than 27000 test cases in the automated test case set (the test cases are increasing, including CSS, typesetting, javascript doom, loading, editing, event handling, etc., which basically cover the relevant standards of HTML.Therefore, the purpose of current automated testing is to test the degree of support of browser kernel to HTML related standards (including CSS standard and JavaScript standard), and to prevent bad influence on other modules after modifying / adding code.But one problem with automated testing for mobile phone clients is that it takes too long to run it once.Using an automated test program provided by an open source browser, it takes more than 5 hours to run a complete test.The main reason for this result is that there are more than 30,000 test cases.Such inefficient testing efficiency can not guarantee the code quality of each modification, so it is urgent to provide a more efficient test architecture to greatly shorten the time spent on a completed test.The distributed automated testing architecture for mobile terminal browsers is presented in this paper to solve this problem.In this paper, firstly, the necessity and feasibility of developing the system are analyzed, then some basic theories used in the realization of this subject are analyzed, and then the system is analyzed in detail.Detailed design and implementation of the part of the discussion, at last this paper describes the key technical points and summarizes the paper.
【学位授予单位】:华南理工大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.092
【参考文献】
相关期刊论文 前3条
1 杨怡君;黄大庆;;Android手机自动化性能测试工具的研究与开发[J];计算机应用;2012年02期
2 闫会强,许静,杨冰,韩维桓;分布式软件测试系统的设计与实现[J];南开大学学报(自然科学版);2003年04期
3 于海澍;;计算机软件测试技术概述[J];科技资讯;2009年09期
本文编号:1692064
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/1692064.html