-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unable to use variable in keyword more than once : Variable '${arg1}' not found. #95
Comments
Hi @Avnish-Dewan |
Hi @eldaduzman |
Ok, it seems like the problem is when you have 2 coroutines running concurrently and then the robotframework context doesn't necessarily fit the currently running coroutine. In your case, the executed coroutine is A quick fix is to use global variables, or avoid using the same arg more than once per keyword. In the long run I need to think of a why to safely ensure the robotframework context preservation between the keywords. This is a high quality bug :) |
I just ran into the same issue. The workarounds don't work in my case, as I have a fair amount of complexity that I can't rewrite just for performance gains by running async. For me, this means that, for now, I'll bail on doing anything async :( |
@Lakitna I understand, the solution is not simple, it requires maintaining an entire copy of rbf context for all coroutines, I'm working on it, it will take time. |
@eldaduzman That makes sense :) |
Hi,
I am facing an issue while using the variables more than once i.e. If I use a variable more than once in a keyword, it throws an error "Variable '${arg1}' not found.", whereas the first the variable is used , it works fine. I've attached the screenshots of the log files also:
Code:
Here is the trace log for the error:
The text was updated successfully, but these errors were encountered: