GUI: Added 'Is Server Status Off' keyword
Changes:
- In gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot
- Added 'Is Server Status Off' keyword to check the server status while rebooting.
Tested:
-Ran above test case from sandbox successfully.
Change-Id: I8844861872307550b360066bc9a064cfd2384894
Signed-off-by: Nandish-Matti <nandish.matti@ibm.com>
diff --git a/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot b/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot
index c916dd3..d10f204 100644
--- a/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot
+++ b/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot
@@ -143,7 +143,7 @@
Click Element ${xpath_reboot_button}
Wait Until Page Contains Element ${xpath_confirm_button} timeout=10
Click Element ${xpath_confirm_button}
- Wait Until Keyword Succeeds 3 min 2 sec Element Should Contain ${xpath_current_power_state} Off
+ Wait Until Keyword Succeeds 2 min 1 sec Is Server Status Off
Click Element ${xpath_refresh_button}
Wait Until Keyword Succeeds 10 min 15 sec Element Should Contain ${xpath_current_power_state} On
@@ -157,3 +157,9 @@
Click Element ${xpath_server_power_operations_sub_menu}
Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain server-power-operations
Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30
+
+Is Server Status Off
+ [Documentation] Perform GUI refresh and verify server status to Off.
+
+ Refresh GUI
+ Element Should Contain ${xpath_current_power_state} Off