Added tests for Sensor sub menu
Changes:
- Added suite to test Sensor page
- Added tests to verify existence of all sections
and buttons of Sensor page
Change-Id: I6c6e24df0c9d71d22d19513e74251a8c8e5bec80
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/gui/gui_test/health_menu/test_obmc_gui_sensors.robot b/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
new file mode 100644
index 0000000..8907ddd
--- /dev/null
+++ b/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
@@ -0,0 +1,42 @@
+*** 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_sensors_filter} //button[contains(text(),'Filter')]
+${xpath_sensors_search} //input[contains(@class,"search-input")]
+
+*** Test Cases ***
+
+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
\ No newline at end of file