Reputation: 191
How do I continue on failure in test step using robot framework? Run Keyword And Continue On Failure
jumps on another test case. I do not want to jump to next test case, I want to continue executing all steps in my test case.
Upvotes: 3
Views: 26172
Reputation: 193
Ideally in end to end testing, if any of test step fails then the whole test case should fail. So we have to design automation test cases keeping this in mind. This is the first point.
Secondly, if you have to do something, (like reset a setting, or logout kind of thing) irrespective of your test step execution result, you can use test case level keyword teardown. This the best approach to deal with issue you have.
Upvotes: -1
Reputation: 431
Try
Run Keyword And Ignore Error name , *args
Runs the given keyword with the given arguments and ignores possible error. This keyword returns two values, so that the first is either string 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.
Upvotes: 6