如何在Robot Framework中比较两个图像 [英] How to compare two images in Robot Framework
问题描述
我是自动化的新手,想要自动化一个HTML5后端并包含canvas元素的网站。
我想比较画布图像和存储的图像。
对于图像比较,我需要使用机器人框架。
我曾尝试使用robotframework-imagehorizonlibrary库但仍然测试用例失败了。
任何人都可以帮助我。
I am new in automation and want to automate a site whose back-end in HTML5 and containing canvas element. I want to compare canvas images with my stored image. For image comparison I need to use robot framework. I had tried with "robotframework-imagehorizonlibrary" library but still testcases were failed. Can any one please help me.
谢谢。
推荐答案
我建议 RobotAppEyes库
,这基本上是一个扩展版本 Selenium2
库,它实际上有一个名为的关键字比较图像
。
I would suggest the RobotAppEyes Library
, which is basically an extended version of Selenium2
library, and it actually has a keyword named Compare Images
.
将其用作以下内容:
比较图像< path,imagename = None,ignore_mismatch = False,includeEyesLog = False ,httpDebugLog = False>
详情请见: http://navinet.github.io/Robot-AppEyes/RobotAppEyes-KeywordDocumentation.html
这篇关于如何在Robot Framework中比较两个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!