首页> 外文期刊>Software Testing, Verification and Reliability >Using combinatorial testing to build navigation graphs for dynamic web applications
【24h】

Using combinatorial testing to build navigation graphs for dynamic web applications

机译:使用组合测试为动态Web应用程序构建导航图

获取原文
获取原文并翻译 | 示例

摘要

Modelling a software system is often a challenging prerequisite to automatic test case generation. Modelling the navigation structure of a dynamic web application is particularly challenging because of the presence of a large number of pages that are created dynamically and the difficulty of reaching a dynamic page unless a set of appropriate input values are provided for the parameters. To address the first challenge, some form of abstraction is required to enable scalable modelling. For the second challenge, techniques are required to select appropriate input values for parameters and systematically combine them to reach new pages. This paper presents a combinatorial approach in building a navigation graph for dynamic web applications. The navigation graph can then be used to automatically generate test sequences for testing web applications. The novelty of our approach is twofold. First, we use an abstraction scheme to control the page explosion problem, where pages that are likely to have the same navigation behaviour are grouped together and are represented as a single node in the navigation graph. Second, assuming that values of individual parameters are supplied manually or generated from other techniques, we combine parameter values such that well-defined combinatorial coverage of input parameter values is achieved. Using combinatorial coverage can significantly reduce the number of requests that have to be submitted while still achieving effective coverage of the navigation structure. We implement our combinatorial approach in a tool, Tansuo, and apply the tool on seven open-source web applications. We evaluate the effectiveness of Tansuo's exploration process guided by t-way coverage, for t = 1,2,3, with respect to code coverage, and find that the navigation structure exploration by Tansuo, in general, results in high code coverage (more than 80% statement coverage for most of our subject applications when dead code is removed). We compare Tansuo's effectiveness with two other navigation graph tools and find that Tansuois more effective. Our empirical results indicate that using pairwise coverage in Tansuoresults in the efficient generation of navigation graphs and effective exploration of dynamic web applications. Copyright © 2016 John Wiley & Sons, Ltd.
机译:对软件系统进行建模通常是自动生成测试用例的挑战性先决条件。对动态Web应用程序的导航结构进行建模特别具有挑战性,因为存在动态创建的大量页面,并且除非为参数提供一组适当的输入值,否则很难到达动态页面。为了解决第一个挑战,需要某种形式的抽象来实现可伸缩的建模。对于第二个挑战,需要使用技术为参数选择适当的输入值,并将它们系统地组合起来以到达新的页面。本文提出了一种为动态Web应用程序构建导航图的组合方法。然后,可以使用导航图自动生成用于测试Web应用程序的测试序列。我们方法的新颖性是双重的。首先,我们使用抽象方案来控制页面爆炸问题,其中可能具有相同导航行为的页面被分组在一起,并在导航图中表示为单个节点。其次,假设各个参数的值是手动提供的或由其他技术生成的,则我们将参数值组合在一起,以实现对输入参数值的明确定义的组合覆盖。使用组合覆盖可以显着减少必须提交的请求数量,同时仍然实现导航结构的有效覆盖。我们在工具Tansuo中实现了组合方法,并将该工具应用于七个开源Web应用程序。在代码覆盖率方面,对于t = 1,2,3,我们评估了以t-way覆盖为指导的Tansuo探索过程的有效性,并发现Tansuo的导航结构探索通常会导致高代码覆盖率(更多删除无效代码后,我们大多数主题应用程序的声明覆盖率都超过80%)。我们将Tansuo的有效性与其他两个导航图工具进行了比较,发现Tansuo更有效。我们的经验结果表明,在Tansu结果中使用成对覆盖可有效生成导航图并有效探索动态Web应用程序。版权所有©2016 John Wiley&Sons,Ltd.

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号