How to Change Image Based Validation, Expected Similarity?

Ask general questions here.
Fergal
Certified Professional
Certified Professional
Posts: 333
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

How to Change Image Based Validation, Expected Similarity?

Post by Fergal » Mon Jan 20, 2020 1:31 pm

Ranorex 9.1.2

The Ranorex solution has the following setting:

Settings > Imaging > Similarity threshold: 0.95

When a CompareImage validation test step is run it fails with the following message:
Screenshot of item '...[Item Name]...' does not match the specified image (similarity actual='0.999913498265132', expected='1').
How can I change the expected similarity from 1 to 0.95 for the image validation test step?

Thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6181
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to Change Image Based Validation, Expected Similarity?

Post by odklizec » Mon Jan 20, 2020 1:48 pm

Hi,

If default setting of Similarity threshold (in Settings) is set to 0.95, any new image validation action should be created with this threshold value. However, this setting does not affect previously created image validation actions! If the problematic image validation action has been created before you changed the Similarity threshold value, you must change the similarity value manually (for each image validation action). You can do this by selecting Image validation action (in Recording table), expanding "Image based" property and there you can find "Similarity" property...
Attachments
Similarity.png
Similarity.png (32.78 KiB) Viewed 219 times
Last edited by odklizec on Mon Jan 20, 2020 2:01 pm, edited 1 time in total.
Pavel Kudrys
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

Fergal
Certified Professional
Certified Professional
Posts: 333
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: How to Change Image Based Validation, Expected Similarity?

Post by Fergal » Mon Jan 20, 2020 2:00 pm

Thanks very much odklizec, that is exactly what I was looking for.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6181
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to Change Image Based Validation, Expected Similarity?

Post by odklizec » Mon Jan 20, 2020 2:15 pm

You are welcome ;)
Pavel Kudrys
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