Added new testcases to policies sub-menu

  - Modified previous testcase by replacing with existing keyword to reduce lines of code
  - Enable SSH Via GUI And Verify Persistency On BMC Reboot
  - Enable IPMI Via GUI And Verify Persistency On BMC Reboot
  - Added xpath of reboot operation to gui/data/gui_variables.py
  - Added Reboot Via GUI keyword to gui/lib/gui_resource.robot

Change-Id: I1f4925bb69a4cae916524a890d2060d58f514b39
Signed-off-by: meghagn <Megha.GN@ibm.com>
diff --git a/gui/lib/gui_resource.robot b/gui/lib/gui_resource.robot
index 794adf7..0296468 100644
--- a/gui/lib/gui_resource.robot
+++ b/gui/lib/gui_resource.robot
@@ -147,3 +147,13 @@
     Log  ${element_value}
     Should Contain  ${element_value}  ${expected_value}
 
+
+Reboot BMC via GUI
+    [Documentation]  Reboot BMC via GUI.
+
+    Click Element  ${xpath_operations_menu}
+    Click Element  ${xpath_reboot_bmc_sub_menu}
+    Click Button  ${xpath_reboot_bmc_button}
+    Click Button  ${xpath_confirm_bmc_reboot}
+    Wait Until Keyword Succeeds  2 min  10 sec  Is BMC Unpingable
+    Wait For Host To Ping  ${OPENBMC_HOST}  1 min