Anusha Dathatri | f4f064e | 2020-07-14 09:10:04 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Sensors" sub-menu of "Server health". |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Suite Setup Execution |
| 8 | Suite Teardown Close Browser |
| 9 | |
| 10 | |
| 11 | *** Variables *** |
| 12 | ${xpath_sensors_export} //a[contains(text(), "Export")] |
Sushma M M | ff03a21 | 2020-08-18 07:32:50 -0500 | [diff] [blame] | 13 | ${xpath_sensors_search} //input[contains(@id,"searchInput")] |
Sushma M M | 840f2d8 | 2020-08-24 04:34:36 -0500 | [diff] [blame] | 14 | ${xpath_sensors_filter} //button[contains(text(),'Filter')] |
| 15 | ${xpath_filter_ok} //*[@data-test-id='tableFilter-checkbox-OK'] |
| 16 | ${xpath_filter_warning} //*[@data-test-id='tableFilter-checkbox-Warning'] |
| 17 | ${xpath_filter_critical} //*[@data-test-id='tableFilter-checkbox-Critical'] |
| 18 | ${xpath_filter_clear_all} //*[@data-test-id='tableFilter-button-clearAll'] |
Anusha Dathatri | f4f064e | 2020-07-14 09:10:04 -0500 | [diff] [blame] | 19 | |
| 20 | *** Test Cases *** |
| 21 | Verify Select Sensors From Server Health |
| 22 | [Documentation] Verify ability to select "Sensors" sub-menu option of |
| 23 | ... "Server health". |
| 24 | [Tags] Verify_Select_Sensors_From_Server_Health |
| 25 | |
| 26 | Page Should Contain Sensors |
| 27 | |
| 28 | |
| 29 | Verify Search Text Enterable |
| 30 | [Documentation] Verify search text input allowed from "Sensors" page. |
| 31 | [Tags] Verify_Search_Text_Enterable |
| 32 | |
| 33 | Wait Until Page Contains Element ${xpath_sensors_search} |
| 34 | Input Text ${xpath_sensors_search} temp |
| 35 | Wait Until Page Contains p0 vcs temp timeout=15 |
| 36 | |
| 37 | |
Sushma M M | 840f2d8 | 2020-08-24 04:34:36 -0500 | [diff] [blame] | 38 | Verify Sensors Filter From Server Health Clickable |
| 39 | [Documentation] Verify sensors filter from server health clickable |
| 40 | [Tags] Verify_Sensors_Filter_From_Server_Health_Clickable |
| 41 | |
| 42 | Wait Until Page Contains Element ${xpath_sensors_filter} timeout=15s |
| 43 | Click Element ${xpath_sensors_filter} |
| 44 | |
| 45 | Page Should Contain Element ${xpath_filter_ok} |
| 46 | Page Should Contain Element ${xpath_filter_warning} |
| 47 | Page Should Contain Element ${xpath_filter_critical} |
| 48 | Page Should Contain Element ${xpath_filter_clear_all} |
| 49 | |
| 50 | |
Anusha Dathatri | f4f064e | 2020-07-14 09:10:04 -0500 | [diff] [blame] | 51 | *** Keywords *** |
| 52 | |
| 53 | Suite Setup Execution |
| 54 | [Documentation] Do test case setup tasks. |
| 55 | |
| 56 | Launch Browser And Login GUI |
| 57 | Click Button ${xpath_health_menu} |
| 58 | Click Element ${xpath_sensor_sub_menu} |
| 59 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain sensors |