Skip to content

[BUG] Global variable detection raised error message #321

@jchabrol

Description

@jchabrol

Describe the bug
A global variable create with a Set Test Variable wasn't detected and this variable wasn't see as defined

Steps To Reproduce

*** Keywords ***
Operator Triggers A Backup
    ${backup}       Post   ${URL}
    Set Test Variable       ${BACKUP_NAME_TEST_VAR}     ${backup}

The Backup Is Successfully Created
    [Arguments]     ${backup}=${BACKUP_NAME_TEST_VAR}
    ${backup_list}      Get   ${URL_LIST}
    Should Contain      ${backup_list}      backup/${backup[0]}

The error message is raised
Variable '${BACKUP_NAME_TEST_VAR}' not found.robotcode.namespace(VariableNotFound)

Expected behavior
The error message should not be raised as the variable is "globaly" defined

Screenshots/ Videos
image
image

Logs
Variable '${BACKUP_NAME_TEST_VAR}' not found.robotcode.namespace(VariableNotFound)

Desktop (please complete the following information):
Version: 1.93.1
Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 6.8.0-45-generic snap

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions