image validation

Ask general questions here.
mander95
Posts: 66
Joined: Tue Jun 21, 2016 7:35 pm

image validation

Post by mander95 » Wed Mar 29, 2017 10:03 pm

I there a way for the contains image function to report an "error' instead of a fail?

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

Re: image validation

Post by odklizec » Thu Mar 30, 2017 8:48 am

Hi,

Simply set Report level on failure to 'Error' and eventually Continue on fail to 'True', if you want your test to continue on image validation failure.

The same (in code) can be achieved with Validate.Otpions, like this...

Code: Select all

Validate.CompareImage(textInfo, Text2000_Screenshot1, Text2000_Screenshot1_Options, Validate.DefaultMessage, new Validate.Options(){ExceptionOnFail=false,ReportLevelOnFailure=ReportLevel.Error});
Attachments
ImageVal.png
ImageVal.png (9.78 KiB) Viewed 408 times
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