GUI: Added test cases for "Sensors" tab
Added following test cases:
- Verify select "Sensors" from "Server health".
- Verify "Sensors" export from "Server health" clickable.
- Verify search text enterable.
Resolves openbmc/openbmc-test-automation#1351
Change-Id: I238954cf056e1f89237c4ddd797e711aa6554abf
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/gui/obmc_gui/test/server_health/test_obmc_gui_sensors.robot b/gui/obmc_gui/test/server_health/test_obmc_gui_sensors.robot
new file mode 100644
index 0000000..8957998
--- /dev/null
+++ b/gui/obmc_gui/test/server_health/test_obmc_gui_sensors.robot
@@ -0,0 +1,57 @@
+*** Settings ***
+
+Documentation Test OpenBMC GUI "Sensors" sub-menu of "Server health".
+
+Resource ../../lib/resource.robot
+
+Suite Setup Launch Browser And Login OpenBMC GUI
+Suite Teardown Logout And Close Browser
+Test Setup Test Setup Execution
+
+*** Variables ***
+${xpath_select_server_health} //*[@id="nav__top-level"]/li[2]/button
+${xpath_select_sensors} //a[@href='#/server-health/sensors-overview']
+${xpath_sensors_export} css:a.inline
+${xpath_sensors_search} //*[@id="content__search-input"]
+${xpath_sensors_search_button} //*[@id="content__search-submit"]
+
+*** 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
+
+ Wait Until Page Contains Sensors
+ Page should contain All sensors present in the system
+
+
+Verify Sensors Export From Server Health Clickable
+ [Documentation] Verify ability to export sensors from "Sensors"
+ ... sub-menu of "Server health".
+ [Tags] Verify_Sensors_Export_From_Server_Health_Clickable
+
+ Page Should Contain Element ${xpath_sensors_export}
+ Click Element ${xpath_sensors_export}
+
+
+Verify Search Text Enterable
+ [Documentation] Verify search text input allowed from "Sensors"
+ ... sub-menu of "Server health".
+ [Tags] Verify_Search_Text_Enterable
+
+ Page Should Contain Element ${xpath_sensors_search}
+ Input Text ${xpath_sensors_search} Temperature
+ Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
+ Page Should Contain Element ${xpath_sensors_search_button}
+ Set Focus To Element ${xpath_sensors_search_button}
+ Click Element ${xpath_sensors_search_button}
+
+*** Keywords ***
+
+Test Setup Execution
+ [Documentation] Do test case setup tasks.
+
+ Click Element ${xpath_select_server_health}
+ Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
+ Click Element ${xpath_select_sensors}
+