針對(duì)JavaScript瀏覽器兼容性的變異測試方法
發(fā)布時(shí)間:2018-05-21 06:21
本文選題:變異測試 + JavaScript; 參考:《計(jì)算機(jī)應(yīng)用》2017年04期
【摘要】:針對(duì)JavaScript瀏覽器兼容性問題缺乏有效的測試方法的問題,基于變異測試技術(shù),對(duì)Web應(yīng)用程序中的JavaScript語言在主流瀏覽器中的兼容性進(jìn)行了分析,設(shè)計(jì)了18個(gè)針對(duì)瀏覽器兼容性錯(cuò)誤的變異算子并開發(fā)了自動(dòng)化的測試工具Compatibility Mutator。該程序使用抽象語法樹(AST)分析JavaScript語法,使用Selenium WebDriver自動(dòng)調(diào)用多個(gè)瀏覽器核心并行執(zhí)行變異測試。通過對(duì)7個(gè)廣泛使用的JavaScript框架的實(shí)驗(yàn),驗(yàn)證了此方法對(duì)每一個(gè)框架都能夠生成一定數(shù)量的變異體,其中對(duì)j Query和YUI框架的變異測試的變異得分分別為43.06%和7.69%,表明了所設(shè)計(jì)的變異算子能夠觸發(fā)瀏覽器兼容性方面的錯(cuò)誤,并且能夠評(píng)估測試用例集的完備性。
[Abstract]:In view of the lack of effective testing methods for JavaScript browser compatibility, the compatibility of JavaScript language in Web applications in mainstream browsers is analyzed based on variation testing technology. This paper designs 18 mutation operators for browser compatibility errors and develops an automated testing tool Compatibility Mutator. This program uses abstract syntax tree to analyze JavaScript syntax, and uses Selenium WebDriver to automatically call multiple browser cores to perform mutation tests in parallel. Experiments on seven widely used JavaScript frameworks show that this method can generate a certain number of variants for each frame. The variation scores of the variation test for j Query and YUI frame are 43.06% and 7.69% respectively, which show that the mutation operator designed can trigger the browser compatibility error and evaluate the completeness of the test case set.
【作者單位】: 北京化工大學(xué)信息科學(xué)與技術(shù)學(xué)院;
【基金】:國家自然科學(xué)基金資助項(xiàng)目(61672085)~~
【分類號(hào)】:TP393.092
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 龔漢生;并行工程設(shè)計(jì)的模擬[J];機(jī)械設(shè)計(jì);1996年06期
2 李金平;劉長星;;GPS控制網(wǎng)起算點(diǎn)兼容性分析[J];技術(shù)與創(chuàng)新管理;2009年02期
3 張建軍;馬駿;陳忠貴;;全球衛(wèi)星導(dǎo)航系統(tǒng)兼容性分析方法研究[J];飛行器測控學(xué)報(bào);2012年02期
4 李文宇,顧昕鈺;WCDMA系統(tǒng)Iur接口兼容性分析[J];移動(dòng)通信;2005年04期
5 戴世宗 ,喬國良 ,萬良君;YH基本繪圖軟件對(duì)圖形設(shè)備的兼容性分析[J];計(jì)算機(jī)工程與科學(xué);1985年01期
6 王W,
本文編號(hào):1918100
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1918100.html
最近更新
教材專著