Added GUI new testcases for network sub menu

Test cases added:

    - Verify Existence Of All Fields In Hostname
    - Verify Existence Of All Fields In Static IP Address
    - Verify Existence Of All Fields In Static DNS

Change-Id: If17c64af0c1101c8197f7598b5b4302dbd7dd53f
Signed-off-by: meghagn <Megha.GN@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 cc3c6ce..a6fea78 100644
--- a/gui/gui_test/settings_menu/test_network_sub_menu.robot
+++ b/gui/gui_test/settings_menu/test_network_sub_menu.robot
@@ -21,6 +21,14 @@
 ${xpath_ntp_servers_toggle}              //*[@data-test-id="networkSettings-switch-useNtp"]
 ${xpath_add_static_ipv4_address_button}  //button[contains(text(),"Add static IPv4 address")]
 ${xpath_add_dns_ip_address_button}       //button[contains(text(),"Add IP address")]
+${xpath_hostname}                        //*[@title="Edit hostname"]
+${xpath_hostname_input}                  //*[@id="hostname"]
+${xpath_input_ip_address}                //*[@id="ipAddress"]
+${xpath_input_gateway}                   //*[@id="gateway"]
+${xpath_input_subnetmask}                //*[@id="subnetMask"]
+${xpath_input_static_dns}                //*[@id="staticDns"]
+${xpath_cancel_button}                   //button[contains(text(),'Cancel')]
+${xpath_add_button}                      //button[contains(text(),'Add')]
 
 
 *** Test Cases ***
@@ -55,6 +63,53 @@
     Page Should Contain Button  ${xpath_ntp_servers_toggle}
 
 
+Verify Existence Of All Fields In Hostname
+    [Documentation]  Login to GUI and navigate to the settings sub-menu network page
+    ...  and confirm hostname contains all the fields.
+    [Tags]  Verify_Existence_Of_All_Fields_In_Hostname
+    [Teardown]  Run Keywords  Click Button  ${xpath_cancel_button}  AND
+    ...  Wait Until Keyword Succeeds  10 sec  5 sec
+    ...  Refresh GUI And Verify Element Value  ${xpath_network_heading}  Network
+
+    Click Element  ${xpath_hostname}
+    Wait Until Page Contains  Edit hostname  timeout=1min
+    Page Should Contain Textfield  ${xpath_hostname_input}
+    Page Should Contain Button  ${xpath_cancel_button}
+    Page Should Contain Button  ${xpath_add_button}
+
+
+Verify Existence Of All Fields In Static IP Address
+    [Documentation]  Login to GUI and navigate to the settings sub-menu network page
+    ...  and confirm section static IPv4 contains all the fields.
+    [Tags]  Verify_Existence_Of_All_Fields_In_Static_IP_Address
+    [Teardown]  Run Keywords  Click Button  ${xpath_cancel_button}  AND
+    ...  Wait Until Keyword Succeeds  10 sec  5 sec
+    ...  Refresh GUI And Verify Element Value  ${xpath_network_heading}  Network
+
+    Wait Until Keyword Succeeds  30 sec  10 sec  Click Element  ${xpath_add_static_ipv4_address_button}
+    Wait Until Page Contains  Add static IPv4 address  timeout=15s
+    Page Should Contain Textfield  ${xpath_input_ip_address}
+    Page Should Contain Textfield  ${xpath_input_gateway}
+    Page Should Contain Textfield  ${xpath_input_subnetmask}
+    Page Should Contain Button  ${xpath_cancel_button}
+    Page Should Contain Button  ${xpath_add_button}
+
+
+Verify Existence Of All Fields In Static DNS
+    [Documentation]  Login to GUI and navigate to the settings sub-menu network page
+    ...  and confirm section static DNS contains all the fields.
+    [Tags]  Verify_Existence_Of_All_Fields_In_Static_DNS
+    [Teardown]  Run Keywords  Click Button  ${xpath_cancel_button}  AND
+    ...  Wait Until Keyword Succeeds  10 sec  5 sec
+    ...  Refresh GUI And Verify Element Value  ${xpath_network_heading}  Network
+
+    Wait Until Keyword Succeeds  30 sec  10 sec  Click Element  ${xpath_add_dns_ip_address_button}
+    Wait Until Page Contains  Add IP address  timeout=11s
+    Page Should Contain Textfield  ${xpath_input_static_dns}
+    Page Should Contain Button  ${xpath_cancel_button}
+    Page Should Contain Button  ${xpath_add_button}
+
+
 *** Keywords ***
 
 Suite Setup Execution