检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:陈俊生[1] 彭莉芬[1] CHEN Jun-sheng;PENG Li-fen(Anhui Vocational College of Electronics&Information Technology,Bengbu 233030,China)
机构地区:[1]安徽电子信息职业技术学院,安徽蚌埠233030
出 处:《长春师范大学学报》2023年第8期54-59,共6页Journal of Changchun Normal University
基 金:安徽省高校自然科学研究重大项目“大数据分析视域下高职校情数据智能分析平台的创新研究与应用”(KJ2021ZD0172);安徽省质量工程项目“大数据技术教学创新团队”(2021jxtd023);安徽省教学研究重大项目“基于高阶思维能力培养的全过程混合式教学模式构建与应用研究”(2022jyxm111);安徽省质量工程项目“示范金课”(2022sfjk005)。
摘 要:针对Web UI页面频繁更新所带来的自动化测试脚本失效问题,在现有基于DOM树的网页元素定位方法基础上,利用新旧版本Web UI页面DOM树的差异和Selenium IDE录制的旧版测试脚本在新版页面上回放所生成的失效XPath路径对原有方法进行改进,提出一种适应性强、定位准确率高、可用于Web UI自动化测试脚本修复的网页元素重定位方法。实验结果表明,该方法不仅减少了网页元素重定位的运算量,还提高了重定位效率和准确率。Aiming at the failure of automated test scripts caused by frequent updates of Web UI pages,based on the existing DOM tree based method for locating web elements,this paper uses the differences between the old and new versions of the DOM tree of Web UI pages and the failure XPath path generated by playback of the old version of the test scripts recorded by Selenium IDE on the new version of the page to improve the original method,and puts forward a new method with strong adaptability,high localization accuracy,high a method for relocating web page elements that can be used for repairing Web UI automated test scripts.The experimental results show that this method not only reduces the amount of computation of page element relocation,but also improves the relocation efficiency and accuracy.
关 键 词:Web UI自动化测试 DOM树 Selenium IDE XPath路径 测试脚本修复 网页元素重定位
分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.227.107.69