Verify IP address in GUI header.

Resolves openbmc/openbmc-test-automation#1233

Change-Id: I069ba1df63841eb58415c90e0158525f04fd778b
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/gui/obmc_gui/test/gui_header/test_obmc_gui_ip_check.robot b/gui/obmc_gui/test/gui_header/test_obmc_gui_ip_check.robot
new file mode 100644
index 0000000..4a2a119
--- /dev/null
+++ b/gui/obmc_gui/test/gui_header/test_obmc_gui_ip_check.robot
@@ -0,0 +1,33 @@
+*** Settings ***
+
+Documentation  Test Open BMC GUI BMC host information under GUI Header.
+
+Resource        ../../lib/resource.robot
+
+Suite Setup     Login OpenBMC GUI
+Suite Teardown  Close Browser
+
+*** Variables ***
+${xpath_select_server_control}  //*[@id="header__wrapper"]/div/div[2]/p[2]
+
+*** Test Cases ***
+
+Verify IP address
+    [Documentation]  Verify BMC IP address displayed in GUI header.
+    [Tags]  Verify_IP_address
+
+    # NOTE: gui_displayed_ip can be either a host name or an IP address.
+    #       (e.g. "machinex" or "xx.xx.xx.xx").
+    ${gui_displayed_ip}=  Get Text  ${xpath_select_server_control}
+    Should Contain  ${gui_displayed_ip}  ${OPENBMC_HOST}
+
+*** Keywords ***
+
+Login OpenBMC GUI
+
+    Open Browser With URL  ${xpath_openbmc_url}
+    Login OpenBMC GUI  ${OPENBMC_USERNAME}  ${OPENBMC_PASSWORD}
+
+
+
+