Sushma M M | 9495a94 | 2020-08-10 01:23:33 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Sensors" sub-menu. |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 4 | Resource ../../lib/gui_resource.robot |
Sushma M M | 9495a94 | 2020-08-10 01:23:33 -0500 | [diff] [blame] | 5 | |
| 6 | Suite Setup Launch Browser And Login GUI |
| 7 | Suite Teardown Close Browser |
| 8 | Test Setup Test Setup Execution |
| 9 | |
| 10 | |
| 11 | *** Variables *** |
Anusha Dathatri | b5f12de | 2020-10-19 02:40:22 -0500 | [diff] [blame] | 12 | ${xpath_sensor_heading} //h1[text()="Sensors"] |
| 13 | ${xpath_sensors_filter} //button[contains(text(),'Filter')] |
| 14 | ${xpath_sensors_search} //input[contains(@class,"search-input")] |
| 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'] |
Sushma M M | 9495a94 | 2020-08-10 01:23:33 -0500 | [diff] [blame] | 19 | |
| 20 | *** Test Cases *** |
| 21 | |
Sushma M M | 15fa20d | 2020-08-31 02:25:52 -0500 | [diff] [blame] | 22 | Verify Navigation To Sensors Page |
| 23 | [Documentation] Verify navigation to Sensors page. |
| 24 | [Tags] Verify_Navigation_To_Sensors_Page |
| 25 | |
| 26 | Page Should Contain Element ${xpath_sensor_heading} |
| 27 | |
| 28 | |
Sushma M M | 9495a94 | 2020-08-10 01:23:33 -0500 | [diff] [blame] | 29 | Verify Existence Of All Sections In Sensor Page |
| 30 | [Documentation] Verify existence of all sections in sensor page. |
| 31 | [Tags] Verify_Existence_Of_All_Sections_In_Event_Logs_Page |
| 32 | |
| 33 | Page Should Contain Sensors |
| 34 | |
| 35 | |
| 36 | Verify Existence Of All Buttons And Input Boxes In Sensor Page |
| 37 | [Documentation] Verify existence of all buttons and input boxes in sensor page. |
| 38 | [Tags] Verify_Existence_Of_All_Buttons_And_Input_Boxes_In_Sensor_Page |
| 39 | |
| 40 | Page Should Contain Element ${xpath_sensors_filter} |
| 41 | Click Element ${xpath_sensors_filter} |
| 42 | |
| 43 | #Search field |
| 44 | Page Should Contain Element ${xpath_sensors_search} |
| 45 | |
| 46 | |
Anusha Dathatri | b5f12de | 2020-10-19 02:40:22 -0500 | [diff] [blame] | 47 | Verify Search Text Entered |
| 48 | [Documentation] Verify search text input allowed from "Sensors" page. |
| 49 | [Tags] Verify_Search_Text_Entered |
| 50 | |
| 51 | Wait Until Page Contains Element ${xpath_sensors_search} |
Anusha Dathatri | d9ddac2 | 2020-11-02 06:19:32 -0600 | [diff] [blame] | 52 | Input Text ${xpath_sensors_search} ambi |
| 53 | Wait Until Page Contains ambient timeout=15 |
Anusha Dathatri | b5f12de | 2020-10-19 02:40:22 -0500 | [diff] [blame] | 54 | |
| 55 | |
| 56 | Verify Sensors Filter From Server Health Clickable |
| 57 | [Documentation] Verify sensors filter from server health clickable |
| 58 | [Tags] Verify_Sensors_Filter_From_Server_Health_Clickable |
| 59 | |
| 60 | Wait Until Page Contains Element ${xpath_sensors_filter} timeout=15s |
| 61 | Click Element ${xpath_sensors_filter} |
| 62 | |
| 63 | Page Should Contain Element ${xpath_filter_ok} |
| 64 | Page Should Contain Element ${xpath_filter_warning} |
| 65 | Page Should Contain Element ${xpath_filter_critical} |
| 66 | Page Should Contain Element ${xpath_filter_clear_all} |
| 67 | |
| 68 | |
Sushma M M | ff5684a | 2020-12-13 22:55:51 -0600 | [diff] [blame] | 69 | Verify Invalid Text In Filter Sensors Search |
| 70 | [Documentation] Input invalid text in sensor search and verify error message. |
| 71 | [Tags] Verify_Invalid_Text_In_Filter_Sensors_Search |
| 72 | |
| 73 | Wait Until Page Contains Element ${xpath_sensors_search} |
| 74 | Input Text ${xpath_sensors_search} abcd123 |
| 75 | |
| 76 | Page Should Contain No items match the search query |
| 77 | |
| 78 | |
Sushma M M | 9495a94 | 2020-08-10 01:23:33 -0500 | [diff] [blame] | 79 | *** Keywords *** |
| 80 | |
| 81 | Test Setup Execution |
| 82 | [Documentation] Do test case setup tasks. |
| 83 | |
| 84 | Click Element ${xpath_health_menu} |
| 85 | Click Element ${xpath_sensor_sub_menu} |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 86 | Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain sensors |