Skip to content

[RF 7.3] Variable type conversion ${VAR: type} #81

@hassineabd

Description

@hassineabd

RF 7.3 (https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-7.3.rst) introduced variable type conversion using the syntax ${VAR: type} in the *** Variables *** section and in [Arguments].

*** Variables ***
${VERSION: float}    7.3
${COUNT: int}        42

*** Keywords ***
Example
    [Arguments]    ${count: int}    ${critical: bool}=True

The syllabus currently teaches variable definition and argument types separately, but does not mention that variables and arguments can now declare their type inline using : type syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions