1*** Settings *** 2Documentation This test suite will validate the "OpenBMC ASMI Menu -> 3... Server Overview" module. 4 5Resource ../../lib/resource.robot 6Test Setup Test Setup Execution ${OBMC_PowerOff_state} 7Test Teardown Test Teardown Execution 8 9*** Variables *** 10${xpath_select_overview_1} //*[@id="nav__top-level"]/li[1]/a/span 11${string_content} witherspoon 12${string_server_info} Server information 13${string_high_priority_events} High priority events 14${string_BMC_info} BMC information 15${string_power_info} Power information 16${xpath_high_priority_events} //a[@href='#/server-health/event-log'] 17${string_event_log} Event log 18${xpath_launch_serial_over_lan} //a[@class='no-icon quick-links__item'] 19${string_launch_serial_over_lan} Serial over LAN console 20 21*** Test Case *** 22# OpenBMC @ Power Off state test cases. 23 24Verify Serial Over LAN Button 25 [Documentation] Verify console page on clicking serial over lan console button 26 [Tags] Verify_Serial_Over_LAN_Button 27 28 Select Server Overview Menu 29 Click Element ${xpath_launch_serial_over_lan} 30 Verify Display Content Access the Serial over LAN console 31 32Verify Title Text Content At OBMC Power Off State 33 [Documentation] Verify display of title text from "Server Overview" 34 ... module of OpenBMC GUI. 35 [Tags] Verify_Title_Text_Content_At_OBMC_Power_Off_State 36 ... OBMC_PowerOff_state 37 38 Select Server Overview Menu 39 Verify Display Content ${string_content} 40 41Verify Display Text Server Information At OBMC Power Off State 42 [Documentation] Verify existence of text "Server information". 43 [Tags] Verify_Display_Text_Server_Information_At_OBMC_Power_Off_State 44 ... OBMC_PowerOff_state 45 46 Select Server Overview Menu 47 Verify Display Content ${string_server_info} 48 49Verify BMC Information Should Display At OBMC Power Off State 50 [Documentation] Verify existence of text "BMC information". 51 [Tags] Verify_BMC_Information_Should_Display_At_OBMC_Power_Off_State 52 ... OBMC_PowerOff_State 53 54 Select Server Overview Menu 55 Verify Display Content ${string_BMC_info} 56 57Verify POWER Information Should Display At OBMC Power Off State 58 [Documentation] Verify existence of text "Power information". 59 [Tags] Verify_Power_Information_Should_Display_At_OBMC_Power_Off_State 60 ... OBMC_PowerOff_State 61 62 Select Server Overview Menu 63 Verify Display Content ${string_power_info} 64 65Verify High Priority Events Should Display At OBMC Power Off State 66 [Documentation] Verify the text display. 67 [Tags] Verify_High_Priority_Events_Should_Display_At_OBMC_Power_Off_State 68 ... OBMC_PowerOff_State 69 70 Select Server Overview Menu 71 Verify Display Content ${string_high_priority_events} 72 73Verify High Priority Events Can Be Operated At OBMC Power Off State 74 [Documentation] Will open the "High Priority Events". 75 ... menu to view and operate. 76 [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Off_State 77 ... OBMC_PowerOff_state 78 79 Select Server Overview Menu 80 Click Link ${xpath_high_priority_events} 81 Verify Display Content ${string_event_log} 82 83Verify Launching Of Serial Over LAN Console At OBMC Power Off State 84 [Documentation] Will open the serial over the lan command prompt window. 85 [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Off_State 86 ... OBMC_PowerOff_State 87 88 Select Server Overview Menu 89 Click Element ${xpath_launch_serial_over_lan} 90 Verify Display Content ${string_launch_serial_over_lan} 91 92 93# OpenBMC @ Power Running state test cases. 94 95Verify High Priority Events Can Be Operated At OBMC Power Running State 96 [Documentation] Will open the "High Priority Events" 97 ... menu to view and operate. 98 [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Running_State 99 ... OBMC_PowerRunning_state 100 [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 101 102 Select Server Overview Menu 103 Click Link ${xpath_high_priority_events} 104 Verify Display Content ${string_event_log} 105 106Verify Launching Of Serial Over LAN Console At OBMC Power Running State 107 [Documentation] Will open the serial over the lan command prompt window. 108 [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Running_State 109 ... OBMC_PowerRunning_State 110 [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 111 112 Select Server Overview Menu 113 Click Element ${xpath_launch_serial_over_lan} 114 Verify Display Content ${string_launch_serial_over_lan} 115 116*** Keywords *** 117Select Server Overview Menu 118 [Documentation] Selecting of OpenBMC "Server overview" menu. 119 120 Click Button ${xpath_select_overview_1} 121 122Verify Display Content 123 [Documentation] Verify text content display. 124 [Arguments] ${display_text} 125 # Description of argument(s): 126 # display_text The display text on web page. 127 128 Page Should Contain ${display_text} 129