Rahul Maheshwari | f7376af | 2018-06-11 00:46:36 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Network settings" sub-menu of |
| 4 | ... "Server configuration". |
| 5 | |
| 6 | Resource ../../lib/resource.robot |
| 7 | |
| 8 | Suite Setup Launch Browser And Login OpenBMC GUI |
| 9 | Suite Teardown Logout And Close Browser |
| 10 | Test Setup Test Setup Execution |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
| 14 | ${xpath_select_server_configuration} //*[@id="nav__top-level"]/li[4]/button |
| 15 | ${xpath_select_network_settings} //a[@href='#/configuration/network'] |
| 16 | ${xpath_hostname_input} //*[@id="net-config__mac"] |
| 17 | ${xpath_network_save_settings} //*[@id="configuration-network"]/form/section[3]/div[2]/button[1] |
| 18 | ${xpath_continue} //*[@id=""]/main/section/div/div[4]/button[2] |
| 19 | ${xpath_network_config_ipv4_address} //*[@id="net-config__ipv4-address"] |
Rahul Maheshwari | 88f56ec | 2018-06-18 05:08:40 -0500 | [diff] [blame^] | 20 | ${xpath_default_gateway_input} //*[@id="net-config__domain"] |
| 21 | ${xpath_mac_address_input} //*[@id="net-config__host"] |
| 22 | |
Rahul Maheshwari | f7376af | 2018-06-11 00:46:36 -0500 | [diff] [blame] | 23 | |
| 24 | *** Test Cases *** |
| 25 | |
| 26 | Verify Network Settings From Server Configuration |
| 27 | [Documentation] Verify ability to select "Network Settings" sub-menu option |
| 28 | ... of "Server Configuration". |
| 29 | [Tags] Verify_Network_Settings_From_Server_Configuration |
| 30 | |
| 31 | Wait Until Page Contains BMC network settings |
| 32 | Page Should Contain IPV4 settings Common settings |
| 33 | |
| 34 | |
| 35 | Verify Hostname Text Configuration |
| 36 | [Documentation] Verify hostname text is configurable from "network settings" |
| 37 | ... sub-menu. |
Sivas SRR | 125724a | 2018-06-15 05:32:20 -0500 | [diff] [blame] | 38 | [Tags] Verify_Hostname_Text_Configuration |
Rahul Maheshwari | f7376af | 2018-06-11 00:46:36 -0500 | [diff] [blame] | 39 | |
| 40 | Input Text ${xpath_hostname_input} witherspoon1 |
| 41 | Click Element ${xpath_network_save_settings} |
| 42 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 43 | Click Element ${xpath_continue} |
| 44 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 45 | Page Should Contain witherspoon1 |
| 46 | |
| 47 | |
Rahul Maheshwari | 88f56ec | 2018-06-18 05:08:40 -0500 | [diff] [blame^] | 48 | Verify Default Gateway Editable |
| 49 | [Documentation] Verify default gateway text input allowed from "network |
| 50 | ... settings". |
| 51 | [Tags] Verify_Default_Gateway_Editable |
| 52 | |
| 53 | Page Should Contain Element ${xpath_default_gateway_input} |
| 54 | Input Text ${xpath_default_gateway_input} 10.6.6.7 |
| 55 | |
| 56 | |
| 57 | Verify MAC Address Editable |
| 58 | [Documentation] Verify MAC address text input allowed from "network |
| 59 | ... settings". |
| 60 | [Tags] Verify_MAC_Address_Editable |
| 61 | |
| 62 | Page Should Contain Element ${xpath_mac_address_input} |
| 63 | Input Text ${xpath_mac_address_input} 70:e2:84:14:16:6c |
| 64 | |
| 65 | |
Rahul Maheshwari | f7376af | 2018-06-11 00:46:36 -0500 | [diff] [blame] | 66 | *** Keywords *** |
| 67 | |
| 68 | Test Setup Execution |
| 69 | [Documentation] Do test case setup tasks. |
| 70 | |
| 71 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 72 | Click Element ${xpath_select_server_configuration} |
| 73 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 74 | Click Element ${xpath_select_network_settings} |
| 75 | Wait Until Page Contains Element ${xpath_network_config_ipv4_address} |
| 76 | |