Validation continue on fail

Class library usage, coding and language questions.
Sajczi
Posts: 9
Joined: Fri Jul 31, 2015 8:24 am

Validation continue on fail

Post by Sajczi » Mon Oct 19, 2015 9:14 am

Hello,
In my recording I have validation with continue on fail (try/catch). Test case goes on if validation is failed, but at the end status is still error. Is there any way to acually use validate function and not get failed test case status?

Sajczi
Posts: 9
Joined: Fri Jul 31, 2015 8:24 am

Re: Validation continue on fail

Post by Sajczi » Mon Oct 19, 2015 9:25 am

I could check validation by writing some code of comparing values and add Report.Info, but its not enough. I would like to have some warning in report log.

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

Re: Validation continue on fail

Post by odklizec » Mon Oct 19, 2015 9:32 am

Hi,

Are you using Validate.Exists or different validation method? Most of the validation methods have exceptionOnFail parameter. If set to "False", failed validation should not throw an exception and therefore not set the test case as failed.

Check this post:
http://www.ranorex.com/forum/validate-e ... tml#p11290
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

pmaladi
Posts: 10
Joined: Thu Aug 17, 2017 9:42 pm

Re: Validation continue on fail

Post by pmaladi » Wed Sep 27, 2017 10:22 pm

with the help of above post, i am able to proceed little bit.. thank you.. :D