Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 3 | Documentation Test OpenBMC Firmware Update" sub menu of "Operations". |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 4 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 6 | |
| 7 | Suite Setup Suite Setup Execution |
| 8 | Suite Teardown Close Browser |
| 9 | |
| 10 | *** Variables *** |
| 11 | |
rramyasr-in | b33ea54 | 2023-01-10 08:57:13 -0600 | [diff] [blame] | 12 | ${xpath_firmware_heading} //h1[text()="Firmware"] |
Nandish-Matti | 0c4845d | 2023-02-24 05:39:21 -0600 | [diff] [blame] | 13 | ${xpath_add_file_button} //*[@id='image-file'] |
rramyasr-in | b33ea54 | 2023-01-10 08:57:13 -0600 | [diff] [blame] | 14 | ${xpath_start_update_button} //*[@data-test-id="firmware-button-startUpdate"] |
rramyasr-in | a4b74e4 | 2023-07-27 04:22:59 -0500 | [diff] [blame] | 15 | ${xpath_switch_to_running} //*[@data-test-id="firmware-button-switchToRunning"] |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 16 | |
| 17 | *** Test Cases *** |
| 18 | |
| 19 | Verify Navigation To Firmware Page |
| 20 | [Documentation] Verify navigation to firmware page. |
| 21 | [Tags] Verify_Navigation_To_Firmware_Page |
| 22 | |
| 23 | Page Should Contain Element ${xpath_firmware_heading} |
| 24 | |
| 25 | |
| 26 | Verify Existence Of All Sections In Firmware Page |
| 27 | [Documentation] Verify existence of all sections in firmware page. |
| 28 | [Tags] Verify_Existence_Of_All_Sections_In_Firmware_Page |
| 29 | |
Rahul Maheshwari | 0aa8485 | 2021-07-27 07:03:48 -0500 | [diff] [blame] | 30 | Page Should Contain BMC and server |
| 31 | Page Should Contain Update firmware |
rramyasr-in | b33ea54 | 2023-01-10 08:57:13 -0600 | [diff] [blame] | 32 | Page Should Contain Access key expiration |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 33 | |
| 34 | |
rramyasr-in | b33ea54 | 2023-01-10 08:57:13 -0600 | [diff] [blame] | 35 | Verify Existence Of All Buttons In Firmware Page At Host Power Off |
| 36 | [Documentation] Verify existence of all buttons in firmware page at host power off. |
| 37 | [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page_At_Host_Power_Off |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 38 | |
rramyasr-in | b33ea54 | 2023-01-10 08:57:13 -0600 | [diff] [blame] | 39 | Redfish Power Off stack_mode=skip |
| 40 | |
| 41 | Page Should Contain Element ${xpath_add_file_button} |
| 42 | Page Should Contain Element ${xpath_start_update_button} |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 43 | |
| 44 | |
rramyasr-in | a4b74e4 | 2023-07-27 04:22:59 -0500 | [diff] [blame] | 45 | Verify Existence Of All Sub Sections Under BMC And Server Section At Poweroff State |
| 46 | [Documentation] Verify existence of all sub sections under BMC and server section at poweroff state. |
| 47 | [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section_At_Poweroff_State |
| 48 | |
| 49 | Redfish Power Off stack_mode=skip quiet=1 |
rramyasr-in | f6985d0 | 2023-01-03 03:32:57 -0600 | [diff] [blame] | 50 | |
| 51 | Page Should Contain Running image |
| 52 | Page Should Contain Backup image |
| 53 | Page Should Contain Temporary |
| 54 | Page Should Contain Permanent |
rramyasr-in | a4b74e4 | 2023-07-27 04:22:59 -0500 | [diff] [blame] | 55 | Element Should Be Visible ${xpath_switch_to_running} |
rramyasr-in | f6985d0 | 2023-01-03 03:32:57 -0600 | [diff] [blame] | 56 | |
| 57 | |
rramyasr-in | 4c9316b | 2023-08-01 05:27:06 -0500 | [diff] [blame^] | 58 | Verify Existence Of All Sub Sections Under BMC And Server Section At Power On State |
| 59 | [Documentation] Verify existence of all sub sections under BMC and server section at power on state. |
| 60 | [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section_At_Power_On_State |
| 61 | |
| 62 | Redfish Power On stack_mode=skip quiet=1 |
| 63 | |
| 64 | Page Should Contain Running image |
| 65 | Page Should Contain Backup image |
| 66 | Page Should Contain Temporary |
| 67 | Page Should Contain Permanent |
| 68 | Element Should Be Disabled ${xpath_switch_to_running} |
| 69 | |
| 70 | |
rramyasr-in | bd87c77 | 2023-01-12 04:55:10 -0600 | [diff] [blame] | 71 | Verify Existence Of All Buttons In Firmware Page At Host Power On |
| 72 | [Documentation] Verify existence of all buttons in firmware page at host power on. |
| 73 | [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page_At_Host_Power_On |
| 74 | |
| 75 | Redfish Power On stack_mode=skip |
| 76 | |
Nandish-Matti | 0c4845d | 2023-02-24 05:39:21 -0600 | [diff] [blame] | 77 | Element Should Be Disabled ${xpath_add_file_button} |
| 78 | Element Should Be Disabled ${xpath_start_update_button} |
rramyasr-in | bd87c77 | 2023-01-12 04:55:10 -0600 | [diff] [blame] | 79 | |
| 80 | |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 81 | *** Keywords *** |
| 82 | |
| 83 | Suite Setup Execution |
| 84 | [Documentation] Do test case setup tasks. |
| 85 | |
| 86 | Launch Browser And Login GUI |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 87 | Click Element ${xpath_operations_menu} |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 88 | Click Element ${xpath_firmware_update_sub_menu} |
| 89 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain firmware |
rramyasr-in | 9e2c96f | 2023-01-24 07:59:34 -0600 | [diff] [blame] | 90 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |