Hello,
I'm pretty stuck with this problem..
I run RF on IronPython, this is a part of a keyword:
run keyword if ${someVar} == 'AUTHORISED' log ${someVar} INFO
... ELSE log ${someVar} ERROR
And I get this error:
Evaluating expression 'AUTHORISED == AUTHORISED' failed: NameError: name 'AUTHORISED' is not defined
I have seen in the list and in the guide different ways to write this so I tried the following:
run keyword if '${someVar}' == 'AUTHORISED' log ${someVar} INFO
... ELSE log ${someVar} ERROR
getting almost the same output:
Evaluating expression 'AUTHORISED == AUTHORISED'' failed: NameError: name 'AUTHORISED' is not defined
I tried setting another variable containing AUTHORISED
run keyword if ${someVar} == ${anotherVar} log ${someVar} INFO
... ELSE log ${someVar} ERROR
But I get the same message again.
I played with the " ' " and with the " == " and I also removed the braces as I read in the guide this was possible.
run keyword if $someVar == $anotherVar log $someVar INFO
... ELSE log $someVar ERROR
But then it is not reading the variable, it is simply logging $someVar.
Can someone please point what I am doing wrong?
Thanks,
Elena