[英]Robot Framework: Continue FOR loop if any keyword fails inside the loop
In the robot framework, I want to continue For Loop even if any keyword fails inside the Loop.在机器人框架中,即使循环内的任何关键字失败,我也想继续循环。 For example, I have the code as shown below:
例如,我有如下所示的代码:
FOR ${member} IN @{all data members}
Keyword 1 ${member}
Keyword 2 ${member}
..............
Keyword n ${member}
END
If any keyword (eg Keyword 2) fails, the FOR loop execution should continue.如果任何关键字(例如关键字 2)失败,FOR 循环执行应该继续。
You could use keyword Run Keyword And Continue On Failure
before each keyword or use keyword Run Keyword And Return Status
and manually handle errors.您可以在每个关键字之前使用关键字
Run Keyword And Continue On Failure
或使用关键字Run Keyword And Return Status
并手动处理错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.