I am new to Robot Framework so I need help with this I am trying to do "RUN KEYWORD IF" ,if I look in docs they give Run Keyword If | '${status}' == 'PASS' | Some Action arg.
My doubt is with this PASS value . How to get this as every time I Try ,I get a none value for every Keyword statement. I am trying to do something this :
*** Settings ***
*** Variables ***
${name} theon
*** Test Cases ***
Verify
${x}= Set Variable function
Run Keyword If '${x}==PASS' Log 'True'
... ELSE Log 'False'
*** Keywords ***
function
${return}= Should Equal ${name} theon
[Return] ${return}
I get error that x is defined NONE then how I can validate in the condition that my keyword is success or True.
I would also like some help with whether I can use a self defined keyword in place of 'condition' to run some keyword.
RUN KEYWORD IF|| Some self keyword here which return me pass or true|| Target Keyword