From the course: Robot Framework Test Automation: Level 2

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Loops

Loops

- [Instructor] Another great aspect of flow control is looping and looping is very powerful and only limited to your imagination. The looping syntax is brought to us by the built in library, the same as conditionals, and it really just allows us to repeat things over and over again. And the uses for looping could be to stress test an application. To do lots of logins or lots of enrollments, or things like that. It's certainly not load testing by any means but it gives you the ability to repeat things many, many times instead of having a human doing it. You could also walk through lists and perform specific actions with each item in that list. You can repeat certain actions with different values. You can perform mathematically sequenced algorithms and what I mean by that is instead of just entering one, two, three, four, five, you could do a loop that steps up in certain increments and then perform some math on that particular value, so you wind up with some iterating series of values…

Contents