xref: /openbmc/openbmc-test-automation/gui/gui_test/overview_menu/test_overview_menu.robot (revision 554ddecfe769a58a3476f3625d572ede8fe31850)
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
46Verify BMC Information Section
47    [Documentation]  Verify BMC information section in overview page.
48    [Tags]  Verify_BMC_Information_Section
49
50    ${firmware_version}=  Redfish Get BMC Version
51    Page Should Contain  ${firmware_version}
52
53
54*** Keywords ***
55
56Test Setup Execution
57    [Documentation]  Do test case setup tasks.
58
59    Click Element  ${xpath_overview_menu}
60    Wait Until Page Contains Element  ${xpath_overview_page_header}
61
62