信息通信技术与政策

信息通信技术与政策

信息通信技术与政策 ›› 2019, Vol. 45 ›› Issue (11): 79-84.

上一篇    下一篇

图像比对技术在软件自动化测试中的应用探究

Research on application of image comparison technology in software automatic test

  

  • 出版日期:2019-11-15 发布日期:2020-11-20
  • 作者简介:
    苗力元:中国信息通信研究院泰尔系统实验室网络与应用测评部助理工程师
    李启明:中国信息通信研究院泰尔系统实验室网络与应用测评部助理工程师
    刘雅东:中国信息通信研究院泰尔系统实验室网络与应用测评部助理工程师
    郑梦青:中国信息通信研究院泰尔系统实验室网络与应用测评部助理工程师

  • Online:2019-11-15 Published:2020-11-20

摘要: 分析了当前Web 自动化测试工具在软件自动化测试中应用的状况,提出了将图像比对技术引入Web 自动化测试的方法。从现有的Applitools 软件测试平台入手,分析了其功能及结构,给出了将图像比对技术引入Web 自动化测试的系统结构。同时,尝试利用Pillow 和OpenCV库在本地进行图像比对操作,实现了Applitools 在云端的功能。并将其与Selenium 框架相结合,实现了纯本地化的图像自动化测试。最后,对于图像自动化测试提出了可能的发展建议。

关键词: 图像比对, 软件测试, 自动化测试, Web应用测试

Abstract: This paper analyzes the current application of web automation test tools in software automation test, and puts forward a method of introducing image comparison technology into web automation test. Starting with the existing testing platform called applitools, this paper analyzes its function and structure, and presents the system structure of introducing image comparison technology into web automatic test. At the same time, we try to use the pillow and opencv library to compare images locally, and realize the function of applitools in the cloud. And it is combined with selenium framework to realize localization of image automatic testing. Finally, the possible development of image automatic test is proposed.

Key words: image comparison, software test, automation test, web application test