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 | |
| 12 | ${xpath_firmware_heading} //h1[text()="Firmware"] |
| 13 | ${xpath_change_image_and_reboot} //button[contains(text(),'Change image and reboot BMC')] |
| 14 | ${xpath_upload_image_and_reboot} //button[contains(text(),'Upload and reboot BMC')] |
| 15 | |
| 16 | *** Test Cases *** |
| 17 | |
| 18 | Verify Navigation To Firmware Page |
| 19 | [Documentation] Verify navigation to firmware page. |
| 20 | [Tags] Verify_Navigation_To_Firmware_Page |
| 21 | |
| 22 | Page Should Contain Element ${xpath_firmware_heading} |
| 23 | |
| 24 | |
| 25 | Verify Existence Of All Sections In Firmware Page |
| 26 | [Documentation] Verify existence of all sections in firmware page. |
| 27 | [Tags] Verify_Existence_Of_All_Sections_In_Firmware_Page |
| 28 | |
Rahul Maheshwari | 0aa8485 | 2021-07-27 07:03:48 -0500 | [diff] [blame] | 29 | Page Should Contain BMC and server |
| 30 | Page Should Contain Update firmware |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 31 | |
| 32 | |
| 33 | Verify Existence Of All Buttons In Firmware Page |
| 34 | [Documentation] Verify existence of all buttons in firmware page. |
| 35 | [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page |
| 36 | |
| 37 | Page Should Contain Element ${xpath_change_image_and_reboot} |
| 38 | Page Should Contain Element ${xpath_upload_image_and_reboot} |
| 39 | |
| 40 | |
rramyasr-in | f6985d0 | 2023-01-03 03:32:57 -0600 | [diff] [blame] | 41 | Verify Existence Of All Sub Sections Under BMC And Server Section |
| 42 | [Documentation] Verify existence of all sub sections under BMC and server section. |
| 43 | [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section |
| 44 | |
| 45 | Page Should Contain Running image |
| 46 | Page Should Contain Backup image |
| 47 | Page Should Contain Temporary |
| 48 | Page Should Contain Permanent |
| 49 | |
| 50 | |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 51 | *** Keywords *** |
| 52 | |
| 53 | Suite Setup Execution |
| 54 | [Documentation] Do test case setup tasks. |
| 55 | |
| 56 | Launch Browser And Login GUI |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 57 | Click Element ${xpath_operations_menu} |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 58 | Click Element ${xpath_firmware_update_sub_menu} |
| 59 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain firmware |