In Robot Framework, there is a keyword Run Keyword And Ignore Error
.
From the manual:
Runs the given keyword with the given arguments and ignores possible error.
This keyword returns two values, so that the first is either 'PASS' or 'FAIL', depending on the status of the executed keyword. The second value is either the return value of the keyword or the received error message. See Run Keyword And Return Status. If you are only interested in the execution status.
The keyword name and arguments work as in Run Keyword. See Run Keyword If for a usage example.
In which situations is this keyword useful?
If I want to continue my test after a failed keyword, I use Run Keyword And Continue On Failure
, in this case I can see in the test report that there was a failed keyword in the test (I don't see it using Run Keyword And Ignore Error
). If I need a status of the executed keyword (and want to continue my test if this keyword failed), I use Run Keyword And Return Status
.
So what are the cases which cannot be covered with either Run Keyword And Continue On Failure
or Run Keyword And Return Status
?