manykarim / robotframework-doctestlibrary

Robot Framework DocTest library. Simple Automated Visual Document Testing.
Apache License 2.0
46 stars 20 forks source link

The compared images are equal #21

Closed cloud-devops-enthusiast closed 2 years ago

cloud-devops-enthusiast commented 2 years ago

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. Test1 Test2 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

manykarim commented 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