Hello,
if I understood correctly, the ${actualValue} is always a Boolean.
In that case, you can use Robot Framework variable syntax to create
Booleans in the test case:
http://robotframework.googlecode.com/svn/tags/robotframework-2.0.4/doc/userguide/RobotFrameworkUserGuide.html#boolean-and-none-null-variables
> Being a Python/Jython noob, it took me a while to grok that there are
> no true booleans in the language. I'm using Jython 2.2 and jybot
> (2.0.4), btw.
Python has actual booleans from 2.3 forward,
Jython 2.2 uses integer values 1 and 0 to designate True and False, respectively
> 1. What is the type of robotframework ${vars} - are they always
> strings? Or are they truly typed?
Variables created in the HTML test data are strings, unless specified
with the special syntax for Booleans, numbers, or None/Null.
However, variables returned by keywords in tests libraries can have
any data type.
Should be Equals compares both type and value, Should be Equal as
Strings basically calls toString() on both arguments and compares
those.
Hopefully this clarifies things, and please don't hesitate to ask for
clarification if I explained something badly,
__janne
You may want to vote for issue "Automatic type conversion for Java keywords"
http://code.google.com/p/robotframework/issues/detail?id=245
> but as a quick fix, that does work, so thanks again.
Great!
Cheers,
.peke