![](/img/trans.png)
[英]How to use 'Exit For Loop IF' keyword with multiple condition in Selenium Robot framework
[英]Robot Framework: Continue FOR loop if any keyword fails inside the loop
在机器人框架中,即使循环内的任何关键字失败,我也想继续循环。 例如,我有如下所示的代码:
FOR ${member} IN @{all data members}
Keyword 1 ${member}
Keyword 2 ${member}
..............
Keyword n ${member}
END
如果任何关键字(例如关键字 2)失败,FOR 循环执行应该继续。
您可以在每个关键字之前使用关键字Run Keyword And Continue On Failure
或使用关键字Run Keyword And Return Status
并手动处理错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.