image validation

Ask general questions here.
mander95
Posts: 58
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: 7470
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});
You do not have the required permissions to view the files attached to this post.
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