Sivas SRR | 008dcc6 | 2018-02-27 06:34:56 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test Open BMC GUI server health under GUI Header. |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | Resource ../../../../lib/boot_utils.robot |
| 7 | |
| 8 | Suite Setup Launch Browser And Login OpenBMC GUI |
| 9 | Suite Teardown Logout And Close Browser |
| 10 | Test Setup Click Element ${xpath_select_server_health} |
| 11 | |
| 12 | *** Test Cases *** |
| 13 | |
| 14 | Verify Event Log Text Appears By Clicking Server Health |
| 15 | [Documentation] Check that "Event Log" text appears by clicking server |
| 16 | ... health in GUI header. |
| 17 | [Tags] Verify_Event_Log_Text_Appears_By_Clicking_Server_Health |
| 18 | |
| 19 | Wait Until Page Contains Element event-log |
| 20 | Page should contain Event log |
| 21 | |
| 22 | |
| 23 | Verify Filters By Severity Elements Appears |
Sivas SRR | 179208e | 2018-03-01 04:08:23 -0600 | [diff] [blame] | 24 | [Documentation] Check that the "event log" filters appears by clicking |
| 25 | ... server health in GUI header. |
Sivas SRR | 008dcc6 | 2018-02-27 06:34:56 -0600 | [diff] [blame] | 26 | [Tags] Verify_Filters_By_Severity_Elements_Appears |
| 27 | |
| 28 | # Types of event severity: All, High, Medium, Low. |
| 29 | Page Should Contain Element ${xpath_event_severity_all} limit=1 |
| 30 | Page Should Contain Element ${xpath_event_severity_high} limit=1 |
| 31 | Page Should Contain Element ${xpath_event_severity_medium} limit=1 |
| 32 | Page Should Contain Element ${xpath_event_severity_low} limit=1 |
| 33 | |
| 34 | |
| 35 | Verify Drop Down Button User Timezone Appears |
Sivas SRR | 179208e | 2018-03-01 04:08:23 -0600 | [diff] [blame] | 36 | [Documentation] Check that the "drop down" button of user timezone appears |
| 37 | ... by clicking server health in GUI header. |
Sivas SRR | 008dcc6 | 2018-02-27 06:34:56 -0600 | [diff] [blame] | 38 | [Tags] Verify_Drop_Down_Button_User_Timezone_Appears |
| 39 | |
| 40 | Page Should Contain Button ${xpath_drop_down_timezone_edt} |
| 41 | # Ensure that page is not in refreshing state. |
| 42 | # It helps to click the drop down element. |
| 43 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 44 | Click Element class:dropdown__button |
| 45 | Page Should Contain Button ${xpath_drop_down_timezone_utc} |
| 46 | |
Sivas SRR | 179208e | 2018-03-01 04:08:23 -0600 | [diff] [blame] | 47 | |
| 48 | Verify Content Search Element Appears |
| 49 | [Documentation] Check that the "event search element is available with |
| 50 | ... filter" button appears. |
| 51 | [Tags] Verify_Content_Search_Element_Appears |
| 52 | |
| 53 | Page Should Contain Element content__search-input limit=1 |
| 54 | # Ensure that page is not in refreshing state. |
| 55 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 56 | Page Should Contain Button content__search-submit |
| 57 | |
| 58 | |
| 59 | Verify Filter By Date Element Appears |
| 60 | [Documentation] Check that the "filter by date" elements are available and |
| 61 | ... visible. |
| 62 | [Tags] Verify_Filter_By_Date_Element_Appears |
| 63 | |
| 64 | Wait Until Element Is Visible event-filter-start-date |
| 65 | Page Should Contain Element event-filter-start-date limit=1 |
| 66 | Page Should Contain Element event-filter-end-date limit=1 |
| 67 | |
| 68 | |
| 69 | Verify Filter By Event Status Element Appears |
| 70 | [Documentation] Check that the "filter by event status" element appears. |
| 71 | [Tags] Verify_Filter_By_Event_Status_Element_Appears |
| 72 | |
| 73 | # Ensure that page is not in refreshing state. |
| 74 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 75 | Wait Until Element is Visible class:dropdown__wrapper |
| 76 | Click Element class:dropdown__wrapper |
| 77 | Page Should Contain Element ${xpath_event_filter_all} limit=1 |
| 78 | Page Should Contain Element ${xpath_event_filter_resolved} limit=1 |
| 79 | Page Should Contain Element ${xpath_event_filter_unresolved} limit=1 |
Sivas SRR | 162bf48 | 2018-03-02 07:01:16 -0600 | [diff] [blame] | 80 | |
| 81 | |
| 82 | Verify Event Action Bar Element Appears |
| 83 | [Documentation] Check that "event action bar" element appears. |
| 84 | [Tags] Verify_Event_Action_Bar_Element_Appears |
| 85 | |
| 86 | # Ensure that page is not in refreshing state. |
| 87 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 88 | Page Should Contain Element ${xpath_event_action_bars} limit=1 |
| 89 | Page Should Contain Element class:control__indicator |
| 90 | |
| 91 | |
| 92 | Verify Click Events Check Box |
| 93 | [Documentation] Check that "event check box" element appears and on click |
| 94 | ... should be able to see elements like "Delete" button and "Export" |
| 95 | ... element. |
| 96 | [Tags] Verify_Click_Events_Check_Box |
| 97 | |
| 98 | # Ensure that page is not in refreshing state. |
| 99 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 100 | Click Element class:control__indicator |
| 101 | Page Should Contain Button ${xpath_event_action_delete} limit=1 |
| 102 | Page Should Contain Element ${xpath_event_action_export} limit=1 |
| 103 | |
| 104 | |
| 105 | Verify Number of Events Appears |
| 106 | [Documentation] Check that "number of events" element appears and value is |
| 107 | ... visible. |
| 108 | [Tags] Verify_Number_of_Events_Appears |
| 109 | |
| 110 | # Ensure that page is not in refreshing state. |
| 111 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 112 | Page Should Contain Element ${xpath_number_of_events} |
| 113 | ${number_of_events}= Get Text ${xpath_number_of_events} |
| 114 | Log To Console \n Number of Events:${number_of_events} |