Merge server health suite test cases to health menu suite
Moved required testcases from server_health/test_obmc_gui_sensors.robot
to health_menu/test_obmc_gui_sensors.robot and removed server_heath
directory.
Change-Id: I1a45befccb22b031aabd247bbdd2c5e5bccb983d
Signed-off-by: Anusha Dathatri <adathatr@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
index 8f5bd30..833f868 100644
--- a/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
+++ b/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
@@ -9,9 +9,13 @@
*** Variables ***
-${xpath_sensor_heading} //h1[text()="Sensors"]
-${xpath_sensors_filter} //button[contains(text(),'Filter')]
-${xpath_sensors_search} //input[contains(@class,"search-input")]
+${xpath_sensor_heading} //h1[text()="Sensors"]
+${xpath_sensors_filter} //button[contains(text(),'Filter')]
+${xpath_sensors_search} //input[contains(@class,"search-input")]
+${xpath_filter_ok} //*[@data-test-id='tableFilter-checkbox-OK']
+${xpath_filter_warning} //*[@data-test-id='tableFilter-checkbox-Warning']
+${xpath_filter_critical} //*[@data-test-id='tableFilter-checkbox-Critical']
+${xpath_filter_clear_all} //*[@data-test-id='tableFilter-button-clearAll']
*** Test Cases ***
@@ -40,6 +44,28 @@
Page Should Contain Element ${xpath_sensors_search}
+Verify Search Text Entered
+ [Documentation] Verify search text input allowed from "Sensors" page.
+ [Tags] Verify_Search_Text_Entered
+
+ Wait Until Page Contains Element ${xpath_sensors_search}
+ Input Text ${xpath_sensors_search} temp
+ Wait Until Page Contains p0 vcs temp timeout=15
+
+
+Verify Sensors Filter From Server Health Clickable
+ [Documentation] Verify sensors filter from server health clickable
+ [Tags] Verify_Sensors_Filter_From_Server_Health_Clickable
+
+ Wait Until Page Contains Element ${xpath_sensors_filter} timeout=15s
+ Click Element ${xpath_sensors_filter}
+
+ Page Should Contain Element ${xpath_filter_ok}
+ Page Should Contain Element ${xpath_filter_warning}
+ Page Should Contain Element ${xpath_filter_critical}
+ Page Should Contain Element ${xpath_filter_clear_all}
+
+
*** Keywords ***
Test Setup Execution
diff --git a/gui/gui_test/server_health/test_obmc_gui_sensors.robot b/gui/gui_test/server_health/test_obmc_gui_sensors.robot
deleted file mode 100644
index a2b2e44..0000000
--- a/gui/gui_test/server_health/test_obmc_gui_sensors.robot
+++ /dev/null
@@ -1,59 +0,0 @@
-*** 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[contains(@id,"searchInput")]
-${xpath_sensors_filter} //button[contains(text(),'Filter')]
-${xpath_filter_ok} //*[@data-test-id='tableFilter-checkbox-OK']
-${xpath_filter_warning} //*[@data-test-id='tableFilter-checkbox-Warning']
-${xpath_filter_critical} //*[@data-test-id='tableFilter-checkbox-Critical']
-${xpath_filter_clear_all} //*[@data-test-id='tableFilter-button-clearAll']
-
-*** 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
-
-
-Verify Sensors Filter From Server Health Clickable
- [Documentation] Verify sensors filter from server health clickable
- [Tags] Verify_Sensors_Filter_From_Server_Health_Clickable
-
- Wait Until Page Contains Element ${xpath_sensors_filter} timeout=15s
- Click Element ${xpath_sensors_filter}
-
- Page Should Contain Element ${xpath_filter_ok}
- Page Should Contain Element ${xpath_filter_warning}
- Page Should Contain Element ${xpath_filter_critical}
- Page Should Contain Element ${xpath_filter_clear_all}
-
-
-*** 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