blob: 051c758152d402d232f94f94801ce4aeea227b12 [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
George Keishing0302e9a2023-10-12 21:48:35 +053010Force Tags Firmware_Sub_Menu
11
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050012*** Variables ***
13
rramyasr-inb33ea542023-01-10 08:57:13 -060014${xpath_firmware_heading} //h1[text()="Firmware"]
Nandish-Matti0c4845d2023-02-24 05:39:21 -060015${xpath_add_file_button} //*[@id='image-file']
rramyasr-inb33ea542023-01-10 08:57:13 -060016${xpath_start_update_button} //*[@data-test-id="firmware-button-startUpdate"]
rramyasr-ina4b74e42023-07-27 04:22:59 -050017${xpath_switch_to_running} //*[@data-test-id="firmware-button-switchToRunning"]
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050018
19*** Test Cases ***
20
21Verify Navigation To Firmware Page
22 [Documentation] Verify navigation to firmware page.
23 [Tags] Verify_Navigation_To_Firmware_Page
24
25 Page Should Contain Element ${xpath_firmware_heading}
26
27
28Verify Existence Of All Sections In Firmware Page
29 [Documentation] Verify existence of all sections in firmware page.
30 [Tags] Verify_Existence_Of_All_Sections_In_Firmware_Page
31
Rahul Maheshwari0aa84852021-07-27 07:03:48 -050032 Page Should Contain BMC and server
33 Page Should Contain Update firmware
rramyasr-inb33ea542023-01-10 08:57:13 -060034 Page Should Contain Access key expiration
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050035
36
rramyasr-inb33ea542023-01-10 08:57:13 -060037Verify Existence Of All Buttons In Firmware Page At Host Power Off
38 [Documentation] Verify existence of all buttons in firmware page at host power off.
39 [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page_At_Host_Power_Off
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050040
rramyasr-inb33ea542023-01-10 08:57:13 -060041 Redfish Power Off stack_mode=skip
42
43 Page Should Contain Element ${xpath_add_file_button}
44 Page Should Contain Element ${xpath_start_update_button}
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050045
46
rramyasr-ina4b74e42023-07-27 04:22:59 -050047Verify Existence Of All Sub Sections Under BMC And Server Section At Poweroff State
48 [Documentation] Verify existence of all sub sections under BMC and server section at poweroff state.
49 [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section_At_Poweroff_State
50
51 Redfish Power Off stack_mode=skip quiet=1
rramyasr-inf6985d02023-01-03 03:32:57 -060052
53 Page Should Contain Running image
54 Page Should Contain Backup image
55 Page Should Contain Temporary
56 Page Should Contain Permanent
rramyasr-ina4b74e42023-07-27 04:22:59 -050057 Element Should Be Visible ${xpath_switch_to_running}
rramyasr-inf6985d02023-01-03 03:32:57 -060058
59
rramyasr-in4c9316b2023-08-01 05:27:06 -050060Verify Existence Of All Sub Sections Under BMC And Server Section At Power On State
61 [Documentation] Verify existence of all sub sections under BMC and server section at power on state.
62 [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section_At_Power_On_State
63
64 Redfish Power On stack_mode=skip quiet=1
65
66 Page Should Contain Running image
67 Page Should Contain Backup image
68 Page Should Contain Temporary
69 Page Should Contain Permanent
70 Element Should Be Disabled ${xpath_switch_to_running}
71
72
rramyasr-inbd87c772023-01-12 04:55:10 -060073Verify Existence Of All Buttons In Firmware Page At Host Power On
74 [Documentation] Verify existence of all buttons in firmware page at host power on.
75 [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page_At_Host_Power_On
76
77 Redfish Power On stack_mode=skip
78
Nandish-Matti0c4845d2023-02-24 05:39:21 -060079 Element Should Be Disabled ${xpath_add_file_button}
80 Element Should Be Disabled ${xpath_start_update_button}
rramyasr-inbd87c772023-01-12 04:55:10 -060081
82
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050083*** Keywords ***
84
85Suite Setup Execution
86 [Documentation] Do test case setup tasks.
87
88 Launch Browser And Login GUI
Rahul Maheshwari142642d2021-08-24 00:00:15 -050089 Click Element ${xpath_operations_menu}
Anusha Dathatrie11a54d2020-08-31 08:35:47 -050090 Click Element ${xpath_firmware_update_sub_menu}
91 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain firmware
rramyasr-in9e2c96f2023-01-24 07:59:34 -060092 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30