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 |
| 6 | Test Setup Test Setup Execution ${OBMC_PowerOff_state} |
| 7 | Test 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 | |
| 24 | Verify Title Text Content At OBMC Power Off State |
| 25 | [Documentation] Verify display of title text from "Server Overview" |
| 26 | ... module of OpenBMC GUI. |
| 27 | [Tags] Verify_Title_Text_Content_At_OBMC_Power_Off_State |
| 28 | ... OBMC_PowerOff_state |
| 29 | |
| 30 | Select Server Overview Menu |
| 31 | Verify Display Content ${string_content} |
| 32 | |
| 33 | Verify Display Text Server Information At OBMC Power Off State |
| 34 | [Documentation] Verify existence of text "Server information". |
| 35 | [Tags] Verify_Display_Text_Server_Information_At_OBMC_Power_Off_State |
| 36 | ... OBMC_PowerOff_state |
| 37 | |
| 38 | Select Server Overview Menu |
| 39 | Verify Display Content ${string_server_info} |
| 40 | |
| 41 | Verify BMC Information Should Display At OBMC Power Off State |
| 42 | [Documentation] Verify existence of text "BMC information". |
| 43 | [Tags] Verify_BMC_Information_Should_Display_At_OBMC_Power_Off_State |
| 44 | ... OBMC_PowerOff_State |
| 45 | |
| 46 | Select Server Overview Menu |
| 47 | Verify Display Content ${string_BMC_info} |
| 48 | |
| 49 | Verify POWER Information Should Display At OBMC Power Off State |
| 50 | [Documentation] Verify existence of text "Power information". |
| 51 | [Tags] Verify_Power_Information_Should_Display_At_OBMC_Power_Off_State |
| 52 | ... OBMC_PowerOff_State |
| 53 | |
| 54 | Select Server Overview Menu |
| 55 | Verify Display Content ${string_power_info} |
| 56 | |
| 57 | Verify High Priority Events Should Display At OBMC Power Off State |
| 58 | [Documentation] Verify the text display. |
| 59 | [Tags] Verify_High_Priority_Events_Should_Display_At_OBMC_Power_Off_State |
| 60 | ... OBMC_PowerOff_State |
| 61 | |
| 62 | Select Server Overview Menu |
| 63 | Verify Display Content ${string_high_priority_events} |
| 64 | |
| 65 | Verify High Priority Events Can Be Operated At OBMC Power Off State |
| 66 | [Documentation] Will open the "High Priority Events". |
| 67 | ... menu to view and operate. |
| 68 | [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Off_State |
| 69 | ... OBMC_PowerOff_state |
| 70 | |
| 71 | Select Server Overview Menu |
| 72 | Click Link ${xpath_high_priority_events} |
| 73 | Verify Display Content ${string_event_log} |
| 74 | |
| 75 | Verify Launching Of Serial Over LAN Console At OBMC Power Off State |
| 76 | [Documentation] Will open the serial over the lan command prompt window. |
| 77 | [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Off_State |
| 78 | ... OBMC_PowerOff_State |
| 79 | |
| 80 | Select Server Overview Menu |
| 81 | Click Element ${xpath_launch_serial_over_lan} |
| 82 | Verify Display Content ${string_launch_serial_over_lan} |
| 83 | |
| 84 | |
| 85 | # OpenBMC @ Power Running state test cases. |
| 86 | |
| 87 | Verify High Priority Events Can Be Operated At OBMC Power Running State |
| 88 | [Documentation] Will open the "High Priority Events" |
| 89 | ... menu to view and operate. |
| 90 | [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Running_State |
| 91 | ... OBMC_PowerRunning_state |
| 92 | [Setup] Test Setup Execution ${OBMC_PowerRunning_state} |
| 93 | |
| 94 | Select Server Overview Menu |
| 95 | Click Link ${xpath_high_priority_events} |
| 96 | Verify Display Content ${string_event_log} |
| 97 | |
| 98 | Verify Launching Of Serial Over LAN Console At OBMC Power Running State |
| 99 | [Documentation] Will open the serial over the lan command prompt window. |
| 100 | [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Running_State |
| 101 | ... OBMC_PowerRunning_State |
| 102 | [Setup] Test Setup Execution ${OBMC_PowerRunning_state} |
| 103 | |
| 104 | Select Server Overview Menu |
| 105 | Click Element ${xpath_launch_serial_over_lan} |
| 106 | Verify Display Content ${string_launch_serial_over_lan} |
| 107 | |
| 108 | *** Keywords *** |
| 109 | Select Server Overview Menu |
| 110 | [Documentation] Selecting of OpenBMC "Server overview" menu. |
| 111 | |
| 112 | Click Button ${xpath_select_overview_1} |
| 113 | |
| 114 | Verify Display Content |
| 115 | [Documentation] Verify text content display. |
| 116 | [Arguments] ${display_text} |
| 117 | # Description of argument(s): |
| 118 | # display_text The display text on web page. |
| 119 | |
| 120 | Page Should Contain ${display_text} |