xref: /openbmc/openbmc-test-automation/gui/gui_test/overview_menu/test_overview_menu.robot (revision e18f99e04ae22ab35db545423a4ace00320b7412)
1*** Settings ***
2
3Documentation  Test OpenBMC GUI "Overview" menu.
4
5Resource        ../../lib/resource.robot
6
7Suite Setup     Launch Browser And Login GUI
8Suite Teardown  Close Browser
9Test Setup      Test Setup Execution
10
11
12*** Variables ***
13
14${xpath_overview_page_header}  //h1[contains(text(), "Overview")]
15${xpath_server_info}           //*[@class='page-section'][contains(.,'Model') and contains(.,'Manufacturer') and contains(.,'Serial number')]
16
17*** Test Cases ***
18
19Verify Existence Of All Sections In Overview Page
20    [Documentation]  Verify existence of all sections in Overview page.
21    [Tags]  Verify_Existence_Of_All_Sections_In_Overview_Page
22
23    Page Should Contain  BMC information
24    Page Should Contain  Server information
25    Page Should Contain  Network information
26    Page Should Contain  Power consumption
27    Page Should Contain  High priority events
28
29
30Verify Server Information Section
31    [Documentation]  Verify values under server information section in overview page.
32    [Tags]  Verify_Server_Information_Section
33
34    ${redfish_machine_model}=  Redfish.Get Attribute  /redfish/v1/Systems/system/  Model
35    Page Should Contain  ${redfish_machine_model}
36
37    ${redfish_serial_number}=  Redfish.Get Attribute  /redfish/v1/Systems/system/  SerialNumber
38    Page Should Contain  ${redfish_serial_number}
39
40    ${redfish_motherboard_manufacturer}=  Redfish.Get Attribute
41    ...  ${REDFISH_CHASSIS_URI}motherboard  Manufacturer
42
43    Page Should Contain  ${redfish_motherboard_manufacturer}
44
45
46*** Keywords ***
47
48Test Setup Execution
49    [Documentation]  Do test case setup tasks.
50
51    Click Element  ${xpath_overview_menu}
52    Wait Until Page Contains Element  ${xpath_overview_page_header}
53
54