首页> 外文会议>IEEE International Symposium on Software Reliability Engineering >Search-Based Test Data Generation for JavaScript Functions that Interact with the DOM
【24h】

Search-Based Test Data Generation for JavaScript Functions that Interact with the DOM

机译:基于搜索的测试数据生成,用于与DOM交互的JavaScript函数

获取原文

摘要

The popularity of JavaScript (JS) is enormous. Together with HTML and CSS, it is the core technology for modern web development. Because of the dynamic nature and complex interplay with HTML, JS applications are often error-prone and vulnerable. Despite active research efforts to devise intricate static and dynamic analyses to facilitate JS testing, the problem of test data generation for JS code interacting with the DOM has not yet been addressed. In this paper, we present a Javascript Evolutionary testing framework with DOM as an Input, called JEDI. In order to reach a target branch, it applies genetic search for relevant input parameters of the JS function in combination with the global DOM state. We conducted an empirical evaluation to study the effectiveness and efficiency of our testing framework. It shows that the genetic with restart algorithm, proposed in this paper, is able to achieve complete branch coverage for all experimental subjects, taking on average 19 seconds per branch.
机译:JavaScript(JS)的普及是巨大的。与HTML和CSS一起,它是现代Web开发的核心技术。由于具有HTML的动态性和复杂的相互作用,JS应用程序通常会出错并易受攻击。尽管积极的研究努力设计复杂的静态和动态分析,但仍然尚未解决与DOM的JS代码的测试数据生成问题。在本文中,我们将JavaScript进化测试框架与DOM作为输入,称为Jedi。为了到达目标分支,它适用于与全局DOM状态的组合组合JS函数的相关输入参数的遗传搜索。我们对研究框架的有效性和效率进行了实证评价。它表明,本文提出的重启算法的遗传算法能够为所有实验对象实现完整的分支覆盖,平均每分支19秒。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号