Skip to content

Deprecate using for loops with other separators than exact IN, IN RANGE, IN ZIP and IN ENUMERATE #2991

Closed

Description

@pekkaklarck

When creating a for loop in Robot Framework data, the separator between the loop variables and the loop items is, depending on the for loop flavor, either IN, IN RANGE, IN ZIP or IN ENUMERATE. Currently this separator is both case and space insensitive, so also values like in, INZIP or i n r a n g e would all work. This makes it harder to create tooling that can reliably parse Robot's test data, and also complicates Robot's own test data parser. There are no real benefits.

Due to the problems and lack of benefits, a decision has been made to require the for loop markers to use exactly format IN, IN RANGE, IN ZIP and IN ENUMERATE. An added benefit is that the all uppercase style matches the new possibility to create a for loop using all uppercase FOR without the extra colon (#2990). This idea was originally discussed as part of #2783 that proposed also other enhancements to the for loop syntax.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions