GUI test automation for Serial Over LAN in overview page
Added Test case:
- Verify Serial Over LAN Console button In Overview page
Change-Id: Ib4c5eb14a220e739374ea2e00c9f3a14c958feef
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/gui/data/resource_variables.py b/gui/data/resource_variables.py
index b6bed76..1efeedc 100644
--- a/gui/data/resource_variables.py
+++ b/gui/data/resource_variables.py
@@ -136,6 +136,7 @@
xpath_server_power_header = "//*[@data-test-id='appHeader-container-power']"
xpath_refresh_button = "//*[@data-test-id='appHeader-button-refresh']"
xpath_network_page_header = "//h1[contains(text(), 'Network settings')]"
+ xpath_sol_header = "//h1[contains(text(), "Serial over LAN console")]"
# xpath for health menu
xpath_health_menu = "//button[@aria-controls='health-menu']"
diff --git a/gui/gui_test/overview_menu/test_overview_menu.robot b/gui/gui_test/overview_menu/test_overview_menu.robot
index fab1647..371e4ea 100644
--- a/gui/gui_test/overview_menu/test_overview_menu.robot
+++ b/gui/gui_test/overview_menu/test_overview_menu.robot
@@ -19,6 +19,7 @@
${xpath_overview_page_header} //h1[contains(text(), "Overview")]
${xpath_edit_network_settings_button} //*[@data-test-id='overviewQuickLinks-button-networkSettings']
${view_all_event_logs} //*[@data-test-id='overviewEvents-button-eventLogs']
+${xpath_launch_serial_over_lan} //*[@data-test-id='overviewQuickLinks-button-solConsole']
*** Test Cases ***
@@ -122,6 +123,14 @@
Wait Until Page Contains Element ${xpath_event_header} timeout=30
+Verify Serial Over LAN Console Button In Overview Page
+ [Documentation] Click serial over LAN button and verify page navigation to serial over LAN page.
+ [Tags] Verify_Serial_Over_LAN_Console_Button_In_Overview_Page
+
+ Click Element ${xpath_launch_serial_over_lan}
+ Wait Until Page Contains ${xpath_sol_header}
+
+
*** Keywords ***
Test Setup Execution