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.
Exit test without throwing exception
-
- Certified Professional
- Posts: 455
- Joined: Tue Feb 18, 2014 2:14 pm
- Location: Co Louth, Ireland
- Contact:
Re: Exit test without throwing exception
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 wrote:...I want to exit after a step with pass, not continue with rest of actions....
Re: Exit test without throwing exception
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
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
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 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