GUI test to verify setting invalid network configuration

Added test cases:
    - Configure Invalid Network Addresses And Verify

Change-Id: I894d9d970eea0b6cf980f61522c41da68a8a268b
Signed-off-by: Anves Kumar rayankula <anvesr77@in.ibm.com>
diff --git a/gui/gui_test/server_config/test_obmc_gui_network_settings.robot b/gui/gui_test/server_config/test_obmc_gui_network_settings.robot
index f62b3ae..29ce2c9 100644
--- a/gui/gui_test/server_config/test_obmc_gui_network_settings.robot
+++ b/gui/gui_test/server_config/test_obmc_gui_network_settings.robot
@@ -141,6 +141,18 @@
     END
 
 
+Configure Invalid Network Addresses And Verify
+    [Documentation]  Configure invalid network addresses and verify.
+    [Tags]  Configure_Invalid_Network_Addresses_And_Verify
+    [Template]  Configure Invalid Network Address And Verify
+
+    # locator                        invalid_address
+    ${xpath_mac_address_input}       A.A.A.A
+    ${xpath_default_gateway_input}   a.b.c.d
+    ${xpath_static_input_ip0}        a.b.c.d
+    ${xpath_input_netmask_addr0}     255.256.255.0
+
+
 *** Keywords ***
 
 Suite Setup Execution
@@ -151,3 +163,18 @@
     Click Element  ${xpath_select_network_settings}
     Wait Until Keyword Succeeds  30 sec  10 sec  Location Should Contain  network-settings
 
+
+
+Configure Invalid Network Address And Verify
+    [Documentation]  Configure invalid network address And verify.
+    [Arguments]  ${locator}  ${invalid_address}
+
+    # Description of the argument(s):
+    # locator            Xpath to identify an HTML element on a web page.
+    # invalid_address    Invalid address to be added.
+
+    Wait Until Page Contains Element  ${locator}
+    Input Text  ${locator}  ${invalid_address}
+    Element Should Be Disabled  ${xpath_network_save_settings}
+    Page Should Contain  Invalid format
+