*** 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}





Verify IP address in GUI header.
Verify IP address in GUI header.

Resolves openbmc/openbmc-test-automation#1233

Change-Id: I069ba1df63841eb58415c90e0158525f04fd778b
Signed-off-by: Sivas SRR <012927925d910b449e3c54b956422d549bbe0ff0@in.ibm.com>

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation