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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.