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 | |
George Keishing | 0302e9a | 2023-10-12 21:48:35 +0530 | [diff] [blame] | 12 | Force Tags Reboot_BMC_Sub_Menu |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 13 | |
| 14 | *** Variables *** |
| 15 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 16 | ${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"] |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 17 | ${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')] |
Sushma M M | 03e1324 | 2020-11-17 23:17:22 -0600 | [diff] [blame] | 18 | ${xpath_reboot_cancel_button} //button[contains(text(),'Cancel')] |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 19 | |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 20 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 21 | *** Test Cases *** |
| 22 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 23 | Verify Navigation To Reboot BMC Page |
| 24 | [Documentation] Verify navigation to reboot BMC page. |
| 25 | [Tags] Verify_Navigation_To_Reboot_BMC_Page |
| 26 | |
| 27 | Page Should Contain Element ${xpath_reboot_bmc_heading} |
| 28 | |
| 29 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 30 | Verify Existence Of All Buttons In Reboot BMC Page |
| 31 | [Documentation] Verify existence of all buttons in reboot BMC page. |
| 32 | [Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page |
| 33 | |
| 34 | Page Should Contain Element ${xpath_reboot_bmc_button} |
| 35 | |
| 36 | |
Sushma M M | 1603ff9 | 2020-11-16 23:53:51 -0600 | [diff] [blame] | 37 | Verify Existence Of All Sections In Reboot BMC Page |
| 38 | [Documentation] Verify Existence Of All Sections In Reboot BMC Page. |
| 39 | [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page |
| 40 | |
| 41 | Page Should Contain Last BMC reboot |
| 42 | |
| 43 | |
Sushma M M | 03e1324 | 2020-11-17 23:17:22 -0600 | [diff] [blame] | 44 | Verify Canceling Operation On BMC Reboot Operation |
| 45 | [Documentation] Verify Canceling Operation On BMC Reboot operation |
| 46 | [Tags] Verify_Canceling_Operation_On_BMC_Reboot_Operation |
| 47 | |
| 48 | Click Element ${xpath_reboot_bmc_button} |
rramyasr-in | 30254ab | 2023-04-21 03:58:01 -0500 | [diff] [blame] | 49 | |
| 50 | # Delay added for cancel button to appear. |
| 51 | Sleep 5s |
| 52 | |
rramyasr-in | ae3a98a | 2023-02-21 04:46:15 -0600 | [diff] [blame] | 53 | Click Element At Coordinates ${xpath_reboot_cancel_button} 0 0 |
Sushma M M | 03e1324 | 2020-11-17 23:17:22 -0600 | [diff] [blame] | 54 | Wait Until Element Is Not Visible ${xpath_reboot_cancel_button} timeout=15 |
| 55 | |
| 56 | |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 57 | Verify BMC Reboot Operation |
| 58 | [Documentation] Verify BMC Reboot operation |
| 59 | [Tags] Verify_BMC_Reboot_Operation |
| 60 | |
| 61 | Click Element ${xpath_reboot_bmc_button} |
rramyasr-in | 1fe0ccc | 2023-04-06 06:41:45 -0500 | [diff] [blame] | 62 | |
| 63 | # Delay added for confirm button to appear. |
| 64 | Sleep 5s |
rramyasr-in | f8e80b4 | 2023-03-15 09:47:29 -0500 | [diff] [blame] | 65 | Click Element At Coordinates ${xpath_confirm_button} 0 0 |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 66 | |
| 67 | # Checks BMC gets into Unpingable state and later becomes Pingable. |
Ashwini Chandrappa | 7edd925 | 2021-09-13 02:37:34 -0500 | [diff] [blame] | 68 | Wait Until Keyword Succeeds 1 min 5 sec Is BMC Unpingable |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 69 | Wait For Host To Ping ${OPENBMC_HOST} 1 min |
| 70 | |
rramyasr-in | f8e80b4 | 2023-03-15 09:47:29 -0500 | [diff] [blame] | 71 | Wait Until Keyword Succeeds 3 min 10 sec Is BMC Operational |
Ashwini Chandrappa | 233d965 | 2021-08-04 09:56:30 -0500 | [diff] [blame] | 72 | |
| 73 | Click Element ${xpath_refresh_button} |
| 74 | Wait Until Element Is Visible ${xpath_reboot_bmc_button} timeout=10 |
| 75 | |
| 76 | |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 77 | *** Keywords *** |
| 78 | |
| 79 | Test Setup Execution |
| 80 | [Documentation] Do test case setup tasks. |
| 81 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 82 | Click Element ${xpath_operations_menu} |
Rahul Maheshwari | 1e18bb6 | 2020-07-07 00:45:50 -0500 | [diff] [blame] | 83 | Click Element ${xpath_reboot_bmc_sub_menu} |
| 84 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc |
rramyasr-in | 6dc57e5 | 2023-01-17 09:45:16 -0600 | [diff] [blame] | 85 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |