【发布时间】:2014-09-13 11:26:18
【问题描述】:
在 Robot Framework 测试用例中,我们可以创建Teardown 阶段来进行清理活动。
| *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还是Fail?
我想在测试用例通过的时候做点什么,在测试用例失败的时候做点别的。
【问题讨论】:
标签: python robotframework testcase test-framework teardown