期刊文献+

一种用于Web UI自动化测试脚本修复的网页元素重定位方法 被引量:1

A Relocation Method of Web Page Elements for Web UI Automated Test Script Repair
下载PDF
导出
摘要 针对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.
作者 陈俊生 彭莉芬 CHEN Jun-sheng;PENG Li-fen(Anhui Vocational College of Electronics&Information Technology,Bengbu 233030,China)
出处 《长春师范大学学报》 2023年第8期54-59,共6页 Journal of Changchun Normal University
基金 安徽省高校自然科学研究重大项目“大数据分析视域下高职校情数据智能分析平台的创新研究与应用”(KJ2021ZD0172) 安徽省质量工程项目“大数据技术教学创新团队”(2021jxtd023) 安徽省教学研究重大项目“基于高阶思维能力培养的全过程混合式教学模式构建与应用研究”(2022jyxm111) 安徽省质量工程项目“示范金课”(2022sfjk005)。
关键词 Web UI自动化测试 DOM树 Selenium IDE XPath路径 测试脚本修复 网页元素重定位 Web UI automated testing DOM tree Selenium IDE XPath path test script repair page element relocation
  • 相关文献

参考文献9

二级参考文献67

  • 1王浩君,周斌,潘玉良.基于YOLOv3网络的高分光学遥感影像海上舰船分类检测[J].科技通报,2020(3):43-48. 被引量:4
  • 2蒋云,赵佳宝.自动化测试脚本自动生成技术的研究[J].计算机技术与发展,2007,17(7):4-7. 被引量:30
  • 3Jin Hu,Wang Shuo,Chen Nianwei,et al.Finite state machine for automatic GUI testing[C] //Proc of International Conference on Computational Intelligence and Software Engineering.[S.l.] :IEEE Press,2009:1-4.
  • 4Yuan Xun,Cohen M B,Memon A M.GUI interaction testing:Incorporating event context[J].IEEE Trans on Software Engineering,2011,37(4):559-574.
  • 5Miao Huaikou,Qian Zhongsheng,He Tao.Modeling web browser interactions using FSM[C] //Proc of the 2nd IEEE Asia-Pacific Service Computing Conference.[S.l.] :IEEE Press,2007:211-217.
  • 6Winter M.Managing object-oriented integration and regression testing[C] //Proc of the 6th EuroSTAR Conference.1998:123-133.
  • 7Memon A M.Automatically repairing event sequence-based GUI test suites for regression testing[J].ACM Trans on Software Enginee-ring and Methodology,2008,18(2):1-36.
  • 8Memon A M,Soffa M L.Regression testing of GUIs[C] //Proc of the 9th European Software Engineering Conference Held Jointly with 11th ACM SIGSOFT International Symposium on Foundations of Software Engineering.New York:ACM Press,2003:118-127.
  • 9Xie Qing,Grechanik M,Fu Chen.REST:a tool for reducing effort in script-based testing[C] //Proc of IEEE International Conference on Software Maintenance.New York:ACM Press,2008:468-469.
  • 10Grechanik M,Xie Qing,Fu Chen.Maintaining and evolving GUI-directed test scripts[C] //Proc of International Conference Software Engineering.2009:408-418.

共引文献39

同被引文献3

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部