0
在Robot Framework测试用例中,我们可以创建Teardown
阶段来进行清理活动。在Robot Framework中,在测试用例拆解阶段,如何检查当前测试用例是失败还是通过?
| *Test Case* |
| testcase1 |
| | [Setup] | Setup Actions |
| | Do Something | Args |
| | Do Something | Args |
| | [Teardown] | Teardown Actions |
| *Keyword* |
| Teardown Actions |
| | Do Something | Args |
| | Do Something | Args |
在Teardown
阶段,我们如何能检查当前测试用例是否通过或失败?
我想在测试用例Pass时做某些事情,并在测试用例失败时做其他事情。