blob: 8f5bd305173997eac2c720978136e6d26a5c24bd [file] [log] [blame]
Sushma M M9495a942020-08-10 01:23:33 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Sensors" sub-menu.
4Resource ../../lib/resource.robot
5
6Suite Setup Launch Browser And Login GUI
7Suite Teardown Close Browser
8Test Setup Test Setup Execution
9
10
11*** Variables ***
Sushma M M15fa20d2020-08-31 02:25:52 -050012${xpath_sensor_heading} //h1[text()="Sensors"]
Sushma M M9495a942020-08-10 01:23:33 -050013${xpath_sensors_filter} //button[contains(text(),'Filter')]
14${xpath_sensors_search} //input[contains(@class,"search-input")]
15
16*** Test Cases ***
17
Sushma M M15fa20d2020-08-31 02:25:52 -050018Verify Navigation To Sensors Page
19 [Documentation] Verify navigation to Sensors page.
20 [Tags] Verify_Navigation_To_Sensors_Page
21
22 Page Should Contain Element ${xpath_sensor_heading}
23
24
Sushma M M9495a942020-08-10 01:23:33 -050025Verify Existence Of All Sections In Sensor Page
26 [Documentation] Verify existence of all sections in sensor page.
27 [Tags] Verify_Existence_Of_All_Sections_In_Event_Logs_Page
28
29 Page Should Contain Sensors
30
31
32Verify Existence Of All Buttons And Input Boxes In Sensor Page
33 [Documentation] Verify existence of all buttons and input boxes in sensor page.
34 [Tags] Verify_Existence_Of_All_Buttons_And_Input_Boxes_In_Sensor_Page
35
36 Page Should Contain Element ${xpath_sensors_filter}
37 Click Element ${xpath_sensors_filter}
38
39 #Search field
40 Page Should Contain Element ${xpath_sensors_search}
41
42
43*** Keywords ***
44
45Test Setup Execution
46 [Documentation] Do test case setup tasks.
47
48 Click Element ${xpath_health_menu}
49 Click Element ${xpath_sensor_sub_menu}
50 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain sensors