I want to use If-Condition with multiple actions in Robot Framework
${x} Set Variable 5
Run Keyword If ${x} == 5
... ${Test1} = Set Variable MyName
... ${Test2} = Set Variable MyLastName
... Else
... ${Test1} = Set Variable MyAddress
... ${Test2} = Set Variable MyTelephone
But it is not working Error show FAIL : Variable '${Test1}' not found. Could you please tell me about using IF-Condition with multiple actions
You can use "Run Keywords" keyword to perform multiple actions in IF condition
Kindly go through below link:
IF ELSE in robot framework with variables assignment
You have to either cover both actions with one custom keyword and then call Run Keyword If or call the keyword Set Variable If twice or write such logic into python (jython...) library.
If 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