Added tests to verify navigation to control menu pages
Test cases added:
- Verify Navigation To Manage Power Usage Page
- Verify Navigation To Reboot BMC Page
- Verify Navigation To SOL Console Page
- Verify Navigation To Server LED Page
- Verify Navigation To Server Power Operations Page
- Verify Navigation To KVM Page
Change-Id: I7dcc4ed092a5c591017b9661e980c743e43de974
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/gui/gui_test/control_menu/test_manage_power_usage_sub_menu.robot b/gui/gui_test/control_menu/test_manage_power_usage_sub_menu.robot
index a3f9fa8..4daab82 100644
--- a/gui/gui_test/control_menu/test_manage_power_usage_sub_menu.robot
+++ b/gui/gui_test/control_menu/test_manage_power_usage_sub_menu.robot
@@ -11,9 +11,18 @@
*** Variables ***
+${xpath_manage_power_heading} //h1[text()="Manage power usage"]
+
*** Test Cases ***
+Verify Navigation To Manage Power Usage Page
+ [Documentation] Verify navigation to manage power usage page.
+ [Tags] Verify_Navigation_To_Manage_Power_Usage_Page
+
+ Page Should Contain Element ${xpath_manage_power_heading}
+
+
Verify Existence Of All Sections In Manage Power Usage Page
[Documentation] Verify existence of all sections in Manage Power Usage page.
[Tags] Verify_Existence_Of_All_Sections_In_Manage_Power_Usage_Page
diff --git a/gui/gui_test/control_menu/test_obmc_gui_kvm_sub_menu.robot b/gui/gui_test/control_menu/test_obmc_gui_kvm_sub_menu.robot
index 224a2e9..032f430 100644
--- a/gui/gui_test/control_menu/test_obmc_gui_kvm_sub_menu.robot
+++ b/gui/gui_test/control_menu/test_obmc_gui_kvm_sub_menu.robot
@@ -10,12 +10,21 @@
*** Variables ***
+
${xpath_kvm_header} //h1[text()="KVM"]
${xpath_new_tab_button} //button[contains(text(),'Open in new tab')]
${xpath_send_button} //button[contains(text(),'Send Ctrl+Alt+Delete')]
+
*** Test Cases ***
+Verify Navigation To KVM Page
+ [Documentation] Verify navigation to KVM page.
+ [Tags] Verify_Navigation_To_KVM_Page
+
+ Page Should Contain Element ${xpath_kvm_header}
+
+
Verify Existence Of All Sections In KVM Page
[Documentation] Verify existence of all sections in KVM page.
[Tags] Verify_Existence_Of_All_Sections_In_KVM_Page
diff --git a/gui/gui_test/control_menu/test_obmc_gui_sol_console.robot b/gui/gui_test/control_menu/test_obmc_gui_sol_console.robot
index 9a53dd8..6a2d124 100644
--- a/gui/gui_test/control_menu/test_obmc_gui_sol_console.robot
+++ b/gui/gui_test/control_menu/test_obmc_gui_sol_console.robot
@@ -10,10 +10,20 @@
*** Variables ***
+
+${xpath_sol_console_heading} //h1[text()="Serial over LAN console"]
${xpath_open_in_new_tab_button} //button[contains(text(),'Open in new tab')]
+
*** Test Cases ***
+Verify Navigation To SOL Console Page
+ [Documentation] Verify navigation to SOL console page.
+ [Tags] Verify_Navigation_To_SOL_Console_Page
+
+ Page Should Contain Element ${xpath_sol_console_heading}
+
+
Verify Existence Of All Sections In SOL Console Page
[Documentation] Verify existence of all sections in SOL console page.
[Tags] Verify_Existence_Of_All_Sections_In_SOL_Console_Page
diff --git a/gui/gui_test/control_menu/test_reboot_bmc_sub_menu.robot b/gui/gui_test/control_menu/test_reboot_bmc_sub_menu.robot
index 6c38eb6..898d0df 100644
--- a/gui/gui_test/control_menu/test_reboot_bmc_sub_menu.robot
+++ b/gui/gui_test/control_menu/test_reboot_bmc_sub_menu.robot
@@ -11,10 +11,18 @@
*** Variables ***
+${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"]
${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')]
*** Test Cases ***
+Verify Navigation To Reboot BMC Page
+ [Documentation] Verify navigation to reboot BMC page.
+ [Tags] Verify_Navigation_To_Reboot_BMC_Page
+
+ Page Should Contain Element ${xpath_reboot_bmc_heading}
+
+
Verify Existence Of All Buttons In Reboot BMC Page
[Documentation] Verify existence of all buttons in reboot BMC page.
[Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page
diff --git a/gui/gui_test/control_menu/test_server_led_sub_menu.robot b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
index 9469ceb..765f2a4 100644
--- a/gui/gui_test/control_menu/test_server_led_sub_menu.robot
+++ b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
@@ -11,11 +11,19 @@
*** Variables ***
+${xpath_server_led_heading} //h1[text()="Server LED"]
${xpath_led_value} //*[@data-test-id='serverLed-checkbox-switchIndicatorLed']/following-sibling::label/span
${xpath_overview_led_value} //*[@data-test-id='overviewQuickLinks-checkbox-serverLed']/following-sibling::label/span
*** Test Cases ***
+Verify Navigation To Server LED Page
+ [Documentation] Verify navigation to server LED page.
+ [Tags] Verify_Navigation_To_Server_LED_Page
+
+ Page Should Contain Element ${xpath_server_led_heading}
+
+
Verify Existence Of All Sections In Server LED Page
[Documentation] Verify existence of all sections in Server LED page.
[Tags] Verify_Existence_Of_All_Sections_In_Server_LED_Page
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 ae8e124..e7fcc37 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
@@ -11,6 +11,7 @@
*** Variables ***
+${xpath_server_power_heading} //h1[text()="Server power operations"]
${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']
@@ -20,24 +21,14 @@
${xpath_save_button} //button[contains(text(),'Save')]
${Current_status} //*[contains(@class,'row mb-4')]
+
*** Test Cases ***
-Verify System State At Power Off
- [Documentation] Verify state of the system in power off state.
- [Tags] Verify_System_State_At_Power_Off
+Verify Navigation To Server Power Operations Page
+ [Documentation] Verify navigation to server power operations page.
+ [Tags] Verify_Navigation_To_Server_Power_Operations_Page
- Redfish Power Off stack_mode=skip
- Page Should Contain Element ${Current_status}
- Element Should Contain ${Current_status} Off
-
-
-Verify System State At Power On
- [Documentation] Verify state of the system in power on state.
- [Tags] Verify_System_State_At_Power_On
-
- Redfish Power On stack_mode=skip
- Page Should Contain Element ${Current_status}
- Element Should Contain ${Current_status} On
+ Page Should Contain Element ${xpath_server_power_heading}
Verify Existence Of All Sections In Server Power Operations Page
@@ -65,6 +56,24 @@
Page Should Contain TPM required policy
+Verify System State At Power Off
+ [Documentation] Verify state of the system in power off state.
+ [Tags] Verify_System_State_At_Power_Off
+
+ Redfish Power Off stack_mode=skip
+ Page Should Contain Element ${Current_status}
+ Element Should Contain ${Current_status} Off
+
+
+Verify System State At Power On
+ [Documentation] Verify state of the system in power on state.
+ [Tags] Verify_System_State_At_Power_On
+
+ Redfish Power On stack_mode=skip
+ Page Should Contain Element ${Current_status}
+ Element Should Contain ${Current_status} On
+
+
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