Updates:
Summary: New `Break` keyword to exit the for loop
Status: Accepted
Labels: -Type-Defect Type-Enhancement
Comment #1 on issue 502 by pekka.klarck: New `Break` keyword to exit the
for loop
http://code.google.com/p/robotframework/issues/detail?id=502
In general I'm against adding more programming features to the test data
syntax, but
because we've already added the for loop, adding a keyword that can break
it doesn't
make the situation any worse.
A workaround for not having break is using the Fail keyword with a special
message
inside the for loop, and having the for loop in a user keyword that is
executed
inside Run Keyword And Expect Error. One reason I think we should add the
Break
keyword is that this workaround is so ugly but people still use it.
There are so many features already in RF 2.5 that this probably won't be
included to
it. If someone is interested to help with the implementation, testing,
and/or
documentation we can consider adding it, though.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings