-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Keyword teardown functionality #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To make it possible to e.g. take a screenshot ONLY when a keyword has failed, we need to enhance |
This issue was updated by revision d2930be57486. Still need to add tests for dry run and update user guide. |
This issue was updated by revision 7b737777349a. |
Added documentation to user guide in revision d1b3adce8af8. |
This issue was updated by revision 50acde4051d4. Docs look good. Did a small enhancement and fixed the example, though. |
Included into 2.6 alpha 1. |
It would be useful to allow user keywords to have their own teardown. This teardown keyword would be executed even if any of the keywords in the user keyword fails, and would naturally be executed as the last keyword if all other keywords pass.
This functionality would be especially useful with the new test template feature when a test has multiple "sub tests". The keyword used as a template could have teardown to make sure that the next "sub test" starts from a known state also if there are failures. Another good use case is taking a screenshot or doing cleanup if certain action fails.
I hope this feature can be included already into RF 2.5.5.
The text was updated successfully, but these errors were encountered: