Exit test without throwing exception

Ask general questions here.
rastek
Posts: 185
Joined: Wed Aug 06, 2014 12:00 pm

Exit test without throwing exception

Post by rastek » Tue Aug 04, 2015 9:44 am

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.

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Exit test without throwing exception

Post by Fergal » Wed Aug 05, 2015 2:53 pm

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)?

rastek
Posts: 185
Joined: Wed Aug 06, 2014 12:00 pm

Re: Exit test without throwing exception

Post by rastek » Thu Aug 13, 2015 8:19 pm

It is a simple condition issue. If a contition is true, I do not want to rest of actions to be called.

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

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

Post by odklizec » Thu Aug 13, 2015 9:31 pm

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
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