General information:
Description
As you include the library into the robot it binds itself into the robot test case and does not matter which robot keyword has failed makes a screenshot and binds the screenshot into the log under the failing keyword.
It is possible and i could be implementing it and make a PR if you think this feature could be useful.
This feature would be an optional feature which could activated or deactivated through an initial argument while importing the library. Or another keyword.
Enable Taking Screenshot on Keyword Fail
Disable Taking Screenshot on Keyword Fail
or
Library ScreenCapLibrary onFail=${True}
Library ScreenCapLibrary onfail=${False}
General information:
Description
As you include the library into the robot it binds itself into the robot test case and does not matter which robot keyword has failed makes a screenshot and binds the screenshot into the log under the failing keyword.
It is possible and i could be implementing it and make a PR if you think this feature could be useful.
This feature would be an optional feature which could activated or deactivated through an initial argument while importing the library. Or another keyword.
Enable Taking Screenshot on Keyword Fail
Disable Taking Screenshot on Keyword Fail
or
Library ScreenCapLibrary onFail=${True}
Library ScreenCapLibrary onfail=${False}