Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Overview" menu. |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
manashsarma | 2544cb1 | 2020-08-23 14:25:08 -0500 | [diff] [blame^] | 6 | Resource ../../../lib/logging_utils.robot |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 7 | |
| 8 | Suite Setup Launch Browser And Login GUI |
| 9 | Suite Teardown Close Browser |
| 10 | Test Setup Test Setup Execution |
| 11 | |
| 12 | |
| 13 | *** Variables *** |
| 14 | |
| 15 | ${xpath_overview_page_header} //h1[contains(text(), "Overview")] |
Rahul Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 16 | |
| 17 | *** Test Cases *** |
| 18 | |
manashsarma | 2544cb1 | 2020-08-23 14:25:08 -0500 | [diff] [blame^] | 19 | Verify 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 Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 28 | Verify 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 | |
manashsarma | e18f99e | 2020-08-28 10:12:57 -0500 | [diff] [blame] | 39 | Verify 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 | |
manashsarma | 554ddec | 2020-08-26 00:46:02 -0500 | [diff] [blame] | 55 | Verify 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 Maheshwari | b940e19 | 2020-07-07 01:52:24 -0500 | [diff] [blame] | 63 | *** Keywords *** |
| 64 | |
| 65 | Test 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 | |