Create Dictionary   sensor_id=1
when using Python gives me:
{'sensor_id': '1'}
Where really I want:
{'sensor_id': 1}
Is there anyway to prevent the robot framework from adding these quotes to my integer values?
In robot, you can coerce a string to an integer by putting it inside ${}
${foo}=  create dictionary    sensor_id=${1}
With the above, the value in the dictionary will be an integer.
For more information see Number Variables in the robot framework user guide.
sensor_id=1)${}'d literals evaluate to integers (sensor_id=${1}) - this is what you need to answer your question${VAR} variables default to strings${VAR} =  Convert To Integer  ${VAR} to rebind a variable's typeIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With