blob: 08efa8a531294a25a6ba06b01e6b7b11ed381431 [file] [log] [blame]
*** Settings ***
Documentation Test OpenBMC GUI "Overview" menu.
Resource ../../lib/resource.robot
Resource ../../../lib/logging_utils.robot
Suite Setup Launch Browser And Login GUI
Suite Teardown Close Browser
Test Setup Test Setup Execution
*** Variables ***
${xpath_overview_page_header} //h1[contains(text(), "Overview")]
*** Test Cases ***
Verify Message In High Priority Events Section For No Events
[Documentation] Verify message under high priority events section in case of no events.
[Tags] Verify_Message_In_High_Priority_Events_Section_For_No_Events
Redfish Purge Event Log
Click Element ${xpath_refresh_button}
Wait Until Page Contains no high priority events to display timeout=10
Verify Existence Of All Sections In Overview Page
[Documentation] Verify existence of all sections in Overview page.
[Tags] Verify_Existence_Of_All_Sections_In_Overview_Page
Page Should Contain BMC information
Page Should Contain Server information
Page Should Contain Network information
Page Should Contain Power consumption
Page Should Contain High priority events
Verify Server Information Section
[Documentation] Verify values under server information section in overview page.
[Tags] Verify_Server_Information_Section
${redfish_machine_model}= Redfish.Get Attribute /redfish/v1/Systems/system/ Model
Page Should Contain ${redfish_machine_model}
${redfish_serial_number}= Redfish.Get Attribute /redfish/v1/Systems/system/ SerialNumber
Page Should Contain ${redfish_serial_number}
${redfish_motherboard_manufacturer}= Redfish.Get Attribute
... ${REDFISH_CHASSIS_URI}motherboard Manufacturer
Page Should Contain ${redfish_motherboard_manufacturer}
Verify BMC Information Section
[Documentation] Verify BMC information section in overview page.
[Tags] Verify_BMC_Information_Section
${firmware_version}= Redfish Get BMC Version
Page Should Contain ${firmware_version}
*** Keywords ***
Test Setup Execution
[Documentation] Do test case setup tasks.
Click Element ${xpath_overview_menu}
Wait Until Page Contains Element ${xpath_overview_page_header}