Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Overview" menu. |
| 4 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
manashsarma | 2544cb1 | 2020-08-23 14:25:08 -0500 | [diff] [blame] | 6 | Resource ../../../lib/logging_utils.robot |
manashsarma | fb35366 | 2020-08-27 05:12:04 -0500 | [diff] [blame] | 7 | Resource ../../../lib/list_utils.robot |
manashsarma | 6d584de | 2020-08-30 02:33:07 -0500 | [diff] [blame] | 8 | Resource ../../../lib/bmc_network_utils.robot |
| 9 | |
| 10 | Library String |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 11 | |
rramyasr-in | 1324257 | 2022-11-08 01:44:52 -0600 | [diff] [blame] | 12 | Suite Setup Run Keywords Launch Browser And Login GUI AND Redfish.Login |
| 13 | Suite Teardown Run Keywords Close Browser AND Redfish.Logout |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 14 | Test Setup Test Setup Execution |
| 15 | |
George Keishing | 0302e9a | 2023-10-12 21:48:35 +0530 | [diff] [blame] | 16 | Force Tags Overview_Menu |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 17 | |
| 18 | *** Variables *** |
| 19 | |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 20 | ${xpath_overview_page_header} //h1[contains(text(), "Overview")] |
| 21 | ${xpath_server_information_view_more_button} (//*[text()="View more"])[1] |
| 22 | ${xpath_firmware_information_view_more_button} (//*[text()="View more"])[2] |
rramyasr-in | 4033439 | 2022-11-21 10:14:51 -0600 | [diff] [blame] | 23 | ${xpath_network_information_view_more_button} (//*[text()="View more"])[3] |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 24 | ${xpath_power_information_view_more_button} (//*[text()="View more"])[4] |
| 25 | ${xpath_event_logs_view_more_button} (//*[text()="View more"])[5] |
| 26 | ${xpath_inventory_and_leds_view_more_button} (//*[text()="View more"])[6] |
| 27 | ${xpath_launch_host_console} //*[@data-test-id='overviewQuickLinks-button-solConsole'] |
| 28 | ${xpath_led_button} //*[@data-test-id='overviewInventory-checkbox-identifyLed'] |
rramyasr-in | b3442ed | 2023-03-01 10:48:52 -0600 | [diff] [blame] | 29 | ${xpath_dumps_view_more_button} (//*[text()="View more"])[7] |
| 30 | ${xpath_critical_logs_count} //dt[contains(text(),'Critical')]/following-sibling::dd[1] |
rramyasr-in | d99803f | 2023-03-21 07:08:01 -0500 | [diff] [blame] | 31 | ${xpath_warning_logs_count} //dt[contains(text(),'Warning')]/following-sibling::dd[1] |
rramyasr-in | 07d1004 | 2023-04-24 07:05:02 -0500 | [diff] [blame] | 32 | ${xpath_asset_tag} //dt[contains(text(),'Asset tag')]/following-sibling::dd[1] |
| 33 | ${xpath_operating_mode} //dt[contains(text(),'Operating mode')]/following-sibling::dd[1] |
| 34 | ${xpath_machine_model} //dt[contains(text(),'Model')]/following-sibling::dd[1] |
| 35 | ${xpath_serial_number} //dt[contains(text(),'Serial number')]/following-sibling::dd[1] |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 36 | |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 37 | *** Test Cases *** |
| 38 | |
| 39 | Verify Existence Of All Sections In Overview Page |
| 40 | [Documentation] Verify existence of all sections in Overview page. |
| 41 | [Tags] Verify_Existence_Of_All_Sections_In_Overview_Page |
| 42 | |
rramyasr-in | 1a79b66 | 2022-06-13 00:25:50 -0500 | [diff] [blame] | 43 | Page Should Contain BMC date and time |
Ashwini Chandrappa | 516f70d | 2021-12-14 01:21:29 -0600 | [diff] [blame] | 44 | Page Should Contain Firmware information |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 45 | Page Should Contain Server information |
Ashwini Chandrappa | 516f70d | 2021-12-14 01:21:29 -0600 | [diff] [blame] | 46 | Wait Until Page Contains Network information timeout=10 |
rramyasr-in | 532c37f | 2021-12-03 03:39:14 -0600 | [diff] [blame] | 47 | Page Should Contain Power information |
| 48 | Page Should Contain Event logs |
| 49 | Page Should Contain Inventory and LEDs |
rramyasr-in | e6818d1 | 2022-01-13 07:23:40 -0600 | [diff] [blame] | 50 | Page Should Contain Dumps |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 51 | |
rramyasr-in | 19e553c | 2022-10-27 02:17:41 -0500 | [diff] [blame] | 52 | |
manashsarma | 6d584de | 2020-08-30 02:33:07 -0500 | [diff] [blame] | 53 | Verify Network Information In Overview Page |
| 54 | [Documentation] Verify values under network information section. |
George Keishing | f924895 | 2021-05-28 07:52:37 -0500 | [diff] [blame] | 55 | [Tags] Verify_Network_Information_In_Overview_Page |
manashsarma | 6d584de | 2020-08-30 02:33:07 -0500 | [diff] [blame] | 56 | |
| 57 | ${hostname}= Get BMC Hostname |
| 58 | Page Should Contain ${hostname} |
| 59 | |
| 60 | # Get all IP addresses and prefix lengths on system. |
| 61 | |
ganesanb | 4d43028 | 2023-04-27 14:33:23 +0000 | [diff] [blame] | 62 | ${resp}= Redfish.Get Attribute /redfish/v1/Managers/${MANAGER_ID}/EthernetInterfaces/eth0 IPv4StaticAddresses |
rramyasr-in | 690fcd4 | 2022-10-27 03:25:39 -0500 | [diff] [blame] | 63 | ${ip_addr}= Set Variable ${resp[0]['Address']} |
| 64 | Page Should Contain ${ip_addr} |
manashsarma | 6d584de | 2020-08-30 02:33:07 -0500 | [diff] [blame] | 65 | |
manashsarma | 6d584de | 2020-08-30 02:33:07 -0500 | [diff] [blame] | 66 | |
manashsarma | e18f99e | 2020-08-28 10:12:57 -0500 | [diff] [blame] | 67 | Verify Server Information Section |
| 68 | [Documentation] Verify values under server information section in overview page. |
| 69 | [Tags] Verify_Server_Information_Section |
| 70 | |
rramyasr-in | 07d1004 | 2023-04-24 07:05:02 -0500 | [diff] [blame] | 71 | # Model. |
| 72 | ${redfish_machine_model}= Redfish.Get Attribute ${SYSTEM_BASE_URI} Model |
| 73 | Element Should Contain ${xpath_machine_model} ${redfish_machine_model} |
manashsarma | e18f99e | 2020-08-28 10:12:57 -0500 | [diff] [blame] | 74 | |
rramyasr-in | 07d1004 | 2023-04-24 07:05:02 -0500 | [diff] [blame] | 75 | # Serial Number. |
| 76 | ${redfish_serial_number}= Redfish.Get Attribute ${SYSTEM_BASE_URI} SerialNumber |
| 77 | Element Should Contain ${xpath_serial_number} ${redfish_serial_number} |
manashsarma | e18f99e | 2020-08-28 10:12:57 -0500 | [diff] [blame] | 78 | |
rramyasr-in | 07d1004 | 2023-04-24 07:05:02 -0500 | [diff] [blame] | 79 | # Asset Tag. |
| 80 | ${redfish_asset_tag}= Redfish.Get Attribute ${SYSTEM_BASE_URI} AssetTag |
| 81 | Element Should Contain ${xpath_asset_tag} ${redfish_asset_tag} |
manashsarma | e18f99e | 2020-08-28 10:12:57 -0500 | [diff] [blame] | 82 | |
rramyasr-in | 07d1004 | 2023-04-24 07:05:02 -0500 | [diff] [blame] | 83 | # Operating mode. |
| 84 | ${redfish_operating_mode}= Redfish.Get Attribute ${BIOS_ATTR_URI} Attributes |
| 85 | Element Should Contain ${xpath_operating_mode} ${redfish_operating_mode['pvm_system_operating_mode']} |
manashsarma | e18f99e | 2020-08-28 10:12:57 -0500 | [diff] [blame] | 86 | |
| 87 | |
manashsarma | 554ddec | 2020-08-26 00:46:02 -0500 | [diff] [blame] | 88 | Verify BMC Information Section |
| 89 | [Documentation] Verify BMC information section in overview page. |
| 90 | [Tags] Verify_BMC_Information_Section |
| 91 | |
| 92 | ${firmware_version}= Redfish Get BMC Version |
| 93 | Page Should Contain ${firmware_version} |
| 94 | |
| 95 | |
manashsarma | 43568c2 | 2020-08-19 12:16:24 -0500 | [diff] [blame] | 96 | Verify Edit Network Setting Button |
| 97 | [Documentation] Verify navigation to network setting page after clicking the button in overview page. |
| 98 | [Tags] Verify_Edit_Network_Setting_Button |
| 99 | |
rramyasr-in | 4033439 | 2022-11-21 10:14:51 -0600 | [diff] [blame] | 100 | Click Element ${xpath_network_information_view_more_button} |
rramyasr-in | 732cc3f | 2022-11-16 05:30:57 -0600 | [diff] [blame] | 101 | Wait Until Page Contains Element ${xpath_network_heading} |
manashsarma | 43568c2 | 2020-08-19 12:16:24 -0500 | [diff] [blame] | 102 | |
| 103 | |
rramyasr-in | b3442ed | 2023-03-01 10:48:52 -0600 | [diff] [blame] | 104 | Verify Event Under Critical Event Logs Section |
| 105 | [Documentation] Verify event under critical event logs section in case of any event. |
| 106 | [Tags] Verify_Event_Under_Critical_Event_Logs_Section |
| 107 | [Teardown] Redfish Purge Event Log |
manashsarma | fb35366 | 2020-08-27 05:12:04 -0500 | [diff] [blame] | 108 | |
| 109 | Redfish Purge Event Log |
| 110 | Click Element ${xpath_refresh_button} |
| 111 | Generate Test Error Log |
Ashwini Chandrappa | 243a1f2 | 2021-07-26 01:10:04 -0500 | [diff] [blame] | 112 | Click Element ${xpath_refresh_button} |
rramyasr-in | bee71fa | 2023-08-04 02:01:31 -0500 | [diff] [blame] | 113 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |
rramyasr-in | b3442ed | 2023-03-01 10:48:52 -0600 | [diff] [blame] | 114 | ${log_count}= Get Text ${xpath_critical_logs_count} |
| 115 | Should Be True '${log_count}' == '${1}' |
manashsarma | fb35366 | 2020-08-27 05:12:04 -0500 | [diff] [blame] | 116 | |
| 117 | |
rramyasr-in | d99803f | 2023-03-21 07:08:01 -0500 | [diff] [blame] | 118 | Verify Event Under Warning Event Logs Section |
| 119 | [Documentation] Verify event under warning event logs section in case of any event. |
| 120 | [Tags] Verify_Event_Under_Warning_Event_Logs_Section |
| 121 | [Teardown] Redfish Purge Event Log |
| 122 | |
| 123 | Redfish Purge Event Log |
| 124 | Click Element ${xpath_refresh_button} |
| 125 | |
| 126 | # Generate a predictable error for testing purpose. |
| 127 | BMC Execute Command ${CMD_PREDICTIVE_ERROR} |
| 128 | |
| 129 | Click Element ${xpath_refresh_button} |
rramyasr-in | af2226e | 2023-09-05 01:43:36 -0500 | [diff] [blame] | 130 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |
rramyasr-in | d99803f | 2023-03-21 07:08:01 -0500 | [diff] [blame] | 131 | |
| 132 | ${log_count}= Get Text ${xpath_warning_logs_count} |
| 133 | Should Be Equal As Integers ${log_count} 1 |
| 134 | |
| 135 | |
rramyasr-in | 4033439 | 2022-11-21 10:14:51 -0600 | [diff] [blame] | 136 | Verify View More Event Logs Button |
| 137 | [Documentation] Verify view more event log button in overview page. |
| 138 | [Tags] Verify_View_More_Event_Logs_Button |
manashsarma | 7d0a412 | 2020-08-23 13:41:03 -0500 | [diff] [blame] | 139 | |
| 140 | Generate Test Error Log |
rramyasr-in | 4033439 | 2022-11-21 10:14:51 -0600 | [diff] [blame] | 141 | Page Should Contain Element ${xpath_event_logs_view_more_button} timeout=30 |
| 142 | Click Element ${xpath_event_logs_view_more_button} |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 143 | Wait Until Page Contains Element ${xpath_event_logs_heading} timeout=30 |
manashsarma | 7d0a412 | 2020-08-23 13:41:03 -0500 | [diff] [blame] | 144 | |
| 145 | |
rramyasr-in | b18e15e | 2022-08-11 05:22:20 -0500 | [diff] [blame] | 146 | Verify Host Console Button In Overview Page |
| 147 | [Documentation] Click host console button and verify page navigation to host console page. |
| 148 | [Tags] Verify_Host_Console_Button_In_Overview_Page |
manashsarma | a3a2536 | 2020-08-23 09:23:28 -0500 | [diff] [blame] | 149 | |
rramyasr-in | b18e15e | 2022-08-11 05:22:20 -0500 | [diff] [blame] | 150 | Click Element ${xpath_launch_host_console} |
| 151 | Wait Until Page Contains Element ${xpath_host_console_heading} |
manashsarma | a3a2536 | 2020-08-23 09:23:28 -0500 | [diff] [blame] | 152 | |
| 153 | |
manashsarma | ffb3093 | 2020-08-24 07:31:54 -0500 | [diff] [blame] | 154 | Verify Server LED Turn On |
| 155 | [Documentation] Turn on server LED via GUI and verify its status via Redfish. |
| 156 | [Tags] Verify_Server_LED_Turn_On |
| 157 | |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 158 | # Turn Off the server LED via Redfish and refresh GUI. |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 159 | Set IndicatorLED State Off |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 160 | Refresh GUI |
manashsarma | ffb3093 | 2020-08-24 07:31:54 -0500 | [diff] [blame] | 161 | |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 162 | # Turn ON the LED via GUI. |
rramyasr-in | 436de60 | 2023-03-03 03:13:10 -0600 | [diff] [blame] | 163 | Click Element ${xpath_led_button} |
manashsarma | ffb3093 | 2020-08-24 07:31:54 -0500 | [diff] [blame] | 164 | |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 165 | # Cross check that server LED ON state via Redfish. |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 166 | Verify Identify LED State Via Redfish Lit |
manashsarma | ffb3093 | 2020-08-24 07:31:54 -0500 | [diff] [blame] | 167 | |
| 168 | |
| 169 | Verify Server LED Turn Off |
| 170 | [Documentation] Turn off server LED via GUI and verify its status via Redfish. |
| 171 | [Tags] Verify_Server_LED_Turn_Off |
| 172 | |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 173 | # Turn On the server LED via Redfish and refresh GUI. |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 174 | Set IndicatorLED State Lit |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 175 | Refresh GUI |
manashsarma | ffb3093 | 2020-08-24 07:31:54 -0500 | [diff] [blame] | 176 | |
Ashwini Chandrappa | 90c6a81 | 2021-07-07 04:50:00 -0500 | [diff] [blame] | 177 | # Turn OFF the LED via GUI. |
manashsarma | ffb3093 | 2020-08-24 07:31:54 -0500 | [diff] [blame] | 178 | Click Element At Coordinates ${xpath_led_button} 0 0 |
| 179 | |
| 180 | # Cross check that server LED off state via Redfish. |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 181 | Verify Identify LED State Via Redfish Off |
manashsarma | ffb3093 | 2020-08-24 07:31:54 -0500 | [diff] [blame] | 182 | |
| 183 | |
manashsarma | 65c9e14 | 2020-08-23 07:27:52 -0500 | [diff] [blame] | 184 | Verify BMC Time In Overview Page |
| 185 | [Documentation] Verify that BMC date from GUI matches with BMC time via Redfish. |
| 186 | [Tags] Verify_BMC_Time_In_Overview_Page |
| 187 | |
ganesanb | 4d43028 | 2023-04-27 14:33:23 +0000 | [diff] [blame] | 188 | ${date_time}= Redfish.Get Attribute ${REDFISH_BASE_URI}Managers/${MANAGER_ID} DateTime |
manashsarma | 65c9e14 | 2020-08-23 07:27:52 -0500 | [diff] [blame] | 189 | ${converted_date}= Convert Date ${date_time} result_format=%Y-%m-%d |
| 190 | |
| 191 | Page Should Contain ${converted_date} |
| 192 | |
| 193 | |
manashsarma | 43458ff | 2021-08-17 05:42:47 -0500 | [diff] [blame] | 194 | Verify BMC Information At Host Power Off State |
| 195 | [Documentation] Verify that BMC information is displayed at host power off state. |
| 196 | [Tags] Verify_BMC_Information_At_Host_Power_Off_State |
| 197 | |
| 198 | Redfish Power Off stack_mode=skip |
| 199 | ${firmware_version}= Redfish Get BMC Version |
| 200 | Page Should Contain ${firmware_version} |
| 201 | |
| 202 | |
rramyasr-in | 305d23a | 2022-01-19 01:32:04 -0600 | [diff] [blame] | 203 | Verify View More Button For Dumps |
| 204 | [Documentation] Verify view more button for dumps button in overview page. |
| 205 | [Tags] Verify_View_More_Button_For_Dumps |
| 206 | |
rramyasr-in | b3442ed | 2023-03-01 10:48:52 -0600 | [diff] [blame] | 207 | Wait Until Page Contains Element ${xpath_dumps_view_more_button} timeout=30 |
| 208 | Click Element ${xpath_dumps_view_more_button} |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 209 | Wait Until Page Contains Element ${xpath_dumps_header} timeout=30 |
| 210 | |
| 211 | |
| 212 | Verify View More Button Under Server Information Section |
| 213 | [Documentation] Verify view more button under server information section in overview page. |
| 214 | [Tags] Verify_View_More_Button_Under_Server_Information_Section |
| 215 | |
rramyasr-in | 4033439 | 2022-11-21 10:14:51 -0600 | [diff] [blame] | 216 | Wait Until Page Contains Element ${xpath_server_information_view_more_button} timeout=30 |
| 217 | Click Element ${xpath_server_information_view_more_button} |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 218 | Wait Until Page Contains Element ${xpath_inventory_and_leds_heading} timeout=30 |
| 219 | |
| 220 | |
| 221 | Verify View More Button Under Firmware Information Section |
| 222 | [Documentation] Verify view more button under firmware information section in overview page. |
| 223 | [Tags] Verify_View_More_Button_Under_Firmware_Information_Section |
| 224 | |
| 225 | Wait Until Page Contains Element ${xpath_firmware_information_view_more_button} timeout=30 |
| 226 | Click Element ${xpath_firmware_information_view_more_button} |
| 227 | Wait Until Page Contains Element ${xpath_firmware_heading} timeout=30 |
| 228 | |
| 229 | |
| 230 | Verify View More Button Under Network Information Section |
| 231 | [Documentation] Verify view more button under network information section in overview page. |
George Keishing | 44cce89 | 2022-11-23 08:05:57 -0600 | [diff] [blame] | 232 | [Tags] Verify_View_More_Button_Under_Network_Information_Section |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 233 | |
rramyasr-in | 4033439 | 2022-11-21 10:14:51 -0600 | [diff] [blame] | 234 | Wait Until Page Contains Element ${xpath_network_information_view_more_button} timeout=30 |
| 235 | Click Element ${xpath_network_information_view_more_button} |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 236 | Wait Until Page Contains Element ${xpath_network_heading} timeout=30 |
| 237 | |
| 238 | |
| 239 | Verify View More Button Under Power Information Section |
| 240 | [Documentation] Verify view more button under power information section in overview page. |
George Keishing | 44cce89 | 2022-11-23 08:05:57 -0600 | [diff] [blame] | 241 | [Tags] Verify_View_More_Button_Under_Power_Information_Section |
rramyasr-in | 5f280c0 | 2022-11-11 06:41:00 -0600 | [diff] [blame] | 242 | |
| 243 | Wait Until Page Contains Element ${xpath_power_information_view_more_button} timeout=30 |
| 244 | Click Element ${xpath_power_information_view_more_button} |
| 245 | Wait Until Page Contains Element ${xpath_power_heading} timeout=30 |
| 246 | |
| 247 | |
| 248 | Verify View More Button Under Event Logs Section |
| 249 | [Documentation] Verify view more button under event logs section in overview page. |
| 250 | [Tags] Verify_View_More_Button_Under_Event_Logs_Section |
| 251 | |
| 252 | Wait Until Page Contains Element ${xpath_event_logs_view_more_button} timeout=30 |
| 253 | Click Element ${xpath_event_logs_view_more_button} |
| 254 | Wait Until Page Contains Element ${xpath_event_logs_heading} timeout=30 |
| 255 | |
| 256 | |
| 257 | Verify View More Button Under Inventory And LEDs Section |
| 258 | [Documentation] Verify view more button under inventory and leds section in overview page. |
| 259 | [Tags] Verify_View_More_Button_Under_Inventory_And_LEDs_Section |
| 260 | |
| 261 | Wait Until Page Contains Element ${xpath_inventory_and_leds_view_more_button} timeout=30 |
| 262 | Click Element ${xpath_inventory_and_leds_view_more_button} |
| 263 | Wait Until Page Contains Element ${xpath_inventory_and_leds_heading} timeout=30 |
| 264 | |
rramyasr-in | 305d23a | 2022-01-19 01:32:04 -0600 | [diff] [blame] | 265 | |
rramyasr-in | 6337827 | 2023-04-06 23:58:46 -0500 | [diff] [blame] | 266 | Verify Text Under Server Information Section |
| 267 | [Documentation] Verify text under server information section in overview page. |
| 268 | [Tags] Verify_Text_Under_Server_Information_Section |
| 269 | |
| 270 | Page Should Contain Model |
| 271 | Page Should Contain Operating mode |
| 272 | Page Should Contain Serial number |
| 273 | Page Should Contain Service login |
| 274 | Page Should Contain Asset tag |
| 275 | |
| 276 | |
| 277 | Verify Text Under Firmware Information Section |
| 278 | [Documentation] Verify text under firmware information section in overview page. |
| 279 | [Tags] Verify_Text_Under_Firmware_Information_Section |
| 280 | |
| 281 | Page Should Contain Running |
| 282 | Page Should Contain Backup |
| 283 | Page Should Contain Access key expiration |
| 284 | |
| 285 | |
| 286 | Verify Text Under Network Information Section |
| 287 | [Documentation] Verify text under network information section in overview page. |
| 288 | [Tags] Verify_Text_Under_Network_Information_Section |
| 289 | |
| 290 | Page Should Contain Hostname |
| 291 | Page Should Contain IPv4 |
| 292 | Page Should Contain DHCPv4 |
| 293 | |
| 294 | |
| 295 | Verify Text Under Power Information Section |
| 296 | [Documentation] Verify text under power information section in overview page. |
| 297 | [Tags] Verify_Text_Under_Power_Information_Section |
| 298 | |
| 299 | Page Should Contain Power consumption |
| 300 | Page Should Contain Idle power saver |
| 301 | Page Should Contain Power cap |
| 302 | Page Should Contain Power mode |
| 303 | |
| 304 | |
| 305 | Verify Text Under Event Logs Section |
| 306 | [Documentation] Verify text under event logs section in overview page. |
| 307 | [Tags] Verify_Text_Under_Event_Logs_Section |
| 308 | |
| 309 | Page Should Contain Critical |
| 310 | Page Should Contain Warning |
| 311 | |
| 312 | |
| 313 | Verify Text Under Inventory And LEDs Section |
| 314 | [Documentation] Verify text under inventory and leds section in overview page. |
George Keishing | 7af7d86 | 2023-04-24 18:48:13 +0530 | [diff] [blame] | 315 | [Tags] Verify_Text_Under_Inventory_And_LEDs_Section |
rramyasr-in | 6337827 | 2023-04-06 23:58:46 -0500 | [diff] [blame] | 316 | |
| 317 | Page Should Contain System identify LED |
| 318 | |
| 319 | |
| 320 | Verify Text Under Dumps Section |
| 321 | [Documentation] Verify text under Dumps section in overview page. |
| 322 | [Tags] Verify_Text_Under_Dumps_Section |
| 323 | |
| 324 | Page Should Contain Total |
| 325 | |
| 326 | |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 327 | *** Keywords *** |
| 328 | |
| 329 | Test Setup Execution |
| 330 | [Documentation] Do test case setup tasks. |
| 331 | |
| 332 | Click Element ${xpath_overview_menu} |
| 333 | Wait Until Page Contains Element ${xpath_overview_page_header} |
rramyasr-in | 7776e32 | 2022-10-10 11:01:13 -0500 | [diff] [blame] | 334 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 335 | |
rramyasr-in | 1324257 | 2022-11-08 01:44:52 -0600 | [diff] [blame] | 336 | |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 337 | Verify Identify LED State Via Redfish |
| 338 | [Documentation] Verify that Redfish identify LED system with given state. |
| 339 | [Arguments] ${expected_state} |
| 340 | # Description of argument(s): |
| 341 | # expected_state Expected value of Identify LED. |
| 342 | |
rramyasr-in | 436de60 | 2023-03-03 03:13:10 -0600 | [diff] [blame] | 343 | ${led_state}= Redfish.Get Attribute /redfish/v1/Systems/system IndicatorLED |
| 344 | Should Be True '${led_state}' == '${expected_state}' |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 345 | |
| 346 | |
| 347 | Set IndicatorLED State |
George Keishing | e23afb5 | 2022-03-17 08:25:49 -0500 | [diff] [blame] | 348 | [Documentation] Perform redfish PATCH operation. |
George Keishing | 52eb7c2 | 2022-03-11 10:58:53 -0600 | [diff] [blame] | 349 | [Arguments] ${led_state} ${expect_resp_code}=[200, 204] |
| 350 | # Description of argument(s): |
| 351 | # led_state IndicatorLED state to "off", "Lit" etc. |
| 352 | # expect_resp_code Expected HTTPS response code. Default [200, 204] |
| 353 | |
rramyasr-in | 436de60 | 2023-03-03 03:13:10 -0600 | [diff] [blame] | 354 | |
| 355 | Redfish.Patch /redfish/v1/Systems/system body={"IndicatorLED": "${led_state}"} |
| 356 | ... valid_status_codes=${expect_resp_code} |
| 357 | |