Testcases for Sensor sub menu in Server Health
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
Change-Id: I556939fbb23d6e25cc96215c6a1662253a0e151d
diff --git a/gui/gui_test/server_health/test_obmc_gui_sensors.robot b/gui/gui_test/server_health/test_obmc_gui_sensors.robot
new file mode 100644
index 0000000..1933b57
--- /dev/null
+++ b/gui/gui_test/server_health/test_obmc_gui_sensors.robot
@@ -0,0 +1,41 @@
+*** Settings ***
+
+Documentation Test OpenBMC GUI "Sensors" sub-menu of "Server health".
+
+Resource ../../lib/resource.robot
+
+Suite Setup Suite Setup Execution
+Suite Teardown Close Browser
+
+
+*** Variables ***
+${xpath_sensors_export} //a[contains(text(), "Export")]
+${xpath_sensors_search} //input[@id="searchInput"]
+
+*** Test Cases ***
+Verify Select Sensors From Server Health
+ [Documentation] Verify ability to select "Sensors" sub-menu option of
+ ... "Server health".
+ [Tags] Verify_Select_Sensors_From_Server_Health
+
+ Page Should Contain Sensors
+
+
+Verify Search Text Enterable
+ [Documentation] Verify search text input allowed from "Sensors" page.
+ [Tags] Verify_Search_Text_Enterable
+
+ Wait Until Page Contains Element ${xpath_sensors_search}
+ Input Text ${xpath_sensors_search} temp
+ Wait Until Page Contains p0 vcs temp timeout=15
+
+
+*** Keywords ***
+
+Suite Setup Execution
+ [Documentation] Do test case setup tasks.
+
+ Launch Browser And Login GUI
+ Click Button ${xpath_health_menu}
+ Click Element ${xpath_sensor_sub_menu}
+ Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain sensors