Validate.AreEqual stops my test cases instead of assert ?

Ask general questions here.
huzunkaya
Posts: 8
Joined: Tue Feb 03, 2015 7:57 am

Validate.AreEqual stops my test cases instead of assert ?

Post by huzunkaya » Tue Feb 03, 2015 8:12 am

Hi all ,

As i know there is a difference between assert and validate.
Assert stop my test cases but validate keeps continue even if it is not validated.

Now im working on a bank project and using Validate.AreEqual method frequently.

Is there anyway make my test cases continue even if they are validated or not.

Thanks,

huzunkaya
Posts: 8
Joined: Tue Feb 03, 2015 7:57 am

Re: Validate.AreEqual stops my test cases instead of assert ?

Post by huzunkaya » Wed Feb 04, 2015 7:40 am

no one has any idea ? :cry:

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Validate.AreEqual stops my test cases instead of assert ?

Post by krstcs » Wed Feb 04, 2015 3:19 pm

You can wrap your Validate.AreEqual() call in a try/catch block and just ignore the exception that is thrown.


In Ranorex all failures automatically stop the current module because they raise exceptions when validations fail.


If you are using the suite, you can also right-click on the test cases and select the error behavior.

You can find more information about the error behavior settings in the user guide.
Shortcuts usually aren't...