MattS
2 years agoOccasional Contributor
Catch fail in keyword Execution
I am attempting to take a list tests that have been created, loop through it, catching any that fail to be logged in a report at the end.
When I execute the loop:
Try{ run KeywordTest}
catch{ error}
Most errors are not caught. For example, a tested object does not exist on the page, so it errors out and stops execution, rather than catching and continuing.
Is there any method that would allow me to catch such errors and proceed?
The alternative options are to build your own exception handling system, to deal with the appropriate exceptions that you throw - not so easy!
If you have a project suite, with many projects and tests, I find using the project settings, continue running on error, works fine.