Redfish extend robot codes with latest directives

Changes:
   - Run KeyWord If is deprecated since Robot
     Framework version 5.*, use 'IF' instead

Tested:
   - Checked using robot dry-run to make sure the
     syntax is not broken
Change-Id: If4b31968d98722d74befef6149d2144d23cfa595
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/extended/test_websocket.robot b/redfish/extended/test_websocket.robot
index 906b02c..d74494e 100755
--- a/redfish/extended/test_websocket.robot
+++ b/redfish/extended/test_websocket.robot
@@ -57,8 +57,9 @@
 
     ${current_esel_count}=   Get Number Of Event Logs
 
-    Run Keyword If  ${initial_esel_count} == ${current_esel_count}
-    ...  Fail  msg=System failed to generate eSEL upon request.
+    IF  ${initial_esel_count} == ${current_esel_count}
+        Fail  msg=System failed to generate eSEL upon request.
+    END
 
     ${line}=  Grep File  ${monitor_file}  ${esel_received}
     # Typical monitor_file contents:
@@ -68,8 +69,9 @@
     # eSEL received over websocket interface.
 
     ${num_chars}=  Get Length  ${line}
-    Run Keyword If  ${num_chars} < ${min_number_chars}  Fail
-    ...  msg=No eSEL notification from websocket_monitor.py.
+    IF  ${num_chars} < ${min_number_chars}
+        Fail  msg=No eSEL notification from websocket_monitor.py.
+    END
 
 
 Test BMC Websocket Dump Interface
@@ -90,8 +92,9 @@
     # Dump notification received over websocket interface.
 
     ${num_chars}=  Get Length  ${line}
-    Run Keyword If  ${num_chars} < ${min_number_chars}  Fail
-    ...  msg=No dump notification from websocket_monitor.py.
+    IF  ${num_chars} < ${min_number_chars}
+        Fail  msg=No dump notification from websocket_monitor.py.
+    END
 
 
 *** Keywords ***
@@ -165,7 +168,7 @@
     [Documentation]  Do teardown tasks after a test.
 
     FFDC On Test Case Fail
-    Run Keyword If  '${TEST_STATUS}' == 'FAIL'  Print Websocket Monitor Log
+    IF  '${TEST_STATUS}' == 'FAIL'  Print Websocket Monitor Log
     Kill Websocket Monitor
 
     Redfish Delete All BMC Dumps