| *** Settings *** |
| |
| Documentation Test Open BMC GUI server health under GUI Header. |
| |
| Resource ../../lib/resource.robot |
| Resource ../../../../lib/boot_utils.robot |
| |
| Suite Setup Launch Browser And Login OpenBMC GUI |
| Suite Teardown Logout And Close Browser |
| Test Setup Click Element ${xpath_select_server_health} |
| |
| *** Test Cases *** |
| |
| Verify Event Log Text Appears By Clicking Server Health |
| [Documentation] Check that "Event Log" text appears by clicking server |
| ... health in GUI header. |
| [Tags] Verify_Event_Log_Text_Appears_By_Clicking_Server_Health |
| |
| Wait Until Page Contains Element event-log |
| Page should contain Event log |
| |
| |
| Verify Filters By Severity Elements Appears |
| [Documentation] Check that the "event log" filters appears by clicking |
| ... server health in GUI header. |
| [Tags] Verify_Filters_By_Severity_Elements_Appears |
| |
| # Types of event severity: All, High, Medium, Low. |
| Page Should Contain Element ${xpath_event_severity_all} limit=1 |
| Page Should Contain Element ${xpath_event_severity_high} limit=1 |
| Page Should Contain Element ${xpath_event_severity_medium} limit=1 |
| Page Should Contain Element ${xpath_event_severity_low} limit=1 |
| |
| |
| Verify Drop Down Button User Timezone Appears |
| [Documentation] Check that the "drop down" button of user timezone appears |
| ... by clicking server health in GUI header. |
| [Tags] Verify_Drop_Down_Button_User_Timezone_Appears |
| |
| Page Should Contain Button ${xpath_drop_down_timezone_edt} |
| # Ensure that page is not in refreshing state. |
| # It helps to click the drop down element. |
| Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| Click Element class:dropdown__button |
| Page Should Contain Button ${xpath_drop_down_timezone_utc} |
| |
| |
| Verify Content Search Element Appears |
| [Documentation] Check that the "event search element is available with |
| ... filter" button appears. |
| [Tags] Verify_Content_Search_Element_Appears |
| |
| Page Should Contain Element content__search-input limit=1 |
| # Ensure that page is not in refreshing state. |
| Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| Page Should Contain Button content__search-submit |
| |
| |
| Verify Filter By Date Element Appears |
| [Documentation] Check that the "filter by date" elements are available and |
| ... visible. |
| [Tags] Verify_Filter_By_Date_Element_Appears |
| |
| Wait Until Element Is Visible event-filter-start-date |
| Page Should Contain Element event-filter-start-date limit=1 |
| Page Should Contain Element event-filter-end-date limit=1 |
| |
| |
| Verify Filter By Event Status Element Appears |
| [Documentation] Check that the "filter by event status" element appears. |
| [Tags] Verify_Filter_By_Event_Status_Element_Appears |
| |
| # Ensure that page is not in refreshing state. |
| Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| Wait Until Element is Visible class:dropdown__wrapper |
| Click Element class:dropdown__wrapper |
| Page Should Contain Element ${xpath_event_filter_all} limit=1 |
| Page Should Contain Element ${xpath_event_filter_resolved} limit=1 |
| Page Should Contain Element ${xpath_event_filter_unresolved} limit=1 |
| |
| |
| Verify Event Action Bar Element Appears |
| [Documentation] Check that "event action bar" element appears. |
| [Tags] Verify_Event_Action_Bar_Element_Appears |
| |
| # Ensure that page is not in refreshing state. |
| Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| Page Should Contain Element ${xpath_event_action_bars} limit=1 |
| Page Should Contain Element class:control__indicator |
| |
| |
| Verify Click Events Check Box |
| [Documentation] Check that "event check box" element appears and on click |
| ... should be able to see elements like "Delete" button and "Export" |
| ... element. |
| [Tags] Verify_Click_Events_Check_Box |
| |
| # Ensure that page is not in refreshing state. |
| Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| Click Element class:control__indicator |
| Page Should Contain Button ${xpath_event_action_delete} limit=1 |
| Page Should Contain Element ${xpath_event_action_export} limit=1 |
| |
| |
| Verify Number of Events Appears |
| [Documentation] Check that "number of events" element appears and value is |
| ... visible. |
| [Tags] Verify_Number_of_Events_Appears |
| |
| # Ensure that page is not in refreshing state. |
| Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| Page Should Contain Element ${xpath_number_of_events} |
| ${number_of_events}= Get Text ${xpath_number_of_events} |
| Log To Console \n Number of Events:${number_of_events} |