lundi 23 janvier 2017

If-Condition with multiple actions in Robot Framework

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

Aucun commentaire:

Enregistrer un commentaire