Anusha Dathatri | 21ac59f | 2020-07-14 13:12:58 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 3 | Documentation Test OpenBMC GUI "Network" sub-menu of "Settings". |
Anusha Dathatri | 21ac59f | 2020-07-14 13:12:58 -0500 | [diff] [blame] | 4 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Anves Kumar rayankula | 65e5ed2 | 2020-09-17 04:44:44 -0500 | [diff] [blame] | 6 | Resource ../../../lib/bmc_network_utils.robot |
Anusha Dathatri | 21ac59f | 2020-07-14 13:12:58 -0500 | [diff] [blame] | 7 | |
| 8 | Suite Setup Suite Setup Execution |
| 9 | Suite Teardown Close Browser |
| 10 | |
George Keishing | 0302e9a | 2023-10-12 21:48:35 +0530 | [diff] [blame] | 11 | Force Tags Network_Sub_Menu |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 12 | |
Anusha Dathatri | 21ac59f | 2020-07-14 13:12:58 -0500 | [diff] [blame] | 13 | *** Variables *** |
| 14 | |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 15 | ${xpath_network_heading} //h1[text()="Network"] |
| 16 | ${xpath_interface_settings} //h2[text()="Interface settings"] |
| 17 | ${xpath_network_settings} //h2[text()="Network settings"] |
| 18 | ${xpath_static_ipv4} //h2[text()="IPv4"] |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 19 | ${xpath_domain_name_toggle} //*[@data-test-id="networkSettings-switch-useDomainName"] |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 20 | ${xpath_ntp_servers_toggle} //*[@data-test-id="networkSettings-switch-useNtp"] |
| 21 | ${xpath_add_static_ipv4_address_button} //button[contains(text(),"Add static IPv4 address")] |
meghagn | cca733c | 2021-12-20 04:34:55 -0600 | [diff] [blame] | 22 | ${xpath_hostname} //*[@title="Edit hostname"] |
| 23 | ${xpath_hostname_input} //*[@id="hostname"] |
| 24 | ${xpath_input_ip_address} //*[@id="ipAddress"] |
| 25 | ${xpath_input_gateway} //*[@id="gateway"] |
| 26 | ${xpath_input_subnetmask} //*[@id="subnetMask"] |
meghagn | cca733c | 2021-12-20 04:34:55 -0600 | [diff] [blame] | 27 | ${xpath_cancel_button} //button[contains(text(),'Cancel')] |
meghagn | 2007beb | 2022-01-11 08:23:13 -0600 | [diff] [blame] | 28 | ${xpath_delete_dns_server} //*[@title="Delete DNS address"] |
Sweta Potthuri | ec64ad0 | 2023-01-30 23:25:13 -0600 | [diff] [blame] | 29 | ${xpath_save_button} //button[contains(text(),'Save')] |
Sweta Potthuri | fe2f6d7 | 2023-02-27 07:46:27 -0600 | [diff] [blame] | 30 | ${xpath_dhcp_toggle_switch} //*[@id='dhcpSwitch'] |
meghagn | 2007beb | 2022-01-11 08:23:13 -0600 | [diff] [blame] | 31 | |
| 32 | ${dns_server} 10.10.10.10 |
meghagn | 122340d | 2022-02-01 04:57:37 -0600 | [diff] [blame] | 33 | ${test_ipv4_addr} 10.7.7.7 |
Sweta Potthuri | a5e5e5c | 2022-11-22 07:50:52 -0600 | [diff] [blame] | 34 | ${test_ipv4_addr_1} 10.7.7.8 |
Sweta Potthuri | 8788141 | 2022-11-30 00:10:35 -0600 | [diff] [blame] | 35 | ${out_of_range_ip} 10.7.7.256 |
| 36 | ${string_ip} aa.bb.cc.dd |
| 37 | ${negative_ip} 10.-7.-7.-7 |
| 38 | ${less_octet_ip} 10.3.36 |
Sweta Potthuri | 5ca5c99 | 2022-12-01 06:31:25 -0600 | [diff] [blame] | 39 | ${hex_ip} 0xa.0xb.0xc.0xd |
| 40 | ${spl_char_ip} @@@.%%.44.11 |
meghagn | 122340d | 2022-02-01 04:57:37 -0600 | [diff] [blame] | 41 | ${test_subnet_mask} 255.255.0.0 |
| 42 | ${alpha_netmask} ff.ff.ff.ff |
| 43 | ${out_of_range_netmask} 255.256.255.0 |
| 44 | ${more_byte_netmask} 255.255.255.0.0 |
| 45 | ${lowest_netmask} 128.0.0.0 |
meghagn | 97f7eb4 | 2022-03-02 02:59:35 -0600 | [diff] [blame] | 46 | ${test_hostname} openbmc |
Anves Kumar rayankula | 4c88447 | 2020-11-24 05:03:45 -0600 | [diff] [blame] | 47 | |
Anusha Dathatri | 21ac59f | 2020-07-14 13:12:58 -0500 | [diff] [blame] | 48 | *** Test Cases *** |
| 49 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 50 | Verify Navigation To Network Page |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 51 | [Documentation] Login to GUI and navigate to the settings sub-menu network page. |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 52 | [Tags] Verify_Navigation_To_Network_Page |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 53 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 54 | Page Should Contain Element ${xpath_network_heading} |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 55 | |
| 56 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 57 | Verify Existence Of All Sections In Network Page |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 58 | [Documentation] Login to GUI and navigate to the settings sub-menu network page |
| 59 | ... and confirm the page contains sections that should be accessible. |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 60 | [Tags] Verify_Existence_Of_All_Sections_In_Network_Page |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 61 | |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 62 | Wait Until Page Contains Element ${xpath_network_settings} timeout=1min |
| 63 | Page Should Contain Element ${xpath_interface_settings} |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 64 | Page Should Contain Element ${xpath_static_ipv4} |
| 65 | Page Should Contain Element ${xpath_static_dns} |
| 66 | |
| 67 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 68 | Verify Existence Of All Buttons In Network Page |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 69 | [Documentation] Login to GUI and navigate to the settings sub-menu network page |
| 70 | ... and confirm the page contains basic features button that should be accessible. |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 71 | [Tags] Verify_Existence_Of_All_Buttons_In_Network_Page |
Anusha Dathatri | e11a54d | 2020-08-31 08:35:47 -0500 | [diff] [blame] | 72 | |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 73 | Page Should Contain Button ${xpath_add_static_ipv4_address_button} |
| 74 | Page Should Contain Button ${xpath_add_dns_ip_address_button} |
| 75 | Page Should Contain Button ${xpath_domain_name_toggle} |
| 76 | Page Should Contain Button ${xpath_dns_servers_toggle} |
| 77 | Page Should Contain Button ${xpath_ntp_servers_toggle} |
Sweta Potthuri | fe2f6d7 | 2023-02-27 07:46:27 -0600 | [diff] [blame] | 78 | Page Should Contain Button ${xpath_dhcp_toggle_switch} |
Anves Kumar rayankula | c3a37e4 | 2021-06-17 06:56:51 -0500 | [diff] [blame] | 79 | |
| 80 | |
meghagn | cca733c | 2021-12-20 04:34:55 -0600 | [diff] [blame] | 81 | Verify Existence Of All Fields In Hostname |
| 82 | [Documentation] Login to GUI and navigate to the settings sub-menu network page |
| 83 | ... and confirm hostname contains all the fields. |
| 84 | [Tags] Verify_Existence_Of_All_Fields_In_Hostname |
| 85 | [Teardown] Run Keywords Click Button ${xpath_cancel_button} AND |
| 86 | ... Wait Until Keyword Succeeds 10 sec 5 sec |
| 87 | ... Refresh GUI And Verify Element Value ${xpath_network_heading} Network |
| 88 | |
| 89 | Click Element ${xpath_hostname} |
| 90 | Wait Until Page Contains Edit hostname timeout=1min |
| 91 | Page Should Contain Textfield ${xpath_hostname_input} |
| 92 | Page Should Contain Button ${xpath_cancel_button} |
Sweta Potthuri | ec64ad0 | 2023-01-30 23:25:13 -0600 | [diff] [blame] | 93 | Page Should Contain Button ${xpath_save_button} |
meghagn | cca733c | 2021-12-20 04:34:55 -0600 | [diff] [blame] | 94 | |
| 95 | |
| 96 | Verify Existence Of All Fields In Static IP Address |
| 97 | [Documentation] Login to GUI and navigate to the settings sub-menu network page |
| 98 | ... and confirm section static IPv4 contains all the fields. |
| 99 | [Tags] Verify_Existence_Of_All_Fields_In_Static_IP_Address |
| 100 | [Teardown] Run Keywords Click Button ${xpath_cancel_button} AND |
| 101 | ... Wait Until Keyword Succeeds 10 sec 5 sec |
| 102 | ... Refresh GUI And Verify Element Value ${xpath_network_heading} Network |
| 103 | |
| 104 | Wait Until Keyword Succeeds 30 sec 10 sec Click Element ${xpath_add_static_ipv4_address_button} |
| 105 | Wait Until Page Contains Add static IPv4 address timeout=15s |
| 106 | Page Should Contain Textfield ${xpath_input_ip_address} |
| 107 | Page Should Contain Textfield ${xpath_input_gateway} |
| 108 | Page Should Contain Textfield ${xpath_input_subnetmask} |
| 109 | Page Should Contain Button ${xpath_cancel_button} |
| 110 | Page Should Contain Button ${xpath_add_button} |
| 111 | |
| 112 | |
| 113 | Verify Existence Of All Fields In Static DNS |
| 114 | [Documentation] Login to GUI and navigate to the settings sub-menu network page |
| 115 | ... and confirm section static DNS contains all the fields. |
| 116 | [Tags] Verify_Existence_Of_All_Fields_In_Static_DNS |
| 117 | [Teardown] Run Keywords Click Button ${xpath_cancel_button} AND |
| 118 | ... Wait Until Keyword Succeeds 10 sec 5 sec |
| 119 | ... Refresh GUI And Verify Element Value ${xpath_network_heading} Network |
| 120 | |
| 121 | Wait Until Keyword Succeeds 30 sec 10 sec Click Element ${xpath_add_dns_ip_address_button} |
| 122 | Wait Until Page Contains Add IP address timeout=11s |
| 123 | Page Should Contain Textfield ${xpath_input_static_dns} |
| 124 | Page Should Contain Button ${xpath_cancel_button} |
| 125 | Page Should Contain Button ${xpath_add_button} |
| 126 | |
| 127 | |
meghagn | 2007beb | 2022-01-11 08:23:13 -0600 | [diff] [blame] | 128 | Configure And Verify DNS Server Via GUI |
| 129 | [Documentation] Login to GUI Network page, add DNS server IP |
| 130 | ... and verify that the page reflects server IP. |
| 131 | [Tags] Configure_And_Verify_DNS_Server_Via_GUI |
| 132 | [Teardown] Delete DNS Servers And Verify |
| 133 | |
| 134 | Add DNS Servers And Verify ${dns_server} |
| 135 | |
| 136 | |
meghagn | 122340d | 2022-02-01 04:57:37 -0600 | [diff] [blame] | 137 | Configure Static IPv4 Netmask Via GUI And Verify |
| 138 | [Documentation] Login to GUI Network page, configure static IPv4 netmask and verify. |
| 139 | [Tags] Configure_Static_IPv4_Netmask_Via_GUI_And_Verify |
Rahul Maheshwari | 35182d8 | 2023-02-25 04:40:35 -0600 | [diff] [blame] | 140 | [Setup] Redfish.Login |
| 141 | [Teardown] Redfish.Logout |
meghagn | 122340d | 2022-02-01 04:57:37 -0600 | [diff] [blame] | 142 | [Template] Add Static IP Address And Verify |
| 143 | |
| 144 | # ip_addresses subnet_masks gateway expected_status |
Sweta Potthuri | 130f310 | 2023-01-15 23:13:54 -0600 | [diff] [blame] | 145 | ${test_ipv4_addr} ${lowest_netmask} ${default_gateway} Success |
| 146 | ${test_ipv4_addr} ${more_byte_netmask} ${default_gateway} Invalid format |
| 147 | ${test_ipv4_addr} ${alpha_netmask} ${default_gateway} Invalid format |
| 148 | ${test_ipv4_addr} ${out_of_range_netmask} ${default_gateway} Invalid format |
| 149 | ${test_ipv4_addr} ${test_subnet_mask} ${default_gateway} Success |
meghagn | 122340d | 2022-02-01 04:57:37 -0600 | [diff] [blame] | 150 | |
| 151 | |
meghagn | 5d98766 | 2022-02-17 22:47:44 -0600 | [diff] [blame] | 152 | Configure And Verify Static IP Address |
| 153 | [Documentation] Login to GUI Network page, configure static ip address and verify. |
| 154 | [Tags] Configure_And_Verify_Static_IP_Address |
Rahul Maheshwari | 35182d8 | 2023-02-25 04:40:35 -0600 | [diff] [blame] | 155 | [Setup] Redfish.Login |
| 156 | [Teardown] Redfish.Logout |
meghagn | 5d98766 | 2022-02-17 22:47:44 -0600 | [diff] [blame] | 157 | |
Sweta Potthuri | a5e5e5c | 2022-11-22 07:50:52 -0600 | [diff] [blame] | 158 | Add Static IP Address And Verify ${test_ipv4_addr} ${test_subnet_mask} ${default_gateway} Success |
| 159 | |
| 160 | |
| 161 | Configure And Verify Multiple Static IP Address |
| 162 | [Documentation] Login to GUI Network page, configure multiple static IP address and verify. |
Sweta Potthuri | e074592 | 2023-03-01 23:46:34 -0600 | [diff] [blame] | 163 | [Setup] Redfish.Login |
| 164 | [Teardown] Redfish.Logout |
Sweta Potthuri | a5e5e5c | 2022-11-22 07:50:52 -0600 | [diff] [blame] | 165 | [Tags] Configure_And_Verify_Multiple_Static_IP_Address |
| 166 | |
| 167 | Add Static IP Address And Verify ${test_ipv4_addr} ${test_subnet_mask} ${default_gateway} Success |
| 168 | Add Static IP Address And Verify ${test_ipv4_addr_1} ${test_subnet_mask} ${default_gateway} Success |
meghagn | 5d98766 | 2022-02-17 22:47:44 -0600 | [diff] [blame] | 169 | |
| 170 | |
Sweta Potthuri | 8788141 | 2022-11-30 00:10:35 -0600 | [diff] [blame] | 171 | Configure And Verify Invalid Static IP Address |
| 172 | [Documentation] Login to GUI Network page, configure invalid static IP address and verify. |
| 173 | [Tags] Configure_And_Verify_Invalid_Static_IP_Address |
Sweta Potthuri | e074592 | 2023-03-01 23:46:34 -0600 | [diff] [blame] | 174 | [Setup] Redfish.Login |
| 175 | [Teardown] Redfish.Logout |
Sweta Potthuri | 8788141 | 2022-11-30 00:10:35 -0600 | [diff] [blame] | 176 | [Template] Add Static IP Address And Verify |
| 177 | |
| 178 | # ip subnet_mask gateway status |
| 179 | ${out_of_range_ip} ${test_subnet_mask} ${default_gateway} Invalid format |
| 180 | ${less_octet_ip} ${test_subnet_mask} ${default_gateway} Invalid format |
| 181 | ${string_ip} ${test_subnet_mask} ${default_gateway} Invalid format |
| 182 | ${negative_ip} ${test_subnet_mask} ${default_gateway} Invalid format |
Sweta Potthuri | 5ca5c99 | 2022-12-01 06:31:25 -0600 | [diff] [blame] | 183 | ${hex_ip} ${test_subnet_mask} ${default_gateway} Invalid format |
| 184 | ${spl_char_ip} ${test_subnet_mask} ${default_gateway} Invalid format |
Sweta Potthuri | 8788141 | 2022-11-30 00:10:35 -0600 | [diff] [blame] | 185 | |
Sweta Potthuri | fe2f6d7 | 2023-02-27 07:46:27 -0600 | [diff] [blame] | 186 | |
Sweta Potthuri | e074592 | 2023-03-01 23:46:34 -0600 | [diff] [blame] | 187 | Configure Hostname Via GUI And Verify |
| 188 | [Documentation] Login to GUI Network page, configure hostname and verify. |
| 189 | [Tags] Configure_Hostname_Via_GUI_And_Verify |
| 190 | [Teardown] Configure the Hostname Back And Verify |
| 191 | |
| 192 | ${hostname}= Get BMC Hostname |
| 193 | Set Suite Variable ${hostname} |
| 194 | Configure And Verify Network Settings Via GUI ${xpath_hostname} |
| 195 | ... ${xpath_hostname_input} ${test_hostname} |
| 196 | |
| 197 | ${bmc_hostname}= Get BMC Hostname |
| 198 | Should Be Equal As Strings ${bmc_hostname} ${test_hostname} |
| 199 | |
Sweta Potthuri | e074592 | 2023-03-01 23:46:34 -0600 | [diff] [blame] | 200 | |
Anusha Dathatri | 21ac59f | 2020-07-14 13:12:58 -0500 | [diff] [blame] | 201 | *** Keywords *** |
| 202 | |
| 203 | Suite Setup Execution |
meghagn | 1bd3928 | 2021-12-19 23:56:42 -0600 | [diff] [blame] | 204 | [Documentation] Do suite setup tasks. |
Anusha Dathatri | 21ac59f | 2020-07-14 13:12:58 -0500 | [diff] [blame] | 205 | |
| 206 | Launch Browser And Login GUI |
Sweta Potthuri | a5e5e5c | 2022-11-22 07:50:52 -0600 | [diff] [blame] | 207 | Wait Until Keyword Succeeds 1 min 15 sec |
rramyasr-in | 84ff2d8 | 2022-12-06 09:43:53 -0600 | [diff] [blame] | 208 | ... Click Element ${xpath_settings_menu} |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 209 | Click Element ${xpath_network_sub_menu} |
| 210 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain network |
rramyasr-in | 9e2c96f | 2023-01-24 07:59:34 -0600 | [diff] [blame] | 211 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |
Sweta Potthuri | a5e5e5c | 2022-11-22 07:50:52 -0600 | [diff] [blame] | 212 | ${default_gateway}= Get BMC Default Gateway |
| 213 | Set Suite Variable ${default_gateway} |
meghagn | 2007beb | 2022-01-11 08:23:13 -0600 | [diff] [blame] | 214 | |
rramyasr-in | 708cb93 | 2023-10-04 01:57:11 -0500 | [diff] [blame] | 215 | Launch Browser Login GUI And Navigate To Network Page |
George Keishing | e02a72c | 2023-10-05 21:29:04 +0530 | [diff] [blame] | 216 | [Documentation] Launch browser Login GUI and navigate to network page. |
rramyasr-in | 708cb93 | 2023-10-04 01:57:11 -0500 | [diff] [blame] | 217 | |
| 218 | Launch Browser And Login GUI |
| 219 | Wait Until Keyword Succeeds 1 min 15 sec |
| 220 | ... Click Element ${xpath_settings_menu} |
| 221 | Click Element ${xpath_network_sub_menu} |
| 222 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain network |
| 223 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |
| 224 | |
Sweta Potthuri | e074592 | 2023-03-01 23:46:34 -0600 | [diff] [blame] | 225 | Configure the Hostname Back And Verify |
| 226 | [Documentation] Configure the hostname back. |
| 227 | |
| 228 | Configure And Verify Network Settings Via GUI |
| 229 | ... ${xpath_hostname} ${xpath_hostname_input} ${hostname} |
| 230 | ${bmc_hostname_after}= Get BMC Hostname |
| 231 | Should Be Equal As Strings ${bmc_hostname_after} ${hostname} |
meghagn | 2007beb | 2022-01-11 08:23:13 -0600 | [diff] [blame] | 232 | |
meghagn | 2007beb | 2022-01-11 08:23:13 -0600 | [diff] [blame] | 233 | Delete DNS Servers And Verify |
| 234 | [Documentation] Login to GUI Network page,delete static name servers |
George Keishing | c91aadd | 2022-02-23 09:30:48 -0600 | [diff] [blame] | 235 | ... and verify that page does not reflect static name servers. |
meghagn | 2007beb | 2022-01-11 08:23:13 -0600 | [diff] [blame] | 236 | |
| 237 | Page Should Contain Element ${xpath_delete_dns_server} |
| 238 | Wait Until Element Is Enabled ${xpath_delete_dns_server} |
| 239 | Click Button ${xpath_delete_dns_server} |
| 240 | Wait Until Page Contains Element ${xpath_add_dns_ip_address_button} timeout=15 |
| 241 | # Check if all name servers deleted on BMC. |
| 242 | ${nameservers}= CLI Get Nameservers |
| 243 | Should Be Empty ${nameservers} |
meghagn | 122340d | 2022-02-01 04:57:37 -0600 | [diff] [blame] | 244 | |
| 245 | |
| 246 | Add Static IP Address And Verify |
| 247 | [Documentation] Add static IP address, subnet mask and |
| 248 | ... gateway via GUI and verify. |
| 249 | [Arguments] ${ip_address} ${subnet_mask} ${gateway_address} ${expected_status}=error |
| 250 | |
| 251 | # Description of argument(s): |
| 252 | # ip_address IP address to be added (e.g. 10.7.7.7). |
| 253 | # subnet_mask Subnet mask for the IP to be added (e.g. 255.255.0.0). |
| 254 | # gateway_address Gateway address for the IP to be added (e.g. 10.7.7.1). |
| 255 | # expected_status Expected status while adding static ipv4 address |
| 256 | # .... (e.g. Invalid format / Field required). |
| 257 | |
| 258 | Wait Until Keyword Succeeds 30 sec 10 sec Click Element ${xpath_add_static_ipv4_address_button} |
| 259 | |
| 260 | Input Text ${xpath_input_ip_address} ${ip_address} |
| 261 | Input Text ${xpath_input_subnetmask} ${subnet_mask} |
| 262 | Input Text ${xpath_input_gateway} ${gateway_address} |
| 263 | |
meghagn | 97f7eb4 | 2022-03-02 02:59:35 -0600 | [diff] [blame] | 264 | Click Element ${xpath_add_button} |
meghagn | 5d98766 | 2022-02-17 22:47:44 -0600 | [diff] [blame] | 265 | Run Keyword If '${expected_status}' == 'Success' |
meghagn | 122340d | 2022-02-01 04:57:37 -0600 | [diff] [blame] | 266 | ... Run Keywords Wait Until Page Contains ${ip_address} timeout=40sec |
| 267 | ... AND Validate Network Config On BMC |
| 268 | |
| 269 | ... ELSE IF '${expected_status}' == 'Invalid format' |
| 270 | ... Run Keywords Page Should Contain Invalid format AND |
| 271 | ... Click Button ${xpath_cancel_button} |
meghagn | 97f7eb4 | 2022-03-02 02:59:35 -0600 | [diff] [blame] | 272 | |
| 273 | |
| 274 | Configure And Verify Network Settings Via GUI |
| 275 | [Documentation] Configure and verify network settings via GUI. |
| 276 | [Arguments] ${xpath_nw_settings} ${xpath_nw_settings_input_field} ${input_value} |
| 277 | |
| 278 | # Description of argument(s): |
| 279 | # xpath_nw_settings xpath of the network settings. |
| 280 | # xpath_nw_settings_input_field xpath of the network setting's input field. |
| 281 | # input_value Input value for configuration. E.g. hostname, IP etc. |
| 282 | |
| 283 | Wait Until Keyword Succeeds 30 sec 10 sec Click Element ${xpath_nw_settings} |
| 284 | Input Text ${xpath_nw_settings_input_field} ${input_value} |
Sweta Potthuri | a3e5de1 | 2023-02-06 01:46:53 -0600 | [diff] [blame] | 285 | Click Button ${xpath_save_button} |
rramyasr-in | 708cb93 | 2023-10-04 01:57:11 -0500 | [diff] [blame] | 286 | |
| 287 | # Re-Login gui and navigate to network page. |
| 288 | Launch Browser Login GUI And Navigate To Network Page |
| 289 | |
meghagn | 97f7eb4 | 2022-03-02 02:59:35 -0600 | [diff] [blame] | 290 | Wait Until Page Contains ${input_value} timeout=30sec |