'Robot Framework having trouble evaluating expression with a colon in it
I currently have a conditional statement with two variables in Robot Framework that have a colon(:) in the string. The evaluation fails every time. Both variables are strings and the same evaluation will work just fine in Python (':00'==':00'). I've tried an escape char \:00, I've also tried with just one zero :0.
*** Variables ***
${string_one} :00
${string_two} :00
*** Test Cases ***
Compare Two Strings
${type_string_one}= Evaluate type($string_one)
Log ${type_string_one}
${type_string_two}= Evaluate type($string_two)
Log ${type_string_two}
IF ${string_one}==${string_two}
Log Pass
Else
Log Fail
END
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

