基于导航模型的Web应用测试方法研究
发布时间:2018-03-30 12:57
本文选题:Web应用测试 切入点:导航模型 出处:《华中科技大学》2016年硕士论文
【摘要】:Web应用测试是保障Web应用质量一种非常有效的手段,对提高Web应用的可靠性与安全性至关重要。由于Web应用的一些不同于传统软件的特点,例如动态性,分布式,多样性等,给Web应用的测试带来了极大的挑战。因此,需要对传统软件测试方法进行改善或者研究新的适合Web应用的测试方法。基于模型的Web应用测试技术是一种针对Web应用测试的新途径与方法。通过对Web应用的结构与行为进行分析,构建出对应的模型,然后利用该模型生成测试用例,从而实现Web应用测试的自动化。基于导航模型的Web应用测试方法主要分为导航模型的构建和测试用例生成这两个部分。首先通过对Web应用进行自动的信息提取,得到Web页面中的表单与链接等元素,并分析出各个Web页面之间的导航关系,然后利用得到的Web站点结构信息来构建Web应用的导航模型,同时提出了等价类URL划分的方法来解决导航模型中的状态空间爆炸问题。接着为了使后续Web应用的测试更加自动化,将构建好的导航模型转换成FSM模型,这个过程保证了状态与迁移的不变性。然后利用状态迁移法将FSM模型构造成一棵状态迁移树,同时利用树中状态节点是否与用户存在输入交互这一特性来对状态迁移树进行约简,最后通过遍历约简后的状态迁移树获得所需要的测试用例。实验结果表明,基于导航模型的Web应用测试方法在实际应用中可以有效约简导航模型的状态空间数量,同时生成的测试用例冗余程度更低,能有效减少Web应用的测试成本,实现了预期的研究目标。
[Abstract]:Web application testing is a very effective means to guarantee the quality of Web applications, and it is very important to improve the reliability and security of Web applications. Because of the characteristics of Web applications that are different from traditional software, such as dynamic, distributed, diversity, etc. Testing of Web applications presents a great challenge. Therefore, It is necessary to improve the traditional software testing methods or to study new testing methods suitable for Web applications. The model-based Web application testing technology is a new approach and method for Web application testing. Structure and behavior are analyzed, Build the corresponding model, and then use the model to generate test cases, The Web application test method based on navigation model is mainly divided into two parts: navigation model construction and test case generation. Firstly, the information of Web application is extracted automatically. The form and link elements in the Web page are obtained, and the navigation relationship between each Web page is analyzed, and then the navigation model of the Web application is constructed by using the Web site structure information. At the same time, an equivalent class of URL partition method is proposed to solve the problem of state space explosion in navigation model. Then, in order to automate the test of subsequent Web application, the constructed navigation model is transformed into FSM model. This process ensures the invariance of state and migration. Then the FSM model is constructed into a state transition tree by using the state migration method. At the same time, the feature of whether the state node in the tree interacts with the user is used to reduce the state transfer tree. Finally, the test cases are obtained by traversing the reduced state transfer tree. The experimental results show that, The Web application testing method based on navigation model can effectively reduce the number of state space of navigation model in practical application, at the same time, the redundancy of test cases generated is lower, and the test cost of Web application can be reduced effectively. The expected research goal is achieved.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2016
【分类号】:TP311.53;TP393.09
【参考文献】
相关期刊论文 前4条
1 肖毅;张林;聂笑一;;基于WEB挖掘的网络爬虫设计与实现[J];计算机系统应用;2013年09期
2 陈亚龙;江国华;;基于FSM的Web应用测试用例生成研究[J];电子科技;2013年04期
3 缪淮扣;陈圣波;曾红卫;;基于模型的Web应用测试[J];计算机学报;2011年06期
4 钱忠胜;缪淮扣;陈圣波;;基于ORD和FSM的Web应用的建模与测试[J];计算机科学;2008年09期
相关博士学位论文 前1条
1 刘攀;基于FSM的测试用例生成和测试优化[D];上海大学;2011年
相关硕士学位论文 前2条
1 肖征;基于网络爬虫的网络漏洞扫描检测系统的设计与实现[D];吉林大学;2014年
2 马志媛;基于UML/FSM模型的Web应用测试用例生成[D];西安电子科技大学;2013年
,本文编号:1686003
本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/1686003.html