Flow control

At times during the loop iteration, there may be cases where the execution needs to be changed, which can be done either to skip the present and continue with the next iteration or to terminate the loop entirely.

Sometimes, the loop contents need to be processed in such a manner, which is not iterative in nature. In this case, we need to issue special commands that allow us to manipulate the contents of the flow of contents within the loop irrespective of the iteration status. In most conventional programming languages, this is specified by the continue and break constructs. Robot Framework offers a similar approach by providing some special keywords for this purpose in its default library.

Breaking off without finishing

By using the ...

Get Robot Framework Test Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.