Page 1 of 1

Validate.AreEqual stops my test cases instead of assert ?

Posted: Tue Feb 03, 2015 8:12 am
by huzunkaya
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,

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

Posted: Wed Feb 04, 2015 7:40 am
by huzunkaya
no one has any idea ? :cry:

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

Posted: Wed Feb 04, 2015 3:19 pm
by krstcs
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.