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