Internal re-use

As mentioned earlier, repetition within the single test constitutes test re-use internally. Note that the data, if any, involved in different instances of the iterations might come from outside, but the repetition only occurs within the test action.

Loops and flow control

Having gained a good background of the syntax of writing a test, it is time to move on to the most common and convenient way of iteration, that is, a loop. Robot Framework solves this problem through the use of Python styled for loops, but that's easily understandable for the uninitiated as well.

It follows a straightforward syntax, the loop is started with FOR which is a special keyword. This is followed with a variable that is present within the loop. This variable ...

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.