blob: 70c43771606f87b2a7de783cab3c10fa29c2c6b2 [file] [log] [blame]
Sushma M M9495a942020-08-10 01:23:33 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Sensors" sub-menu.
Rahul Maheshwari41747da2020-11-17 09:09:52 -06004Resource ../../lib/gui_resource.robot
Sushma M M9495a942020-08-10 01:23:33 -05005
6Suite Setup Launch Browser And Login GUI
7Suite Teardown Close Browser
8Test Setup Test Setup Execution
9
10
11*** Variables ***
Anusha Dathatrib5f12de2020-10-19 02:40:22 -050012${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 M9495a942020-08-10 01:23:33 -050019
20*** Test Cases ***
21
Sushma M M15fa20d2020-08-31 02:25:52 -050022Verify 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 M9495a942020-08-10 01:23:33 -050029Verify 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
36Verify 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 Dathatrib5f12de2020-10-19 02:40:22 -050047Verify 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 Dathatrid9ddac22020-11-02 06:19:32 -060052 Input Text ${xpath_sensors_search} ambi
53 Wait Until Page Contains ambient timeout=15
Anusha Dathatrib5f12de2020-10-19 02:40:22 -050054
55
56Verify 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 M9495a942020-08-10 01:23:33 -050069*** Keywords ***
70
71Test Setup Execution
72 [Documentation] Do test case setup tasks.
73
74 Click Element ${xpath_health_menu}
75 Click Element ${xpath_sensor_sub_menu}
Rahul Maheshwari41747da2020-11-17 09:09:52 -060076 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain sensors