1b89977a4SRahul Maheshwari*** Settings *** 2b89977a4SRahul MaheshwariDocumentation This test suite will validate the "OpenBMC ASMI Menu -> 3b89977a4SRahul Maheshwari... Server Overview" module. 4b89977a4SRahul Maheshwari 5b89977a4SRahul MaheshwariResource ../../lib/resource.robot 6b89977a4SRahul MaheshwariTest Setup Test Setup Execution ${OBMC_PowerOff_state} 7b89977a4SRahul MaheshwariTest Teardown Test Teardown Execution 8b89977a4SRahul Maheshwari 9b89977a4SRahul Maheshwari*** Variables *** 10*e8568f29SAnusha Dathatri${xpath_select_overview_1} //*[@href="#/overview/server"] 11b89977a4SRahul Maheshwari${string_content} witherspoon 12b89977a4SRahul Maheshwari${string_server_info} Server information 13b89977a4SRahul Maheshwari${string_high_priority_events} High priority events 14b89977a4SRahul Maheshwari${string_BMC_info} BMC information 15b89977a4SRahul Maheshwari${string_power_info} Power information 16b89977a4SRahul Maheshwari${xpath_high_priority_events} //a[@href='#/server-health/event-log'] 17b89977a4SRahul Maheshwari${string_event_log} Event log 18b89977a4SRahul Maheshwari${xpath_launch_serial_over_lan} //a[@class='no-icon quick-links__item'] 19b89977a4SRahul Maheshwari${string_launch_serial_over_lan} Serial over LAN console 20b89977a4SRahul Maheshwari 21b89977a4SRahul Maheshwari*** Test Case *** 22b89977a4SRahul Maheshwari# OpenBMC @ Power Off state test cases. 23b89977a4SRahul Maheshwari 24f119010bSKaushik VenkateshVerify Serial Over LAN Button 25f119010bSKaushik Venkatesh [Documentation] Verify console page on clicking serial over lan console button 26f119010bSKaushik Venkatesh [Tags] Verify_Serial_Over_LAN_Button 27f119010bSKaushik Venkatesh 28f119010bSKaushik Venkatesh Select Server Overview Menu 29f119010bSKaushik Venkatesh Click Element ${xpath_launch_serial_over_lan} 30f119010bSKaushik Venkatesh Verify Display Content Access the Serial over LAN console 31f119010bSKaushik Venkatesh 32b89977a4SRahul MaheshwariVerify Title Text Content At OBMC Power Off State 33b89977a4SRahul Maheshwari [Documentation] Verify display of title text from "Server Overview" 34b89977a4SRahul Maheshwari ... module of OpenBMC GUI. 35b89977a4SRahul Maheshwari [Tags] Verify_Title_Text_Content_At_OBMC_Power_Off_State 36b89977a4SRahul Maheshwari ... OBMC_PowerOff_state 37b89977a4SRahul Maheshwari 38b89977a4SRahul Maheshwari Select Server Overview Menu 39b89977a4SRahul Maheshwari Verify Display Content ${string_content} 40b89977a4SRahul Maheshwari 41b89977a4SRahul MaheshwariVerify Display Text Server Information At OBMC Power Off State 42b89977a4SRahul Maheshwari [Documentation] Verify existence of text "Server information". 43b89977a4SRahul Maheshwari [Tags] Verify_Display_Text_Server_Information_At_OBMC_Power_Off_State 44b89977a4SRahul Maheshwari ... OBMC_PowerOff_state 45b89977a4SRahul Maheshwari 46b89977a4SRahul Maheshwari Select Server Overview Menu 47b89977a4SRahul Maheshwari Verify Display Content ${string_server_info} 48b89977a4SRahul Maheshwari 49b89977a4SRahul MaheshwariVerify BMC Information Should Display At OBMC Power Off State 50b89977a4SRahul Maheshwari [Documentation] Verify existence of text "BMC information". 51b89977a4SRahul Maheshwari [Tags] Verify_BMC_Information_Should_Display_At_OBMC_Power_Off_State 52b89977a4SRahul Maheshwari ... OBMC_PowerOff_State 53b89977a4SRahul Maheshwari 54b89977a4SRahul Maheshwari Select Server Overview Menu 55b89977a4SRahul Maheshwari Verify Display Content ${string_BMC_info} 56b89977a4SRahul Maheshwari 57b89977a4SRahul MaheshwariVerify POWER Information Should Display At OBMC Power Off State 58b89977a4SRahul Maheshwari [Documentation] Verify existence of text "Power information". 59b89977a4SRahul Maheshwari [Tags] Verify_Power_Information_Should_Display_At_OBMC_Power_Off_State 60b89977a4SRahul Maheshwari ... OBMC_PowerOff_State 61b89977a4SRahul Maheshwari 62b89977a4SRahul Maheshwari Select Server Overview Menu 63b89977a4SRahul Maheshwari Verify Display Content ${string_power_info} 64b89977a4SRahul Maheshwari 65b89977a4SRahul MaheshwariVerify High Priority Events Should Display At OBMC Power Off State 66b89977a4SRahul Maheshwari [Documentation] Verify the text display. 67b89977a4SRahul Maheshwari [Tags] Verify_High_Priority_Events_Should_Display_At_OBMC_Power_Off_State 68b89977a4SRahul Maheshwari ... OBMC_PowerOff_State 69b89977a4SRahul Maheshwari 70b89977a4SRahul Maheshwari Select Server Overview Menu 71b89977a4SRahul Maheshwari Verify Display Content ${string_high_priority_events} 72b89977a4SRahul Maheshwari 73b89977a4SRahul MaheshwariVerify High Priority Events Can Be Operated At OBMC Power Off State 74b89977a4SRahul Maheshwari [Documentation] Will open the "High Priority Events". 75b89977a4SRahul Maheshwari ... menu to view and operate. 76b89977a4SRahul Maheshwari [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Off_State 77b89977a4SRahul Maheshwari ... OBMC_PowerOff_state 78b89977a4SRahul Maheshwari 79b89977a4SRahul Maheshwari Select Server Overview Menu 80b89977a4SRahul Maheshwari Click Link ${xpath_high_priority_events} 81b89977a4SRahul Maheshwari Verify Display Content ${string_event_log} 82b89977a4SRahul Maheshwari 83b89977a4SRahul MaheshwariVerify Launching Of Serial Over LAN Console At OBMC Power Off State 84b89977a4SRahul Maheshwari [Documentation] Will open the serial over the lan command prompt window. 85b89977a4SRahul Maheshwari [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Off_State 86b89977a4SRahul Maheshwari ... OBMC_PowerOff_State 87b89977a4SRahul Maheshwari 88b89977a4SRahul Maheshwari Select Server Overview Menu 89b89977a4SRahul Maheshwari Click Element ${xpath_launch_serial_over_lan} 90b89977a4SRahul Maheshwari Verify Display Content ${string_launch_serial_over_lan} 91b89977a4SRahul Maheshwari 92b89977a4SRahul Maheshwari 93b89977a4SRahul Maheshwari# OpenBMC @ Power Running state test cases. 94b89977a4SRahul Maheshwari 9509856a40SArpana DurgaprasadVerify BMC Information 9609856a40SArpana Durgaprasad [Documentation] Get BMC hostname, version, IP, and MAC address via GUI and verify using REST 9709856a40SArpana Durgaprasad [Tags] Verify_BMC_Information 9809856a40SArpana Durgaprasad 9909856a40SArpana Durgaprasad Select Server Overview Menu 10009856a40SArpana Durgaprasad 10109856a40SArpana Durgaprasad ${hostname}= Get BMC Hostname 10209856a40SArpana Durgaprasad ${hostname}= Remove String ${hostname} ' 10309856a40SArpana Durgaprasad ${hostname}= Fetch From Right ${hostname} : 10409856a40SArpana Durgaprasad Verify Display Content ${hostname} 10509856a40SArpana Durgaprasad 10609856a40SArpana Durgaprasad ${version}= Get BMC Version 10709856a40SArpana Durgaprasad ${version}= Remove String ${version} " 10809856a40SArpana Durgaprasad Verify Display Content ${version} 10909856a40SArpana Durgaprasad 11009856a40SArpana Durgaprasad ${iplist}= Get BMC IP Info 11109856a40SArpana Durgaprasad :FOR ${ip} IN @{iplist} 11209856a40SArpana Durgaprasad \ ${ip}= Fetch From Left ${ip} / 11309856a40SArpana Durgaprasad \ Verify Display Content ${ip} 11409856a40SArpana Durgaprasad 11509856a40SArpana Durgaprasad ${mac}= Get BMC MAC Address 11609856a40SArpana Durgaprasad Verify Display Content ${mac} 11709856a40SArpana Durgaprasad 118b89977a4SRahul MaheshwariVerify High Priority Events Can Be Operated At OBMC Power Running State 119b89977a4SRahul Maheshwari [Documentation] Will open the "High Priority Events" 120b89977a4SRahul Maheshwari ... menu to view and operate. 121b89977a4SRahul Maheshwari [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Running_State 122b89977a4SRahul Maheshwari ... OBMC_PowerRunning_state 123b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 124b89977a4SRahul Maheshwari 125b89977a4SRahul Maheshwari Select Server Overview Menu 126b89977a4SRahul Maheshwari Click Link ${xpath_high_priority_events} 127b89977a4SRahul Maheshwari Verify Display Content ${string_event_log} 128b89977a4SRahul Maheshwari 129b89977a4SRahul MaheshwariVerify Launching Of Serial Over LAN Console At OBMC Power Running State 130b89977a4SRahul Maheshwari [Documentation] Will open the serial over the lan command prompt window. 131b89977a4SRahul Maheshwari [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Running_State 132b89977a4SRahul Maheshwari ... OBMC_PowerRunning_State 133b89977a4SRahul Maheshwari [Setup] Test Setup Execution ${OBMC_PowerRunning_state} 134b89977a4SRahul Maheshwari 135b89977a4SRahul Maheshwari Select Server Overview Menu 136b89977a4SRahul Maheshwari Click Element ${xpath_launch_serial_over_lan} 137b89977a4SRahul Maheshwari Verify Display Content ${string_launch_serial_over_lan} 138b89977a4SRahul Maheshwari 139b89977a4SRahul Maheshwari*** Keywords *** 140b89977a4SRahul MaheshwariSelect Server Overview Menu 141b89977a4SRahul Maheshwari [Documentation] Selecting of OpenBMC "Server overview" menu. 142b89977a4SRahul Maheshwari 143*e8568f29SAnusha Dathatri Click Element ${xpath_select_overview_1} 144*e8568f29SAnusha Dathatri Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 145*e8568f29SAnusha Dathatri Page Should Contain Server information 146b89977a4SRahul Maheshwari 147b89977a4SRahul MaheshwariVerify Display Content 148b89977a4SRahul Maheshwari [Documentation] Verify text content display. 149b89977a4SRahul Maheshwari [Arguments] ${display_text} 150b89977a4SRahul Maheshwari # Description of argument(s): 151b89977a4SRahul Maheshwari # display_text The display text on web page. 152b89977a4SRahul Maheshwari 153b89977a4SRahul Maheshwari Page Should Contain ${display_text} 154