Added a new keyword Launch Browser And Navigate To Network Page.
Changes :-
- Added new keyword Launch Browser And Navigate To Network Page
- Reason : As per new change after updating hostname,bmc gui gets logout.
Above keyword will fix the issue to relogin and verify changes.
Tested :-
- Successfully ran this from /gui/gui_test/settings_menu/test_network_sub_menu.robot
Change-Id: Ied934dadef16d0c4d83701d629cfcbbb834801a0
Signed-off-by: rramyasr-in <rramyasr@in.ibm.com>
diff --git a/gui/gui_test/settings_menu/test_network_sub_menu.robot b/gui/gui_test/settings_menu/test_network_sub_menu.robot
index 75751fe..71d49f3 100644
--- a/gui/gui_test/settings_menu/test_network_sub_menu.robot
+++ b/gui/gui_test/settings_menu/test_network_sub_menu.robot
@@ -211,6 +211,16 @@
${default_gateway}= Get BMC Default Gateway
Set Suite Variable ${default_gateway}
+Launch Browser Login GUI And Navigate To Network Page
+ [Documentaion] Launch browser Login GUI and navigate to network page.
+
+ Launch Browser And Login GUI
+ Wait Until Keyword Succeeds 1 min 15 sec
+ ... Click Element ${xpath_settings_menu}
+ Click Element ${xpath_network_sub_menu}
+ Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain network
+ Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30
+
Configure the Hostname Back And Verify
[Documentation] Configure the hostname back.
@@ -272,4 +282,8 @@
Wait Until Keyword Succeeds 30 sec 10 sec Click Element ${xpath_nw_settings}
Input Text ${xpath_nw_settings_input_field} ${input_value}
Click Button ${xpath_save_button}
+
+ # Re-Login gui and navigate to network page.
+ Launch Browser Login GUI And Navigate To Network Page
+
Wait Until Page Contains ${input_value} timeout=30sec