Skip to content

Consistent usage of Boolean arguments in standard libraries #2038

@pekkaklarck

Description

@pekkaklarck

Many keywords in libraries distributed with Robot Framework accept optional flag-like arguments that are defined like option=False. How to enable such option depends slightly on the library. To make the situation more consistent, we have decided to use implement a generic utility function that all libraries can use that behaves like this:

  • With non-string values, just return results of bool(value).
  • Consider empty string and strings false and no (case-insensitively) to be False and other strings True.

All libraries using the new utility will also need a generic documentation section explaining the usage.

Libraries to go through:

  • BuiltIn
  • Collections
  • DateTime
  • Dialogs
  • OperatingSystem
  • Process
  • Screenshot
  • String
  • Telnet
  • XML

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions