waldenner / robotframework

Automatically exported from code.google.com/p/robotframework
Apache License 2.0
0 stars 0 forks source link

`:FOR` loops without body or without values to loop through should fail #560

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
These two cases should cause a runtime error:

:FOR | ${v} | IN | @{list}
     |      |    |
Some other keywords...

: FOR | ${v} | IN |
      | Log  | ${v} |

In the first case, the for loop contains no steps and in the second there 
are no values to loop through.

This should work regardless whether @{list} is empty or not.

: FOR | ${v} | IN | @{list}
      | Log  | ${v} |

Original issue reported on code.google.com by janne.t....@gmail.com on 24 May 2010 at 9:28

GoogleCodeExporter commented 9 years ago
This is already implemented. This might break some tests (although the 
possibility for 
that is quite low)

Original comment by janne.t....@gmail.com on 26 May 2010 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by janne.t....@gmail.com on 31 May 2010 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by pekka.klarck on 10 Jun 2010 at 2:01