基于黑盒的GUI回归测试脚本修复方法

Weina Jiang, Xiaozhe Li, Xinming Wang
{"title":"基于黑盒的GUI回归测试脚本修复方法","authors":"Weina Jiang, Xiaozhe Li, Xinming Wang","doi":"10.1109/ICDH.2018.00035","DOIUrl":null,"url":null,"abstract":"Testing applications with GUI is one of the most tedious tasks in software development. Test automation alleviates this burden by executing scripts that simulate how users interact with GUI. However, in practice efforts spent on developing GUI test automation scripts can be wasteful when the application evolves and modifies GUI components that are referenced by the scripts. In this paper, we propose a new test script repair framework to address this problem. The framework of our method consists of three main modules. Firstly, the script processing module calculates a similarity matrix of each script pair. Secondly, the code analysis module maintains an object repair map which is used to store repair operations. Finally, the script update module applies the map to the scripts under repair. The repair rate of our method keeps increasing with more test script pairs provided and it could be more than 95%. Experiments also show that our method is better than the tool for scrip maintaining within QTP not only in repair rate but also in time consuming.","PeriodicalId":117854,"journal":{"name":"2018 7th International Conference on Digital Home (ICDH)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"A Black-Box Based Script Repair Method for GUI Regression Test\",\"authors\":\"Weina Jiang, Xiaozhe Li, Xinming Wang\",\"doi\":\"10.1109/ICDH.2018.00035\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Testing applications with GUI is one of the most tedious tasks in software development. Test automation alleviates this burden by executing scripts that simulate how users interact with GUI. However, in practice efforts spent on developing GUI test automation scripts can be wasteful when the application evolves and modifies GUI components that are referenced by the scripts. In this paper, we propose a new test script repair framework to address this problem. The framework of our method consists of three main modules. Firstly, the script processing module calculates a similarity matrix of each script pair. Secondly, the code analysis module maintains an object repair map which is used to store repair operations. Finally, the script update module applies the map to the scripts under repair. The repair rate of our method keeps increasing with more test script pairs provided and it could be more than 95%. Experiments also show that our method is better than the tool for scrip maintaining within QTP not only in repair rate but also in time consuming.\",\"PeriodicalId\":117854,\"journal\":{\"name\":\"2018 7th International Conference on Digital Home (ICDH)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-11-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2018 7th International Conference on Digital Home (ICDH)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICDH.2018.00035\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 7th International Conference on Digital Home (ICDH)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICDH.2018.00035","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

使用GUI测试应用程序是软件开发中最乏味的任务之一。通过执行模拟用户如何与GUI交互的脚本,测试自动化减轻了这种负担。然而,在实践中,当应用程序发展并修改由脚本引用的GUI组件时,花费在开发GUI测试自动化脚本上的努力可能是浪费的。在本文中,我们提出了一个新的测试脚本修复框架来解决这个问题。我们的方法框架由三个主要模块组成。首先,脚本处理模块计算每个脚本对的相似度矩阵。其次,代码分析模块维护一个对象修复图,用于存储修复操作。最后,脚本更新模块将映射应用于正在修复的脚本。随着提供的测试脚本对的增加,我们的方法的修复率不断提高,可以达到95%以上。实验结果表明,该方法不仅在修复率上优于QTP内的脚本维护工具,而且在耗时上也优于QTP内的脚本维护工具。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
A Black-Box Based Script Repair Method for GUI Regression Test
Testing applications with GUI is one of the most tedious tasks in software development. Test automation alleviates this burden by executing scripts that simulate how users interact with GUI. However, in practice efforts spent on developing GUI test automation scripts can be wasteful when the application evolves and modifies GUI components that are referenced by the scripts. In this paper, we propose a new test script repair framework to address this problem. The framework of our method consists of three main modules. Firstly, the script processing module calculates a similarity matrix of each script pair. Secondly, the code analysis module maintains an object repair map which is used to store repair operations. Finally, the script update module applies the map to the scripts under repair. The repair rate of our method keeps increasing with more test script pairs provided and it could be more than 95%. Experiments also show that our method is better than the tool for scrip maintaining within QTP not only in repair rate but also in time consuming.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Adaptive Weighted Deformable Part Model for Object Detection A Wifi Positioning Method Based on Stack Auto Encoder Design and Implementation of Web-Based Dynamic Mathematics Intelligence Education Platform Domain Knowledge Driven Deep Unrolling for Rain Removal from Single Image A New Image Block Encryption Method Based on Chaotic Map and DNA Encoding
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1