-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Robot Framework Test Automation
By :
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.
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 is followed by a mandatory IN statement. This is followed by the variable or a collection over which the for loop is to run. Like Python loops, the subsequent statements are indented by a single space. As soon as the indentation stops, it is assumed...
Change the font size
Change margin width
Change background colour