Hi,
I would like to know if there is any way to skip an iteration without throwing any exception. Currently I have implemented as in the screenshot and it throws error (screenshot attached)...
Thanks,
Shekhar
Skipping an iteration without reporting an error
-
- Posts: 24
- Joined: Thu Feb 06, 2014 10:57 am
Skipping an iteration without reporting an error
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Skipping an iteration without reporting an error
Hi Shekhar,
Here in our forum a similar problem was discussed once.
Please have a look at this post. There is also a sample project attached, where you can see in detail which code is used in the recording module.
Please let us know if this helps you to solve your problem.
Regards,
Markus (S)
Here in our forum a similar problem was discussed once.
Please have a look at this post. There is also a sample project attached, where you can see in detail which code is used in the recording module.
Please let us know if this helps you to solve your problem.
Regards,
Markus (S)
-
- Posts: 24
- Joined: Thu Feb 06, 2014 10:57 am
Re: Skipping an iteration without reporting an error
Hi Markus,
Thanks for the reply.
I tried the solution suggested in your sample but it seems the iteration is just skipped in Report but actually gets executed. [see attachment of the sample]
What I really was looking for is the iteration should not be executed at all.
I had earlier gone through this example.
Let me know if I am missing something here.
Thanks,
Shekhar
Thanks for the reply.
I tried the solution suggested in your sample but it seems the iteration is just skipped in Report but actually gets executed. [see attachment of the sample]
What I really was looking for is the iteration should not be executed at all.
I had earlier gone through this example.
Let me know if I am missing something here.
Thanks,
Shekhar
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Skipping an iteration without reporting an error
Hi Shekar,
Unfortunately it is not possible to skip an iteration out of the box. Probably you have to use undocumented API methods but this is not recommended and we do not guarantee for any side-effects. We also preserve the right to change internal methods at any time.
Regards,
Markus (S)
Unfortunately it is not possible to skip an iteration out of the box. Probably you have to use undocumented API methods but this is not recommended and we do not guarantee for any side-effects. We also preserve the right to change internal methods at any time.
Regards,
Markus (S)
Re: Skipping an iteration without reporting an error
Hi Shekhar,
I was in a need of something similar (to skip all remaining iterations after an error) and I was provided with a solution (using undocumented API methods). Check out this post:
http://www.ranorex.com/forum/how-to-sto ... tml#p24582
It would be great to have something more official, but so far it works as expected. Hope it helps to you too?
I was in a need of something similar (to skip all remaining iterations after an error) and I was provided with a solution (using undocumented API methods). Check out this post:
http://www.ranorex.com/forum/how-to-sto ... tml#p24582
It would be great to have something more official, but so far it works as expected. Hope it helps to you too?
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