blob: 8f5bd305173997eac2c720978136e6d26a5c24bd [file] [log] [blame]
*** Settings ***
Documentation Test OpenBMC GUI "Sensors" sub-menu.
Resource ../../lib/resource.robot
Suite Setup Launch Browser And Login GUI
Suite Teardown Close Browser
Test Setup Test Setup Execution
*** Variables ***
${xpath_sensor_heading} //h1[text()="Sensors"]
${xpath_sensors_filter} //button[contains(text(),'Filter')]
${xpath_sensors_search} //input[contains(@class,"search-input")]
*** Test Cases ***
Verify Navigation To Sensors Page
[Documentation] Verify navigation to Sensors page.
[Tags] Verify_Navigation_To_Sensors_Page
Page Should Contain Element ${xpath_sensor_heading}
Verify Existence Of All Sections In Sensor Page
[Documentation] Verify existence of all sections in sensor page.
[Tags] Verify_Existence_Of_All_Sections_In_Event_Logs_Page
Page Should Contain Sensors
Verify Existence Of All Buttons And Input Boxes In Sensor Page
[Documentation] Verify existence of all buttons and input boxes in sensor page.
[Tags] Verify_Existence_Of_All_Buttons_And_Input_Boxes_In_Sensor_Page
Page Should Contain Element ${xpath_sensors_filter}
Click Element ${xpath_sensors_filter}
#Search field
Page Should Contain Element ${xpath_sensors_search}
*** Keywords ***
Test Setup Execution
[Documentation] Do test case setup tasks.
Click Element ${xpath_health_menu}
Click Element ${xpath_sensor_sub_menu}
Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain sensors