-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Script fails when variable is set in command line. Workaround is to Evaluate the variable. #4323
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
Comments
workout is just making that string to convert to proper variable. Difference Convert Date ${60} https://robotframework.org/robotframework/latest/libraries/DateTime.html#Epoch%20time |
In other words |
Yes. |
Ah ok. So I replaced the workaround by I also checked what happens with or without asserting the integer type when I run |
Values you give from the command line are strings. Thus if you want a value you pass like Being able to pass non-string values from the command line would be sometimes handy. We already have #2946 about that so this issue can be closed. |
I don't understand why I need to use the workaround in line 12:
Given line 12 is active
When I call robot --variable EPOCHDATE:60 callWithArgument.robot
Then the result is PASS.
Given line 12 is commented
When I call robot --variable EPOCHDATE:60 callWithArgument.robot
Then the result is FAIL.
Given line 12 is commented
When I call robot callWithArgument.robot
Then the result is PASS.
The text was updated successfully, but these errors were encountered: