Closed cloud-devops-enthusiast closed 2 years ago
Thank you for reporting this bug. It is caused by the different dimensions of the images. And of course it should be FAILED in such a case.
Please see below how it looks like with the latest DEV Version
Compare Images For Bug | FAIL | The compared images have different dimensions: reference:(326, 480, 3) candidate:(903, 1200, 3)
You can install the next pre-release via the following command, in case you want to try it:
pip install --upgrade --pre robotframework-doctestlibrary
Hey Many, I am reporting this issue, in which i am comparing two images using the robotframework-doctestlibrary. But showing it as "The compared images are equal". I have installed all the needed dependencies. Below are images which i am comparing.
Below is the snap from the report.
Documentation:
Compares the documents/images reference_image and test_image. Start / End / Elapsed: 20211005 12:02:15.751 / 20211005 12:02:15.805 / 00:00:00.054 12:02:15.805 INFO Compare Image Object created in 0.0079 seconds Compare Image Object created in 0.0391 seconds The compared images are equal Visual Image comparison performed in 0.0064 seconds
I have tried the following solutions from issues: https://github.com/manykarim/robotframework-doctestlibrary/issues/13#issuecomment-835470767 https://github.com/manykarim/robotframework-doctestlibrary/issues/18#issuecomment-852819588