![](/img/trans.png)
[英]In Robot Framework, in the test case teardown phase, how to check whether the current test case is fail or pass?
[英]ROBOT FRAMEWORK: How to make test teardown execute only if test case fails?
我可以在标题中使用“TEST TEARDOWN”关键字,但这会在每个测试用例之后执行。 有什么方法可以在代码中执行,使其仅在测试用例失败时执行,否则跳过?
"为该案例创建了关键字Run Keyword If Test Failed<\/a> 。 最好随时准备好 Robotframework 文档(并至少浏览一次)。
这里有一个关于它的特别说明:
This keyword can only be used in a test teardown. Trying to use it anywhere else results in an error.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.