Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This test suite will validate the "OpenBMC ASMI Menu -> |
| 3 | ... Server Overview" module. |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
Anusha Dathatri | 37159da | 2019-10-01 04:51:26 -0500 | [diff] [blame] | 6 | Resource ../lib/bmc_network_utils.robot |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 7 | Test Setup Test Setup Execution ${OBMC_PowerOff_state} |
| 8 | Test Teardown Test Teardown Execution |
| 9 | |
| 10 | *** Variables *** |
Anusha Dathatri | e8568f2 | 2019-07-24 11:51:01 -0500 | [diff] [blame] | 11 | ${xpath_select_overview_1} //*[@href="#/overview/server"] |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 12 | ${string_content} witherspoon |
| 13 | ${string_server_info} Server information |
| 14 | ${string_high_priority_events} High priority events |
| 15 | ${string_BMC_info} BMC information |
Anusha Dathatri | 37159da | 2019-10-01 04:51:26 -0500 | [diff] [blame] | 16 | ${string_power_info} Power Consumption |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 17 | ${xpath_high_priority_events} //a[@href='#/server-health/event-log'] |
| 18 | ${string_event_log} Event log |
| 19 | ${xpath_launch_serial_over_lan} //a[@class='no-icon quick-links__item'] |
| 20 | ${string_launch_serial_over_lan} Serial over LAN console |
| 21 | |
| 22 | *** Test Case *** |
| 23 | # OpenBMC @ Power Off state test cases. |
| 24 | |
Kaushik Venkatesh | f119010 | 2019-03-07 02:18:00 -0600 | [diff] [blame] | 25 | Verify Serial Over LAN Button |
| 26 | [Documentation] Verify console page on clicking serial over lan console button |
| 27 | [Tags] Verify_Serial_Over_LAN_Button |
| 28 | |
| 29 | Select Server Overview Menu |
| 30 | Click Element ${xpath_launch_serial_over_lan} |
| 31 | Verify Display Content Access the Serial over LAN console |
| 32 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 33 | Verify Title Text Content At OBMC Power Off State |
| 34 | [Documentation] Verify display of title text from "Server Overview" |
| 35 | ... module of OpenBMC GUI. |
| 36 | [Tags] Verify_Title_Text_Content_At_OBMC_Power_Off_State |
| 37 | ... OBMC_PowerOff_state |
| 38 | |
| 39 | Select Server Overview Menu |
| 40 | Verify Display Content ${string_content} |
| 41 | |
| 42 | Verify Display Text Server Information At OBMC Power Off State |
| 43 | [Documentation] Verify existence of text "Server information". |
| 44 | [Tags] Verify_Display_Text_Server_Information_At_OBMC_Power_Off_State |
| 45 | ... OBMC_PowerOff_state |
| 46 | |
| 47 | Select Server Overview Menu |
| 48 | Verify Display Content ${string_server_info} |
| 49 | |
| 50 | Verify BMC Information Should Display At OBMC Power Off State |
| 51 | [Documentation] Verify existence of text "BMC information". |
| 52 | [Tags] Verify_BMC_Information_Should_Display_At_OBMC_Power_Off_State |
| 53 | ... OBMC_PowerOff_State |
| 54 | |
| 55 | Select Server Overview Menu |
| 56 | Verify Display Content ${string_BMC_info} |
| 57 | |
Anusha Dathatri | 37159da | 2019-10-01 04:51:26 -0500 | [diff] [blame] | 58 | Verify POWER Consumption Should Display At OBMC Power Off State |
| 59 | [Documentation] Verify existence of text "Power Consumption". |
| 60 | [Tags] Verify_Power_Consumption_Should_Display_At_OBMC_Power_Off_State |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 61 | ... OBMC_PowerOff_State |
| 62 | |
| 63 | Select Server Overview Menu |
| 64 | Verify Display Content ${string_power_info} |
| 65 | |
| 66 | Verify High Priority Events Should Display At OBMC Power Off State |
| 67 | [Documentation] Verify the text display. |
| 68 | [Tags] Verify_High_Priority_Events_Should_Display_At_OBMC_Power_Off_State |
| 69 | ... OBMC_PowerOff_State |
| 70 | |
| 71 | Select Server Overview Menu |
| 72 | Verify Display Content ${string_high_priority_events} |
| 73 | |
| 74 | Verify High Priority Events Can Be Operated At OBMC Power Off State |
| 75 | [Documentation] Will open the "High Priority Events". |
| 76 | ... menu to view and operate. |
| 77 | [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Off_State |
| 78 | ... OBMC_PowerOff_state |
| 79 | |
| 80 | Select Server Overview Menu |
| 81 | Click Link ${xpath_high_priority_events} |
| 82 | Verify Display Content ${string_event_log} |
| 83 | |
| 84 | Verify Launching Of Serial Over LAN Console At OBMC Power Off State |
| 85 | [Documentation] Will open the serial over the lan command prompt window. |
| 86 | [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Off_State |
| 87 | ... OBMC_PowerOff_State |
| 88 | |
| 89 | Select Server Overview Menu |
| 90 | Click Element ${xpath_launch_serial_over_lan} |
| 91 | Verify Display Content ${string_launch_serial_over_lan} |
| 92 | |
| 93 | |
| 94 | # OpenBMC @ Power Running state test cases. |
| 95 | |
Arpana Durgaprasad | 09856a4 | 2019-04-16 03:57:37 -0500 | [diff] [blame] | 96 | Verify BMC Information |
| 97 | [Documentation] Get BMC hostname, version, IP, and MAC address via GUI and verify using REST |
| 98 | [Tags] Verify_BMC_Information |
| 99 | |
| 100 | Select Server Overview Menu |
| 101 | |
| 102 | ${hostname}= Get BMC Hostname |
| 103 | ${hostname}= Remove String ${hostname} ' |
| 104 | ${hostname}= Fetch From Right ${hostname} : |
| 105 | Verify Display Content ${hostname} |
| 106 | |
| 107 | ${version}= Get BMC Version |
| 108 | ${version}= Remove String ${version} " |
| 109 | Verify Display Content ${version} |
| 110 | |
| 111 | ${iplist}= Get BMC IP Info |
| 112 | :FOR ${ip} IN @{iplist} |
| 113 | \ ${ip}= Fetch From Left ${ip} / |
| 114 | \ Verify Display Content ${ip} |
| 115 | |
| 116 | ${mac}= Get BMC MAC Address |
| 117 | Verify Display Content ${mac} |
| 118 | |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 119 | Verify High Priority Events Can Be Operated At OBMC Power Running State |
| 120 | [Documentation] Will open the "High Priority Events" |
| 121 | ... menu to view and operate. |
| 122 | [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Running_State |
| 123 | ... OBMC_PowerRunning_state |
| 124 | [Setup] Test Setup Execution ${OBMC_PowerRunning_state} |
| 125 | |
| 126 | Select Server Overview Menu |
| 127 | Click Link ${xpath_high_priority_events} |
| 128 | Verify Display Content ${string_event_log} |
| 129 | |
| 130 | Verify Launching Of Serial Over LAN Console At OBMC Power Running State |
| 131 | [Documentation] Will open the serial over the lan command prompt window. |
| 132 | [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Running_State |
| 133 | ... OBMC_PowerRunning_State |
| 134 | [Setup] Test Setup Execution ${OBMC_PowerRunning_state} |
| 135 | |
| 136 | Select Server Overview Menu |
| 137 | Click Element ${xpath_launch_serial_over_lan} |
| 138 | Verify Display Content ${string_launch_serial_over_lan} |
| 139 | |
| 140 | *** Keywords *** |
| 141 | Select Server Overview Menu |
| 142 | [Documentation] Selecting of OpenBMC "Server overview" menu. |
| 143 | |
Anusha Dathatri | e8568f2 | 2019-07-24 11:51:01 -0500 | [diff] [blame] | 144 | Click Element ${xpath_select_overview_1} |
| 145 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 146 | Page Should Contain Server information |
Sathyajith M S | 4f26ae7 | 2018-01-16 04:45:05 -0600 | [diff] [blame] | 147 | |
| 148 | Verify Display Content |
| 149 | [Documentation] Verify text content display. |
| 150 | [Arguments] ${display_text} |
| 151 | # Description of argument(s): |
| 152 | # display_text The display text on web page. |
| 153 | |
| 154 | Page Should Contain ${display_text} |