image, element comparison

Question

About image comparison to verify whether the page is right or not

I ran a test case after putting a object’s image path its own and using two function, “wait for image present”, “verify image present”
The exepected image and result image were different but it was not fail but success.

These are my questions.

– the regular process of image comparison
1. find an element based on Xpath
2. capture the image(element)
3. show ‘success’ if the captured image and the original image are 100% matched by pixel

– If I understand right, what am I supposed to do to fix this problem?

solved 0
How to 5 Answer 121 views

About the Author

Answers ( 5 )

  1. duyluong
    This comment is edited.

    Hi Kim,

    Verify Image Present only check the image of the object that presents on the current page or not. The keyword is passed if the actual image are matched >= 75% compared with the original image.

    Thanks.

    Best answer
  2. I’ve successfully used  http://www.frontendtest.org/blog/screenshot-comparison/  to do image comparisons.  It was simple to integrate with Katalon and does a fuzzy compare of the images.

Leave an answer