1b89977a4SRahul Maheshwari*** Settings *** 2b89977a4SRahul MaheshwariDocumentation This test suite will validate the "OpenBMC" GUI -> 3b89977a4SRahul Maheshwari... "Server control" main menu -> "Server power 4b89977a4SRahul Maheshwari... operations" submenu module. 5b89977a4SRahul Maheshwari 6b89977a4SRahul MaheshwariResource ../../lib/resource.robot 7b89977a4SRahul MaheshwariTest Setup Test Setup Execution ${OBMC_PowerOff_state} 8b89977a4SRahul MaheshwariTest Teardown Test Teardown Execution 9b89977a4SRahul Maheshwari 10b89977a4SRahul Maheshwari*** Variables *** 11b89977a4SRahul Maheshwari${xpath_select_server_control} //*[@id="nav__top-level"]/li[3]/button/span 12b89977a4SRahul Maheshwari${xpath_select_server_power_operations} //a[@href='#/server-control/power-operations'] 13b89977a4SRahul Maheshwari${string_server_power_operations} Server power operations 14b89977a4SRahul Maheshwari${string_current_status} Current status 15b89977a4SRahul Maheshwari${string_select_power_operation} Select a power operation 16b89977a4SRahul Maheshwari${string_warm_reboot} Attempts to perform an orderly shutdown before restarting the server 17b89977a4SRahul Maheshwari${string_cold_reboot} Shuts down the server immediately, then restarts it 18b89977a4SRahul Maheshwari${string_orderly_shutdown} Attempts to stop all software on the server before removing power 19b89977a4SRahul Maheshwari${string_immediate_shutdown} Removes power from the server without waiting for software to stop 20b89977a4SRahul Maheshwari${string_power_on} Attempts to power on the server 21b89977a4SRahul Maheshwari 22b89977a4SRahul Maheshwari*** Test Case *** 23b89977a4SRahul Maheshwari# OpenBMC @ Power Off state test cases. 24b89977a4SRahul Maheshwari 25*0f5aee7dSArpana DurgaprasadVerify Warm Reboot Button At Power Off 26*0f5aee7dSArpana Durgaprasad [Documentation] Verify warm reboot button is not present at power Off. 27*0f5aee7dSArpana Durgaprasad [Tags] Verify_Warm_Reboot_Button_At_Power_Off 28*0f5aee7dSArpana Durgaprasad 29*0f5aee7dSArpana Durgaprasad Select Server Power Operations Sub Menu 30*0f5aee7dSArpana Durgaprasad Element Should Not Be Visible ${xpath_select_button_warm_reboot} 31*0f5aee7dSArpana Durgaprasad 32*0f5aee7dSArpana DurgaprasadVerify Cold Reboot Button At Power Off 33*0f5aee7dSArpana Durgaprasad [Documentation] Verify cold reboot button is not present at power Off. 34*0f5aee7dSArpana Durgaprasad [Tags] Verify_Cold_Reboot_Button_At_Power_Off 35*0f5aee7dSArpana Durgaprasad 36*0f5aee7dSArpana Durgaprasad Select Server Power Operations Sub Menu 37*0f5aee7dSArpana Durgaprasad Element Should Not Be Visible ${xpath_select_button_cold_reboot} 38*0f5aee7dSArpana Durgaprasad 39b89977a4SRahul MaheshwariVerify Title Text Should Be Server Power Operations At Power Off 40b89977a4SRahul Maheshwari [Documentation] Verify display of title text "Server Power Operations". 41b89977a4SRahul Maheshwari [Tags] Verify_Title_Text_Should_Be_Server_Power_Operations_At_Power_Off 42b89977a4SRahul Maheshwari ... OBMC_PowerOff_state 43b89977a4SRahul Maheshwari 44b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 45b89977a4SRahul Maheshwari Verify Display Content ${string_server_power_operations} 46b89977a4SRahul Maheshwari 47b89977a4SRahul MaheshwariVerify Sub Title Text Should Be Current Status At Power Off 48b89977a4SRahul Maheshwari [Documentation] Verify display of title text "Current Status". 49b89977a4SRahul Maheshwari [Tags] Verify_Sub_Title_Text_Should_Be_Current_Status_At_Power_Off 50b89977a4SRahul Maheshwari ... OBMC_PowerOff_state 51b89977a4SRahul Maheshwari 52b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 53b89977a4SRahul Maheshwari Verify Display Content ${string_current_status} 54b89977a4SRahul Maheshwari 55b89977a4SRahul MaheshwariVerify Sub Title Text Should Be Select Power Operation At Power Off 56b89977a4SRahul Maheshwari [Documentation] Verify display of title text "Select a power operation". 57b89977a4SRahul Maheshwari [Tags] Verify_Sub_Title_Text_Should_Be_Select_Power_Operation_At_Power_Off 58b89977a4SRahul Maheshwari ... OBMC_PowerOff_state 59b89977a4SRahul Maheshwari 60b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 61b89977a4SRahul Maheshwari Verify Display Content ${string_Select_power_operation} 62b89977a4SRahul Maheshwari 63b89977a4SRahul MaheshwariVerify Power On Button Should Present At Power Off 64b89977a4SRahul Maheshwari [Documentation] Verify presence of "Warm reboot" button. 65b89977a4SRahul Maheshwari [Tags] Verify_Power_On_Button_Should_Present_At_Power_Off 66b89977a4SRahul Maheshwari ... OBMC_PowerOff_State 67b89977a4SRahul Maheshwari 68b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 69b89977a4SRahul Maheshwari Verify Presence of Power Button And Text Info 70b89977a4SRahul Maheshwari ... ${xpath_select_button_power_on} ${string_power_on} 71b89977a4SRahul Maheshwari 72b89977a4SRahul MaheshwariVerify Power On At Power Off 73b89977a4SRahul Maheshwari [Documentation] Verify presence of "Warm reboot" button. 74b89977a4SRahul Maheshwari [Tags] Verify_Power_On_At_Power_Off 75b89977a4SRahul Maheshwari ... OBMC_PowerOff_State 76b89977a4SRahul Maheshwari 77b89977a4SRahul Maheshwari Power On OpenBMC 78b89977a4SRahul Maheshwari 79b89977a4SRahul Maheshwari 80b89977a4SRahul Maheshwari# OpenBMC @ Power Running state test cases. 81b89977a4SRahul Maheshwari 82b89977a4SRahul MaheshwariVerify Warm Reboot Button Should Present At Power Running 83b89977a4SRahul Maheshwari [Documentation] Verify presence of "Warm reboot" button. 84b89977a4SRahul Maheshwari [Tags] Verify_Warm_Reboot_Button_Should_Present_At_Power_Running 85b89977a4SRahul Maheshwari ... OBMC_PowerRunning_State 86b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 87b89977a4SRahul Maheshwari 88b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 89b89977a4SRahul Maheshwari Verify Presence of Power Button And Text Info 90b89977a4SRahul Maheshwari ... ${xpath_select_button_warm_reboot} ${string_warm_reboot} 91b89977a4SRahul Maheshwari 92b89977a4SRahul MaheshwariVerify Cold Reboot Button Should Present At Power Running 93b89977a4SRahul Maheshwari [Documentation] Verify presence of "cold reboot" button. 94b89977a4SRahul Maheshwari [Tags] Verify_Cold_Reboot_Button_Should_Present_At_Power_Running 95b89977a4SRahul Maheshwari ... OBMC_PowerRunning_State 96b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 97b89977a4SRahul Maheshwari 98b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 99b89977a4SRahul Maheshwari Verify Presence of Power Button And Text Info 100b89977a4SRahul Maheshwari ... ${xpath_select_button_cold_reboot} ${string_cold_reboot} 101b89977a4SRahul Maheshwari 102b89977a4SRahul MaheshwariVerify Orderly Shutdown Button Should Present At Power Running 103b89977a4SRahul Maheshwari [Documentation] Verify presence of "Orderly shutdow " button. 104b89977a4SRahul Maheshwari [Tags] Verify_Orderly_Shutdown_Button_Should_Present_At_Power_Running 105b89977a4SRahul Maheshwari ... OBMC_PowerRunning_State 106b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 107b89977a4SRahul Maheshwari 108b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 109b89977a4SRahul Maheshwari Verify Presence of Power Button And Text Info 110b89977a4SRahul Maheshwari ... ${xpath_select_button_orderly_shutdown} ${string_orderly_shutdown} 111b89977a4SRahul Maheshwari 112b89977a4SRahul MaheshwariVerify Immediate Shutdown Button Should Present At Power Running 113b89977a4SRahul Maheshwari [Documentation] Verify presence of "Immediate shutdown" button. 114b89977a4SRahul Maheshwari [Tags] Verify_Immediate_Shutdown_Button_Should_Present_At_Power_Running 115b89977a4SRahul Maheshwari ... OBMC_PowerRunning_State 116b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 117b89977a4SRahul Maheshwari 118b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 119b89977a4SRahul Maheshwari Verify Presence of Power Button And Text Info 120b89977a4SRahul Maheshwari ... ${xpath_select_button_immediate_shutdown} ${string_immediate_shutdown} 121b89977a4SRahul Maheshwari 122b89977a4SRahul MaheshwariVerify Warm Reboot Should Not Happen By Clicking No Button 123b89977a4SRahul Maheshwari [Documentation] Verify functionality of warm reboot "No" button clicking. 124b89977a4SRahul Maheshwari [Tags] Verify_Warm_Reboot_Should_Not_Happen_By_Clicking_No_Button 125b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 126b89977a4SRahul Maheshwari 127b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 128b89977a4SRahul Maheshwari Click Element ${xpath_select_button_warm_reboot} 129b89977a4SRahul Maheshwari Verify Warning Message Display Text ${xpath_warm_reboot_warning_message} 130b89977a4SRahul Maheshwari ... ${text_warm_reboot_warning_message} 131b89977a4SRahul Maheshwari Verify No Button Functionality 132b89977a4SRahul Maheshwari ... ${xpath_select_button_warm_reboot_no} 133b89977a4SRahul Maheshwari 134b89977a4SRahul MaheshwariVerify Cold Reboot Should Not Happen By Clicking No Button 135b89977a4SRahul Maheshwari [Documentation] Verify functionality of cold reboot "No" button clicking. 136b89977a4SRahul Maheshwari [Tags] Verify_Cold_Reboot_Should_Not_Happen_By_Clicking_No_Button 137b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 138b89977a4SRahul Maheshwari 139b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 140b89977a4SRahul Maheshwari Click Element ${xpath_select_button_cold_reboot} 141b89977a4SRahul Maheshwari Verify Warning Message Display Text ${xpath_cold_reboot_warning_message} 142b89977a4SRahul Maheshwari ... ${text_cold_reboot_warning_message} 143b89977a4SRahul Maheshwari Verify No Button Functionality 144b89977a4SRahul Maheshwari ... ${xpath_select_button_cold_reboot_no} 145b89977a4SRahul Maheshwari 146b89977a4SRahul MaheshwariVerify Orderly Shutdown Should Not Happen By Clicking No Button 147b89977a4SRahul Maheshwari [Documentation] Verify functionality of orderly shutdown "No" button clicking. 148b89977a4SRahul Maheshwari [Tags] Verify_Orderly_Shutdown_Should_Not_Happen_By_Clicking_No_Button 149b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 150b89977a4SRahul Maheshwari 151b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 152b89977a4SRahul Maheshwari Click Element ${xpath_select_button_orderly_shutdown} 153b89977a4SRahul Maheshwari Verify Warning Message Display Text ${xpath_orderly_shutdown_warning_message} 154b89977a4SRahul Maheshwari ... ${text_orderly_shutdown_warning_message} 155b89977a4SRahul Maheshwari Verify No Button Functionality 156b89977a4SRahul Maheshwari ... ${xpath_select_button_orderly_shutdown_button_no} 157b89977a4SRahul Maheshwari 158b89977a4SRahul MaheshwariVerify Immediate Shutdown Should Not Happen By Clicking No Button 159b89977a4SRahul Maheshwari [Documentation] Verify functionality of immediate shutdown "No" button clicking. 160b89977a4SRahul Maheshwari [Tags] Verify_Immediate_Shutdown_Should_Not_Happen_By_Clicking_No_Button 161b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 162b89977a4SRahul Maheshwari 163b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 164b89977a4SRahul Maheshwari Click Element ${xpath_select_button_immediate_shutdown} 165b89977a4SRahul Maheshwari Verify Warning Message Display Text ${xpath_immediate_shutdown_warning_message} 166b89977a4SRahul Maheshwari ... ${text_immediate_shutdown_warning_message} 167b89977a4SRahul Maheshwari Verify No Button Functionality 168b89977a4SRahul Maheshwari ... ${xpath_select_button_immediate_shutdown_no} 169b89977a4SRahul Maheshwari 170b89977a4SRahul MaheshwariVerify Warm Reboot Should Happen By Clicking Yes Button 171b89977a4SRahul Maheshwari [Documentation] Verify functionality of warm reboot "Yes" button clicking. 172b89977a4SRahul Maheshwari [Tags] Verify_Warm_Reboot_Should_Happen_By_Clicking_Yes_Button 173b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 174b89977a4SRahul Maheshwari 175b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 176b89977a4SRahul Maheshwari Warm Reboot openBMC 177b89977a4SRahul Maheshwari 178b89977a4SRahul MaheshwariVerify Cold Reboot Should Happen By Clicking Yes Button 179b89977a4SRahul Maheshwari [Documentation] Verify functionality of cold reboot "Yes" button clicking. 180b89977a4SRahul Maheshwari [Tags] Verify_Cold_Reboot_Should_Happen_By_Clicking_Yes_Button 181b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 182b89977a4SRahul Maheshwari 183b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 184b89977a4SRahul Maheshwari Cold Reboot openBMC 185b89977a4SRahul Maheshwari 186b89977a4SRahul MaheshwariVerify Orderly Shutdown Should Happen By Clicking Yes Button 187b89977a4SRahul Maheshwari [Documentation] Verify functionality of orderly shutdown "Yes" button clicking. 188b89977a4SRahul Maheshwari [Tags] Verify_Orderly_Shutdown_Should_Happen_By_Clicking_Yes_Button 189b89977a4SRahul Maheshwari ... OBMC_PowerRunning_State 190b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 191b89977a4SRahul Maheshwari 192b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 193b89977a4SRahul Maheshwari Orderly Shutdown OpenBMC 194b89977a4SRahul Maheshwari 195b89977a4SRahul MaheshwariVerify Immediate Shutdown Should Happen By Clicking Yes Button 196b89977a4SRahul Maheshwari [Documentation] Verify functionality of immediate shutdown "Yes" button clicking. 197b89977a4SRahul Maheshwari [Tags] Verify_Immediate_Shutdown_Should_Happen_By_Clicking_Yes_Button 198b89977a4SRahul Maheshwari ... OBMC_PowerRunning_State 199b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 200b89977a4SRahul Maheshwari 201b89977a4SRahul Maheshwari Select Server Power Operations Sub Menu 202b89977a4SRahul Maheshwari Immediate Shutdown openBMC 203b89977a4SRahul Maheshwari 204b89977a4SRahul Maheshwari*** Keywords *** 205b89977a4SRahul MaheshwariSelect Server Power Operations Sub Menu 206b89977a4SRahul Maheshwari [Documentation] Selecting of OpenBMC "Server Power Operations" Submenu. 207b89977a4SRahul Maheshwari 208b89977a4SRahul Maheshwari Click Button ${xpath_select_server_control} 209b89977a4SRahul Maheshwari Click Button ${xpath_select_server_power_operations} 210b89977a4SRahul Maheshwari 211b89977a4SRahul MaheshwariVerify Presence of Power Button And Text Info 212b89977a4SRahul Maheshwari [Documentation] Verify the presens fo power button and text message info. 213b89977a4SRahul Maheshwari [Arguments] ${power_button} ${power_button_text} 214b89977a4SRahul Maheshwari 215b89977a4SRahul Maheshwari # power_button Xpath of power button. 216b89977a4SRahul Maheshwari # power_button_text Text message info. 217b89977a4SRahul Maheshwari 218b89977a4SRahul Maheshwari Page Should Contain Button ${power_button} 219b89977a4SRahul Maheshwari Verify Display Content ${power_button_text} 220b89977a4SRahul Maheshwari 221b89977a4SRahul MaheshwariVerify No Button Functionality 222b89977a4SRahul Maheshwari [Documentation] Verify the functionality of "No" button click. 223b89977a4SRahul Maheshwari [Arguments] ${xpath_no_button} 224b89977a4SRahul Maheshwari 225b89977a4SRahul Maheshwari # xpath_no_button Xpath of "No" button. 226b89977a4SRahul Maheshwari 227b89977a4SRahul Maheshwari Click No Button ${xpath_no_button} 228b89977a4SRahul Maheshwari ${obmc_current_state}= Get Text ${xpath_display_server_power_status} 229b89977a4SRahul Maheshwari Should Contain ${obmc_current_state} ${obmc_running_state} 230