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")] |
| 13 | ${xpath_sensors_search} //input[@id="searchInput"] |
| 14 | |
| 15 | *** Test Cases *** |
| 16 | Verify Select Sensors From Server Health |
| 17 | [Documentation] Verify ability to select "Sensors" sub-menu option of |
| 18 | ... "Server health". |
| 19 | [Tags] Verify_Select_Sensors_From_Server_Health |
| 20 | |
| 21 | Page Should Contain Sensors |
| 22 | |
| 23 | |
| 24 | Verify Search Text Enterable |
| 25 | [Documentation] Verify search text input allowed from "Sensors" page. |
| 26 | [Tags] Verify_Search_Text_Enterable |
| 27 | |
| 28 | Wait Until Page Contains Element ${xpath_sensors_search} |
| 29 | Input Text ${xpath_sensors_search} temp |
| 30 | Wait Until Page Contains p0 vcs temp timeout=15 |
| 31 | |
| 32 | |
| 33 | *** Keywords *** |
| 34 | |
| 35 | Suite Setup Execution |
| 36 | [Documentation] Do test case setup tasks. |
| 37 | |
| 38 | Launch Browser And Login GUI |
| 39 | Click Button ${xpath_health_menu} |
| 40 | Click Element ${xpath_sensor_sub_menu} |
| 41 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain sensors |