Added GUI test cases for button availability in different host states

Test cases added:
    - Verify PowerOn Button Should Present At Power Off
    - Verify Shutdown And Reboot Buttons Presence At Power On

Change-Id: I78912ce5ac31a5c1d551e11b1a0530092d1a70ce
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/gui/gui_test/control_menu/test_server_power_operations_sub_menu.robot b/gui/gui_test/control_menu/test_server_power_operations_sub_menu.robot
index c86b4e9..c463ef6 100644
--- a/gui/gui_test/control_menu/test_server_power_operations_sub_menu.robot
+++ b/gui/gui_test/control_menu/test_server_power_operations_sub_menu.robot
@@ -14,6 +14,11 @@
 ${xpath_enable_onetime_boot_checkbox}      //*[contains(@class,'custom-checkbox')]
 ${xpath_boot_option_select}                //*[@id='boot-option']
 
+${xpath_shutdown_button}    //*[@data-test-id='serverPowerOperations-button-shutDown']
+${xpath_reboot_button}      //*[@data-test-id='serverPowerOperations-button-reboot']
+${xpath_poweron_button}     //*[@data-test-id='serverPowerOperations-button-powerOn']
+
+
 *** Test Cases ***
 
 Verify Existence Of All Input Boxes In Host Os Boot Settings
@@ -41,6 +46,25 @@
     Page Should Contain  Operations
 
 
+Verify PowerOn Button Should Present At Power Off
+    [Documentation]  Verify existence of poweron button at power off.
+    [Tags]  Verify_PowerOn_Button_Should_Present_At_Power_Off
+
+    Redfish Power Off  stack_mode=skip
+    # TODO: Implement power off using GUI later.
+    Page Should Contain Element  ${xpath_poweron_button}
+
+
+Verify Shutdown And Reboot Buttons Presence At Power On
+    [Documentation]  Verify existence of shutdown and reboot buttons at power on.
+    [Tags]  Verify_Shutdown_And_Reboot_Buttons_Presence_At_Power_On
+
+    Redfish Power On  stack_mode=skip
+    # TODO: Implement power on using GUI later.
+    Page Should Contain Element  ${xpath_shutdown_button}
+    Page Should Contain Element  ${xpath_reboot_button}
+
+
 *** Keywords ***
 
 Test Setup Execution