1*** Settings *** 2 3Documentation Test OpenBMC GUI "Reboot BMC" sub-menu of "Operation" menu. 4 5Resource ../../lib/gui_resource.robot 6 7Suite Setup Launch Browser And Login GUI 8Suite Teardown Close Browser 9Test Setup Test Setup Execution 10 11 12*** Variables *** 13 14${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"] 15${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')] 16${xpath_reboot_cancel_button} //button[contains(text(),'Cancel')] 17 18*** Test Cases *** 19 20Verify Navigation To Reboot BMC Page 21 [Documentation] Verify navigation to reboot BMC page. 22 [Tags] Verify_Navigation_To_Reboot_BMC_Page 23 24 Page Should Contain Element ${xpath_reboot_bmc_heading} 25 26 27Verify Existence Of All Buttons In Reboot BMC Page 28 [Documentation] Verify existence of all buttons in reboot BMC page. 29 [Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page 30 31 Page Should Contain Element ${xpath_reboot_bmc_button} 32 33 34Verify Existence Of All Sections In Reboot BMC Page 35 [Documentation] Verify Existence Of All Sections In Reboot BMC Page. 36 [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page 37 38 Page Should Contain Last BMC reboot 39 40 41Verify Canceling Operation On BMC Reboot Operation 42 [Documentation] Verify Canceling Operation On BMC Reboot operation 43 [Tags] Verify_Canceling_Operation_On_BMC_Reboot_Operation 44 45 Click Element ${xpath_reboot_bmc_button} 46 Click Element ${xpath_reboot_cancel_button} 47 Wait Until Element Is Not Visible ${xpath_reboot_cancel_button} timeout=15 48 49 50*** Keywords *** 51 52Test Setup Execution 53 [Documentation] Do test case setup tasks. 54 55 Click Element ${xpath_operations_menu} 56 Click Element ${xpath_reboot_bmc_sub_menu} 57 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc 58