Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenameVariables does not work on variable in EXCEPT arguments, nor WHILE limit #711

Open
gohierf opened this issue Sep 4, 2024 · 1 comment

Comments

@gohierf
Copy link

gohierf commented Sep 4, 2024

I recently decided to enable RenameVariables transformer and noticed it missed variables in the EXPECT arguments.

BEFORE
image

AFTER
image

Code to reproduce

My Keyword
    [Arguments]  ${expected error}
    TRY
        No Operation
    EXCEPT  ${expected error}
        No Operation
    END
@gohierf
Copy link
Author

gohierf commented Sep 4, 2024

It does not seem to update the variables used in WHILE's limit option either.

BEFORE

My Keyword
    [Arguments]    ${my condition}    ${my limit}
    WHILE    ${my condition}    limit=${my limit}
        No Operation
    END

AFTER

My Keyword
    [Arguments]    ${my_condition}    ${my_limit}
    WHILE    ${my_condition}    limit=${my limit}
        No Operation
    END

@gohierf gohierf changed the title RenameVariables does not work on variable in EXCEPT arguments RenameVariables does not work on variable in EXCEPT arguments, nor WHILE limit Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant