I have to execute a nested run keyword Statement and I am following below code in a function:
${value}= Run keyword And Return Status Dictionary Should Contain Key ${details} edit
Run Keyword If '${value}'=='True'
... Run Keywords
... Run Keyword If '&{details}[edit]'=='Block1' Log Block1 Call
... AND Run Keyword If '&{details}[edit]'=='Block2' Log Block2 Call
... AND Run Keyword If '&{details}[edit]'=='Block3' Log Block3 Call
... AND Run Keyword If '&{details}[edit]'=='Block4'
... Run Keywords
... Log Block4 1 Call
... AND Log Block4 2 Call
... AND Log Block4 3 Call
When I am passing the value as Block2, It returns:
Block2 Call
Block4 2 Call
Block4 3 Call
But I want my result to only return "Block2 Call". Does Run Keyword does not support the Nested Statements?
Aucun commentaire:
Enregistrer un commentaire