With a Ranorex trial (V184.108.40.20666)
Running on Windows 7 SP1
I need to validate that an image is correctly displayed in the application under test.
The image should contain 3 coloured areas (Shown in the actual expected image screenshot)
I captured a screenshot and have tried using both contains & compare image over the area of the image that I want to validate
The image similarity is set as 0.99
When I remove the lowest area and run the test I expect it to fail as the image is very different, the test still passes (Shown in the passed test screenshot)
Am I failing to setup the image validation correctly?
The screenshots are attached in a zip
Ranorex Spy, Recorder, and Studio.
2 posts • Page 1 of 1
It could be that the similarity is just too low. Please, try to increase the similarity to 0.999 or 0.9999.Stu B wrote:The image similarity is set as 0.99
The similarity takes pixel color values into account, i.e the maximum difference is a white to black; dark colors are more similar to black than light colors. The comparison computes a similarity value for each pixel according to the compared colors and sums up this similarity; it is not a number saying how many pixels were completely identical.
Consequently, if the only difference is a small dark spot (compared to black), the two pictures might still be 99% similar although less than 99% of the pixels have identical color.