Hello everyone,
The image base validation fails on my side because of difference between the actual image and the expected one.
I am using the ContainsImage attribute to validate a part of the image that exists. The validation shouldn't fail because there is no difference between the two images.
The problem that Ranorex takes another image of my AUT as an actual image. For example:
I want to test if Ranorex Logo exists in the home page banner:
Homepage banner :
https://imgur.com/a/ajSSRcn
Expected image:
https://imgur.com/X8wuMde
Actual image:
https://imgur.com/CI3Okns
Image based validation fails
Re: Image based validation fails
Hi anouar2002,
I would recommend that you double-check the image editor settings for the comparison screenshot. It seems to me that there may be some part of the banner that is selected in such a way that is causing Ranorex to look at the incorrect area of the banner.
--Jacob
I would recommend that you double-check the image editor settings for the comparison screenshot. It seems to me that there may be some part of the banner that is selected in such a way that is causing Ranorex to look at the incorrect area of the banner.
--Jacob
-
- Posts: 38
- Joined: Thu Feb 27, 2020 2:06 pm
Re: Image based validation fails
Hi Jacob,
Thanks for your reply.
I am using the image editor to select the part of image that I want to validate it. The problem that Ranorex take another part of AUT as actual image which is differenrt from the selected desired image part.
Thanks for your reply.
I am using the image editor to select the part of image that I want to validate it. The problem that Ranorex take another part of AUT as actual image which is differenrt from the selected desired image part.
Re: Image based validation fails
Hi,
Please make sure the display scale is set to 100%. This is extremely important, when it comes to image-based actions Image offset usually indicates that the display scale is set to higher value than 100%.
Please make sure the display scale is set to 100%. This is extremely important, when it comes to image-based actions Image offset usually indicates that the display scale is set to higher value than 100%.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 38
- Joined: Thu Feb 27, 2020 2:06 pm
Re: Image based validation fails
Hi Pavel,
Thanks for your reply.
My display scale is set to 100%. I don't know why Ranorex takes a screenshot from another part of the AUT.
Thanks for your reply.
My display scale is set to 100%. I don't know why Ranorex takes a screenshot from another part of the AUT.