Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 3 | Documentation Test OpenBMC GUI "Reboot BMC" sub-menu of "Operation" menu. |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 4 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 6 | Resource ../../../lib/common_utils.robot |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 7 | |
| 8 | Suite Setup Launch Browser And Login GUI |
| 9 | Suite Teardown Close Browser |
| 10 | Test Setup Test Setup Execution |
| 11 | |
| 12 | |
| 13 | *** Variables *** |
| 14 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 15 | ${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"] |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 16 | ${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')] |
Sushma M M | 03e1324 | 2020-11-17 23:17:22 -0600 | [diff] [blame] | 17 | ${xpath_reboot_cancel_button} //button[contains(text(),'Cancel')] |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 18 | |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 19 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 20 | *** Test Cases *** |
| 21 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 22 | Verify Navigation To Reboot BMC Page |
| 23 | [Documentation] Verify navigation to reboot BMC page. |
| 24 | [Tags] Verify_Navigation_To_Reboot_BMC_Page |
| 25 | |
| 26 | Page Should Contain Element ${xpath_reboot_bmc_heading} |
| 27 | |
| 28 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 29 | Verify Existence Of All Buttons In Reboot BMC Page |
| 30 | [Documentation] Verify existence of all buttons in reboot BMC page. |
| 31 | [Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page |
| 32 | |
| 33 | Page Should Contain Element ${xpath_reboot_bmc_button} |
| 34 | |
| 35 | |
Sushma M M | 1603ff9 | 2020-11-16 23:53:51 -0600 | [diff] [blame] | 36 | Verify Existence Of All Sections In Reboot BMC Page |
| 37 | [Documentation] Verify Existence Of All Sections In Reboot BMC Page. |
| 38 | [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page |
| 39 | |
| 40 | Page Should Contain Last BMC reboot |
| 41 | |
| 42 | |
Sushma M M | 03e1324 | 2020-11-17 23:17:22 -0600 | [diff] [blame] | 43 | Verify Canceling Operation On BMC Reboot Operation |
| 44 | [Documentation] Verify Canceling Operation On BMC Reboot operation |
| 45 | [Tags] Verify_Canceling_Operation_On_BMC_Reboot_Operation |
| 46 | |
| 47 | Click Element ${xpath_reboot_bmc_button} |
| 48 | Click Element ${xpath_reboot_cancel_button} |
| 49 | Wait Until Element Is Not Visible ${xpath_reboot_cancel_button} timeout=15 |
| 50 | |
| 51 | |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 52 | Verify BMC Reboot Operation |
| 53 | [Documentation] Verify BMC Reboot operation |
| 54 | [Tags] Verify_BMC_Reboot_Operation |
| 55 | |
| 56 | Click Element ${xpath_reboot_bmc_button} |
| 57 | Click Element ${xpath_confirm_button} |
| 58 | |
| 59 | # Checks BMC gets into Unpingable state and later becomes Pingable. |
Ashwini Chandrappa | 7edd925 | 2021-09-13 02:37:34 -0500 | [diff] [blame] | 60 | Wait Until Keyword Succeeds 1 min 5 sec Is BMC Unpingable |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 61 | Wait For Host To Ping ${OPENBMC_HOST} 1 min |
| 62 | |
| 63 | # Checks BMC gets into ready state. |
| 64 | Wait Until Keyword Succeeds 5 min 10 sec Is BMC Ready |
| 65 | |
| 66 | Click Element ${xpath_refresh_button} |
| 67 | Wait Until Element Is Visible ${xpath_reboot_bmc_button} timeout=10 |
| 68 | |
| 69 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 70 | *** Keywords *** |
| 71 | |
| 72 | Test Setup Execution |
| 73 | [Documentation] Do test case setup tasks. |
| 74 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 75 | Click Element ${xpath_operations_menu} |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 76 | Click Element ${xpath_reboot_bmc_sub_menu} |
| 77 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc |