I am assuming that we are taking about python keywords.
> I tried to do a convert to number in robot framework and send that value, but it gets sent as a string
This is expected functionality, in most of the cases. More details are in the user guide [1].
> Perhaps I can change the python function parameters but I have not specified them as float, but convert them later with float () in the function to do the arithmetic and return the value
Python is strongly and dynamically typed language. So if your code will require other type than string, you must explicitly convert the arguments to some other type.
> I get an error that I cannot convert to float.
With out seeing the exact error message, it is hard to say for sure, but I would assume that you are converting something to a number which cannot be converted to a number. Example float('foobar') would throw an exception.
-Tatu
[1] http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#argument-types
Ugh
Without seeing the whole stack trace, it is impossible for me to say anything concrete. Run the test with loglevel set as trace [1] and one is able to see the whole stack trace in the log. Then could you send the whole stack trace and if possible the relevant lines of code to us and perhaps then we are able to help you.
-Tatu
Send from my mobile
[1] http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#setting-log-level
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Ugh
Without seeing the whole stack trace, it is impossible for me to say anything concrete. Run the test with loglevel set as trace [1] and one is able to see the whole stack trace in the log. Then could you send the whole stack trace and if possible the relevant lines of code to us and perhaps then we are able to help you.
-Tatu
Send from my mobile
[1] http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#setting-log-level
On 19 Dec 2014 13:56, <steve....@gmail.com> wrote:
no, it is not a series of letters, but a value, like 9.92--
Le vendredi 19 décembre 2014 01:54:27 UTC-5, Tatu Aalto a écrit :I am assuming that we are taking about python keywords.
> I tried to do a convert to number in robot framework and send that value, but it gets sent as a string
This is expected functionality, in most of the cases. More details are in the user guide [1].
> Perhaps I can change the python function parameters but I have not specified them as float, but convert them later with float () in the function to do the arithmetic and return the value
Python is strongly and dynamically typed language. So if your code will require other type than string, you must explicitly convert the arguments to some other type.
> I get an error that I cannot convert to float.
With out seeing the exact error message, it is hard to say for sure, but I would assume that you are converting something to a number which cannot be converted to a number. Example float('foobar') would throw an exception.
-Tatu
[1] http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#argument-types
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.