blob: 08efa8a531294a25a6ba06b01e6b7b11ed381431 [file] [log] [blame]
Rahul Maheshwarib940e192020-07-07 01:52:24 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Overview" menu.
4
5Resource ../../lib/resource.robot
manashsarma2544cb12020-08-23 14:25:08 -05006Resource ../../../lib/logging_utils.robot
Rahul Maheshwarib940e192020-07-07 01:52:24 -05007
8Suite Setup Launch Browser And Login GUI
9Suite Teardown Close Browser
10Test Setup Test Setup Execution
11
12
13*** Variables ***
14
15${xpath_overview_page_header} //h1[contains(text(), "Overview")]
Rahul Maheshwarib940e192020-07-07 01:52:24 -050016
17*** Test Cases ***
18
manashsarma2544cb12020-08-23 14:25:08 -050019Verify Message In High Priority Events Section For No Events
20 [Documentation] Verify message under high priority events section in case of no events.
21 [Tags] Verify_Message_In_High_Priority_Events_Section_For_No_Events
22
23 Redfish Purge Event Log
24 Click Element ${xpath_refresh_button}
25 Wait Until Page Contains no high priority events to display timeout=10
26
27
Rahul Maheshwarib940e192020-07-07 01:52:24 -050028Verify Existence Of All Sections In Overview Page
29 [Documentation] Verify existence of all sections in Overview page.
30 [Tags] Verify_Existence_Of_All_Sections_In_Overview_Page
31
32 Page Should Contain BMC information
33 Page Should Contain Server information
34 Page Should Contain Network information
35 Page Should Contain Power consumption
36 Page Should Contain High priority events
37
38
manashsarmae18f99e2020-08-28 10:12:57 -050039Verify Server Information Section
40 [Documentation] Verify values under server information section in overview page.
41 [Tags] Verify_Server_Information_Section
42
43 ${redfish_machine_model}= Redfish.Get Attribute /redfish/v1/Systems/system/ Model
44 Page Should Contain ${redfish_machine_model}
45
46 ${redfish_serial_number}= Redfish.Get Attribute /redfish/v1/Systems/system/ SerialNumber
47 Page Should Contain ${redfish_serial_number}
48
49 ${redfish_motherboard_manufacturer}= Redfish.Get Attribute
50 ... ${REDFISH_CHASSIS_URI}motherboard Manufacturer
51
52 Page Should Contain ${redfish_motherboard_manufacturer}
53
54
manashsarma554ddec2020-08-26 00:46:02 -050055Verify BMC Information Section
56 [Documentation] Verify BMC information section in overview page.
57 [Tags] Verify_BMC_Information_Section
58
59 ${firmware_version}= Redfish Get BMC Version
60 Page Should Contain ${firmware_version}
61
62
Rahul Maheshwarib940e192020-07-07 01:52:24 -050063*** Keywords ***
64
65Test Setup Execution
66 [Documentation] Do test case setup tasks.
67
68 Click Element ${xpath_overview_menu}
69 Wait Until Page Contains Element ${xpath_overview_page_header}
70