Next: , Previous: complete keyword, Up: Test Case control


5.7.12 loop keyword

The loop keyword is used to repeat a section of the test case file for the specified number of iterations. The section to be repeated is enclosed with the loop and endloop keywords.

Argument
Loop times
The loop count, that is, the number of times that the loop is executed.
Optional argument
msec
(optional) This keyword says that "Loop times" argument stands for the time in milliseconds during which loop will be looped

The loop keyword can be used, for example, in the following way:

     loop 5
     // execute this 5 times
     print pa ra me ter
     endloop