blob: afe55a6cfe994fbf87de45346862c43c19c27981 [file] [log] [blame]
Anusha Dathatrif4f064e2020-07-14 09:10:04 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Sensors" sub-menu of "Server health".
4
5Resource ../../lib/resource.robot
6
7Suite Setup Suite Setup Execution
8Suite Teardown Close Browser
9
10
11*** Variables ***
12${xpath_sensors_export} //a[contains(text(), "Export")]
Sushma M Mff03a212020-08-18 07:32:50 -050013${xpath_sensors_search} //input[contains(@id,"searchInput")]
Anusha Dathatrif4f064e2020-07-14 09:10:04 -050014
15*** Test Cases ***
16Verify 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
24Verify 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
35Suite 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