Added GUI test case to verify all the buttons in host OS setting
Test case added:
- Verify existence of buttons in Host OS boot Settings
Change-Id: I56e67cf119233840c53382500639e067d4173d64
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 c463ef6..2e4476d 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
@@ -13,14 +13,23 @@
${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']
-
+${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']
+${xpath_tpm_policy_button} //input[@id='tpm-required-policy']
+${xpath_save_button} //button[contains(text(),'Save')]
*** Test Cases ***
+Verify Existence Of All Sections In Server Power Operations Page
+ [Documentation] Verify existence of all sections in Server Power Operations page.
+ [Tags] Verify_Existence_Of_All_Sections_In_Server_Power_Operations_Page
+
+ Page Should Contain Current status
+ Page Should Contain Host OS boot settings
+ Page Should Contain Operations
+
+
Verify Existence Of All Input Boxes In Host Os Boot Settings
[Documentation] Verify existence of all input boxes in host os boot settings.
[Tags] Verify_Existence_Of_Input_Boxes_In_Host_Os_Boot_Settings
@@ -37,15 +46,6 @@
Page Should Contain TPM required policy
-Verify Existence Of All Sections In Server Power Operations Page
- [Documentation] Verify existence of all sections in Server Power Operations page.
- [Tags] Verify_Existence_Of_All_Sections_In_Server_Power_Operations_Page
-
- Page Should Contain Current status
- Page Should Contain Host OS boot settings
- 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
@@ -65,6 +65,14 @@
Page Should Contain Element ${xpath_reboot_button}
+Verify Existence Of Buttons In Host Os Boot Settings
+ [Documentation] Verify existence of buttons in Host OS boot settings.
+ [Tags] Verify_Existence_Of_Buttons_In_Host_Os_Boot_Settings
+
+ Page Should Contain Element ${xpath_tpm_policy_button}
+ Page Should Contain Element ${xpath_save_button}
+
+
*** Keywords ***
Test Setup Execution