jeudi 2 juillet 2015

error in robotframework script 'Else' is a reserved keyword

I am getting error

'Else' is a reserved keyword

the code snipet goes as follows , can anyone guide me the resolution ?

   :FOR ${key} IN @{keys}
   \           ${item}= Get From Dictionary ${services} ${key}
   \           Run Keyword If '${item}' == '1' Log Service: ${key} is Running
   \          Else If '${item}' == '2' Log
   \          ... Service: ${key} is not running

Aucun commentaire:

Enregistrer un commentaire