Page 1 of 1

Exit test without throwing exception

Posted: Tue Aug 04, 2015 9:44 am
by rastek
Hi
I want to exit after a step with pass, not continue with rest of actions.

Can not do it with Validate.Exists throws exception, can you help me ?

Thanks,
Rastek.

Re: Exit test without throwing exception

Posted: Wed Aug 05, 2015 2:53 pm
by Fergal
rastek wrote:...I want to exit after a step with pass, not continue with rest of actions....
If you don't want the actions to be implemented, is there a reason why you don't simply remove them from the recording (or disable them)?

Re: Exit test without throwing exception

Posted: Thu Aug 13, 2015 8:19 pm
by rastek
It is a simple condition issue. If a contition is true, I do not want to rest of actions to be called.

Re: App get crashed while tap on element in iOS Instrumented app

Posted: Thu Aug 13, 2015 9:31 pm
by odklizec
Hi,

You will have to use User Code to achieve what you want. There is no way to do this from Recording.

This post should help you with exact code (validate something without throwing exception)...
http://www.ranorex.com/forum/validate-e ... tml#p11288
And this post should help you with skipping all iteration steps (in case you want to skip multiiteration test)...
http://www.ranorex.com/forum/how-to-sto ... tml#p24582