blob: a2b2e44dbe7cf2ff468847d5227ae1b6ec2ac3df [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")]
Sushma M M840f2d82020-08-24 04:34:36 -050014${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 Dathatrif4f064e2020-07-14 09:10:04 -050019
20*** Test Cases ***
21Verify 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
29Verify 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 M840f2d82020-08-24 04:34:36 -050038Verify 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 Dathatrif4f064e2020-07-14 09:10:04 -050051*** Keywords ***
52
53Suite 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