blob: eee85a2672446856fdddff77ef5e39262488e35a [file] [log] [blame]
Anusha Dathatrie11a54d2020-08-31 08:35:47 -05001*** Settings ***
2
Rahul Maheshwari142642d2021-08-24 00:00:15 -05003Documentation Test OpenBMC Firmware Update" sub menu of "Operations".
Anusha Dathatrie11a54d2020-08-31 08:35:47 -05004
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Anusha Dathatrie11a54d2020-08-31 08:35:47 -05006
7Suite Setup Suite Setup Execution
8Suite Teardown Close Browser
9
10*** Variables ***
11
rramyasr-inb33ea542023-01-10 08:57:13 -060012${xpath_firmware_heading} //h1[text()="Firmware"]
Nandish-Matti0c4845d2023-02-24 05:39:21 -060013${xpath_add_file_button} //*[@id='image-file']
rramyasr-inb33ea542023-01-10 08:57:13 -060014${xpath_start_update_button} //*[@data-test-id="firmware-button-startUpdate"]
15
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050016
17*** Test Cases ***
18
19Verify 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
26Verify 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 Maheshwari0aa84852021-07-27 07:03:48 -050030 Page Should Contain BMC and server
31 Page Should Contain Update firmware
rramyasr-inb33ea542023-01-10 08:57:13 -060032 Page Should Contain Access key expiration
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050033
34
rramyasr-inb33ea542023-01-10 08:57:13 -060035Verify 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 Dathatrie11a54d2020-08-31 08:35:47 -050038
rramyasr-inb33ea542023-01-10 08:57:13 -060039 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 Dathatrie11a54d2020-08-31 08:35:47 -050043
44
rramyasr-inf6985d02023-01-03 03:32:57 -060045Verify Existence Of All Sub Sections Under BMC And Server Section
46 [Documentation] Verify existence of all sub sections under BMC and server section.
47 [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section
48
49 Page Should Contain Running image
50 Page Should Contain Backup image
51 Page Should Contain Temporary
52 Page Should Contain Permanent
53
54
rramyasr-inbd87c772023-01-12 04:55:10 -060055Verify Existence Of All Buttons In Firmware Page At Host Power On
56 [Documentation] Verify existence of all buttons in firmware page at host power on.
57 [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page_At_Host_Power_On
58
59 Redfish Power On stack_mode=skip
60
Nandish-Matti0c4845d2023-02-24 05:39:21 -060061 Element Should Be Disabled ${xpath_add_file_button}
62 Element Should Be Disabled ${xpath_start_update_button}
rramyasr-inbd87c772023-01-12 04:55:10 -060063
64
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050065*** Keywords ***
66
67Suite Setup Execution
68 [Documentation] Do test case setup tasks.
69
70 Launch Browser And Login GUI
Rahul Maheshwari142642d2021-08-24 00:00:15 -050071 Click Element ${xpath_operations_menu}
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050072 Click Element ${xpath_firmware_update_sub_menu}
73 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain firmware
rramyasr-in9e2c96f2023-01-24 07:59:34 -060074 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30