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

The on_limit_message for the WHILE loop does not output the correct variable value if the variable is updated inside the loop #5124

Open
jasuomi opened this issue May 7, 2024 · 1 comment

Comments

@jasuomi
Copy link

jasuomi commented May 7, 2024

The variable '${message}' is initialized before the WHILE loop, and its value is updated within the WHILE loop. If the WHILE loop times out, 'on_limit_message=${message}' outputs the content of the variable initialized before the loop.

    ${message}    Set Variable    before while loop
    WHILE    ${TRUE}    limit=0.5    on_limit_message=${message}
        ${message}    Set Variable    in while loop
        Sleep    1s
    END

Expected message: in while loop
Actual message: before while loop

@pekkaklarck
Copy link
Member

Yeah, variables in the message are currently replaced when the loop starts. What kind of a use case you have for needing to set the message inside the loop?

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

2 participants