In Robot Framework test case, we can create Teardown
phase to do clean-up activities.
| *Test Case* |
| testcase1 |
| | [Setup] | Setup Actions |
| | Do Something | Args |
| | Do Something | Args |
| | [Teardown] | Teardown Actions |
| *Keyword* |
| Teardown Actions |
| | Do Something | Args |
| | Do Something | Args |
In the Teardown
phase, how can we check whether the current test case is Pass or Fail?
I would like to do something when the test case Pass, and do something else when the test case Fail.