Handle errors and move to next iteration
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2010
05:52 AM
03-25-2010
05:52 AM
Handle errors and move to next iteration
I am trying to determine the best way to handle errors and then move on to the next iteration of a DDT script. For example, if we get an object not found error that makes the current iteration unrecoverable. At this point I would like to close the application(Terminate if need be) and begin a new iteration with the next row of data.
I'm looking for process. ie. things to check, methods, etc.
Thanks-
Chuck
I'm looking for process. ie. things to check, methods, etc.
Thanks-
Chuck
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2010
09:26 PM
03-25-2010
09:26 PM
Hi Chuck,
This depends on the errors you may get. If you get 'object not found' errors, just use Wait methods (WaitWindow, WaitAliasChild, etc.) to obtain the target object and then check whether its Exists property returns True. If it is True, continue the current iteration, otherwise, skip it by any means your scripting language provides.
This depends on the errors you may get. If you get 'object not found' errors, just use Wait methods (WaitWindow, WaitAliasChild, etc.) to obtain the target object and then check whether its Exists property returns True. If it is True, continue the current iteration, otherwise, skip it by any means your scripting language provides.
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
