Add GUI automation test case for verifying network info in overview page
Added test case:
- Verify Network Information In Overview Page
Change-Id: I8ed883f0532a30334621194d37ac63e2b605eb8b
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/gui/gui_test/overview_menu/test_overview_menu.robot b/gui/gui_test/overview_menu/test_overview_menu.robot
index 58fc66d..fab1647 100644
--- a/gui/gui_test/overview_menu/test_overview_menu.robot
+++ b/gui/gui_test/overview_menu/test_overview_menu.robot
@@ -5,6 +5,9 @@
Resource ../../lib/resource.robot
Resource ../../../lib/logging_utils.robot
Resource ../../../lib/list_utils.robot
+Resource ../../../lib/bmc_network_utils.robot
+
+Library String
Suite Setup Launch Browser And Login GUI
Suite Teardown Close Browser
@@ -39,6 +42,34 @@
Wait Until Page Contains no high priority events to display timeout=10
+Verify Network Information In Overview Page
+ [Documentation] Verify values under network information section.
+ [Tags] Verify_Network_Information_In_Overview Page
+
+ ${hostname}= Get BMC Hostname
+ Page Should Contain ${hostname}
+
+ # Get all IP addresses and prefix lengths on system.
+
+ ${ip_addr_list}= Get BMC IP Info
+ FOR ${ip_address} IN @{ip_addr_list}
+ ${ip}= Fetch From Left ${ip_address} \/
+ Page Should Contain ${ip}
+ END
+
+ ${macaddr}= Get BMC MAC Address
+ Page Should Contain ${macaddr}
+
+
+Verify Message In High Priority Events Section For No Events
+ [Documentation] Verify message under high priority events section in case of no events.
+ [Tags] Verify_Message_In_High_Priority_Events_Section_For_No_Events
+
+ Redfish Purge Event Log
+ Click Element ${xpath_refresh_button}
+ Wait Until Page Contains no high priority events to display timeout=10
+
+
Verify Server Information Section
[Documentation] Verify values under server information section in overview page.
[Tags] Verify_Server_Information_Section