基于图像匹配的GUI自动化测试技术研究
Research on GUI Automated Test Technology Based on Image Matching
摘要: 当前软件更新迭代频率不断加快,但对软件的质量和稳定性要求却依然没有因此降低,测试工作就显得更加重要,而人与软件的交互大部分都是通过GUI来完成的,因此GUI测试是测试工作不可缺少的一环。传统测试工具存在一些典型问题,例如只适应于单一开发框架、断言方式简单、缺乏综合性的测试报告等。为解决上述问题,本文设计并实现了一种基于Airtest的GUI自动化测试框架,通过图像匹配技术来进行控件的定位,完成自动化测试的录制与回放,同时实现多种模式的测试断言以及测试报告的自动生成,提高了测试脚本的可重用性和测试效率。
Abstract:
At present, the update iteration frequency of software is accelerating, but the quality and stability requirements of software are still not reduced, the test work is more important, and most of the interaction between people and software is completed through the GUI, so GUI testing is an indispensable part of the test work. There are some typical problems with traditional testing tools, such as only adapting to a single development framework, simple assertion methods, and the lack of comprehensive test reports. In order to solve the above problems, a GUI automated test framework based on Airtest is designed and implemented, which locates the control through image matching technology, completes the recording and playback of the automated test, and realizes the test assertion of various modes and the automatic generation of test reports, thus improving the reusability of the test script and test efficiency.
参考文献
|
[1]
|
Indeed Editorial Team (2020) What Is a GUI (Graphical User Interface)? Definition, Elements and Benefits.
https://www.indeed.com/career-advice/career-development/gui-meaning
|
|
[2]
|
邱长云. 基于WPF的UI自动化测试系统[J]. 电脑知识与技术, 2020, 16(11): 49-50.
|
|
[3]
|
朱方祥. Windows应用程序自动化测试关键技术设计与实现[D]: [硕士学位论文]. 合肥: 中国科学技术大学, 2018.
|
|
[4]
|
余锦润, 杨丹君, 李波波. 基于位图识别的UI自动化测试研究和应用[J]. 自动化与仪表, 2021, 36(3): 90-94.
|
|
[5]
|
王健, 李亚伟, 朱璇. 使用QTP对Silverlight应用进行自动化测试的研究与实践[J]. 软件, 2014(4): 18-20.
|
|
[6]
|
钱汉伟. GAT:Windows平台下GUI软件自动化测试框架研究[J]. 软件, 2018, 39(3): 72-76.
|
|
[7]
|
吴琼. 基于QTP自动化测试框架的研究与应用[D]: [硕士学位论文]. 合肥: 中国科学院大学, 2015.
|
|
[8]
|
侯津, 顾乃杰, 丁世举, 杜云开. 基于控件路径的跨设备UI自动化测试方法[J]. 计算机系统应用, 2018, 27(10): 240-247.
|
|
[9]
|
Denisov, E.Y., Voloboy, A.G., Biryukov, E.D., et al. (2021) Automated Software Testing Technologies for Realistic Computer Graphics. Programming and Computer Software, 47, 76-87. [Google Scholar] [CrossRef]
|
|
[10]
|
李昕宇, 侯春萍, 王宝亮, 等. 基于图像匹配的移动应用自动化测试方法研究[J]. 计算机工程与应用, 2016, 52(13): 43-47.
|
|
[11]
|
彭新宇. 基于Selenium的Web自动化测试框架研究与实现[D]: [硕士学位论文]. 廊坊: 北华航天工业学院, 2021.
|
|
[12]
|
魏泓安, 单小军, 郑柯, 等. 基于深度学习的SAR与光学影像配准方法综述[J]. 无线电工程, 2021, 51(12): 1361-1372.
|
|
[13]
|
李昌昊. 基于深度学习的图像配准方法研究[D]: [硕士学位论文]. 南昌: 南昌大学, 2021.
|
|
[14]
|
刘凯宇. 面向图像匹配的神经网络优化研究[D]: [硕士学位论文]. 哈尔滨: 哈尔滨工业大学, 2020.
|
|
[15]
|
哈尔滨工业大学(深圳). 一种结合深度学习的图像匹配方法[P]. 中国, CN202110540653.9. 2021-08-10.
|
|
[16]
|
西安理工大学. 基于深度学习的相似图像匹配方法[P]. 中国, CN202010131479.8. 2020-06-30.
|