1b89977a4SRahul Maheshwari*** Settings *** 2b89977a4SRahul Maheshwari 3b89977a4SRahul MaheshwariDocumentation Test OpenBMC GUI "Network settings" sub-menu of 4b89977a4SRahul Maheshwari... "Server configuration". 5b89977a4SRahul Maheshwari 6b89977a4SRahul MaheshwariResource ../../lib/resource.robot 7b89977a4SRahul Maheshwari 8b89977a4SRahul MaheshwariSuite Setup Launch Browser And Login OpenBMC GUI 9b89977a4SRahul MaheshwariSuite Teardown Close Browser 10b89977a4SRahul MaheshwariTest Setup Test Setup Execution 11b89977a4SRahul Maheshwari 12b89977a4SRahul Maheshwari*** Variables *** 13b89977a4SRahul Maheshwari 14b89977a4SRahul Maheshwari${xpath_select_server_configuration} //*[@id="nav__top-level"]/li[4]/button 15b89977a4SRahul Maheshwari${xpath_select_network_settings} //a[@href='#/configuration/network'] 16b89977a4SRahul Maheshwari${xpath_hostname_input} //*[@id="net-config__mac"] 17*2513ae5bSAnusha Dathatri${xpath_network_save_settings} //*[text()="Save settings"] 18b89977a4SRahul Maheshwari${xpath_continue} //*[@id=""]/main/section/div/div[4]/button[2] 19ac71e3f1SAnusha Dathatri${xpath_network_config_ipv4_address} //*[@id="ipv4-address-1"] 20b89977a4SRahul Maheshwari${xpath_default_gateway_input} //*[@id="net-config__domain"] 21b89977a4SRahul Maheshwari${xpath_mac_address_input} //*[@id="net-config__host"] 22ac71e3f1SAnusha Dathatri${xpath_ipv4-address-input} //*[@id="ipv4-address-1"] 23*2513ae5bSAnusha Dathatri${xpath_network_DHCP_button} //*[contains(text(),"Obtain an IP address automatically")] 24*2513ae5bSAnusha Dathatri${xpath_network_static_button} //*[contains(text(),"Assign a static IP address")] 25b89977a4SRahul Maheshwari 26b89977a4SRahul Maheshwari*** Test Cases *** 27b89977a4SRahul Maheshwari 28b89977a4SRahul MaheshwariVerify Network Settings From Server Configuration 29b89977a4SRahul Maheshwari [Documentation] Verify ability to select "Network Settings" sub-menu option 30b89977a4SRahul Maheshwari ... of "Server Configuration". 31b89977a4SRahul Maheshwari [Tags] Verify_Network_Settings_From_Server_Configuration 32b89977a4SRahul Maheshwari 33b89977a4SRahul Maheshwari Wait Until Page Contains BMC network settings 34b89977a4SRahul Maheshwari Page Should Contain IPV4 settings Common settings 35b89977a4SRahul Maheshwari 36b89977a4SRahul Maheshwari 37b89977a4SRahul MaheshwariVerify Hostname Text Configuration 38b89977a4SRahul Maheshwari [Documentation] Verify hostname text is configurable from "network settings" 39b89977a4SRahul Maheshwari ... sub-menu. 40b89977a4SRahul Maheshwari [Tags] Verify_Hostname_Text_Configuration 41b89977a4SRahul Maheshwari 42b89977a4SRahul Maheshwari Input Text ${xpath_hostname_input} witherspoon1 43b89977a4SRahul Maheshwari Click Element ${xpath_network_save_settings} 44b89977a4SRahul Maheshwari Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 45b89977a4SRahul Maheshwari Click Element ${xpath_continue} 46*2513ae5bSAnusha Dathatri Click Element ${xpath_select_refresh_button} 47b89977a4SRahul Maheshwari Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 48b89977a4SRahul Maheshwari Page Should Contain witherspoon1 49b89977a4SRahul Maheshwari 50b89977a4SRahul Maheshwari 51b89977a4SRahul MaheshwariVerify Default Gateway Editable 52b89977a4SRahul Maheshwari [Documentation] Verify default gateway text input allowed from "network 53b89977a4SRahul Maheshwari ... settings". 54b89977a4SRahul Maheshwari [Tags] Verify_Default_Gateway_Editable 55b89977a4SRahul Maheshwari 56b89977a4SRahul Maheshwari Page Should Contain Element ${xpath_default_gateway_input} 57b89977a4SRahul Maheshwari Input Text ${xpath_default_gateway_input} 10.6.6.7 58b89977a4SRahul Maheshwari 59b89977a4SRahul Maheshwari 60b89977a4SRahul MaheshwariVerify MAC Address Editable 61b89977a4SRahul Maheshwari [Documentation] Verify MAC address text input allowed from "network 62b89977a4SRahul Maheshwari ... settings". 63b89977a4SRahul Maheshwari [Tags] Verify_MAC_Address_Editable 64b89977a4SRahul Maheshwari 65b89977a4SRahul Maheshwari Page Should Contain Element ${xpath_mac_address_input} 66b89977a4SRahul Maheshwari Input Text ${xpath_mac_address_input} 70:e2:84:14:16:6c 67b89977a4SRahul Maheshwari 68b89977a4SRahul Maheshwari 69b89977a4SRahul MaheshwariVerify IP Address Editable With Static IP Selection 70b89977a4SRahul Maheshwari [Documentation] Verify IP address editable with static IP selection. 71b89977a4SRahul Maheshwari [Tags] Verify_IP_Address_Editable_With_Static_IP_Selection 72b89977a4SRahul Maheshwari 73b89977a4SRahul Maheshwari Page Should Contain Element ${xpath_network_static_button} 74b89977a4SRahul Maheshwari Click Element ${xpath_network_static_button} 75b89977a4SRahul Maheshwari ${status}= Run Keyword And Return Status Input Text 76b89977a4SRahul Maheshwari ... ${xpath_ipv4-address-input} ${OPENBMC_HOST} 77b89977a4SRahul Maheshwari Should Be True '${status}' == '${True}' 78b89977a4SRahul Maheshwari 79b89977a4SRahul Maheshwari 80b89977a4SRahul MaheshwariVerify IP Address Noneditable With DHCP IP Selection 81b89977a4SRahul Maheshwari [Documentation] Verify IP address noneditable with DHCP IP selection. 82b89977a4SRahul Maheshwari [Tags] Verify_IP_Address_Noneditable_With_DHCP_IP_Selection 83b89977a4SRahul Maheshwari 84b89977a4SRahul Maheshwari Page Should Contain Element ${xpath_network_DHCP_button} 85b89977a4SRahul Maheshwari Click Element ${xpath_network_DHCP_button} 86b89977a4SRahul Maheshwari Element Should Be Disabled ${xpath_ipv4-address-input} 87b89977a4SRahul Maheshwari 88b89977a4SRahul Maheshwari 89b89977a4SRahul Maheshwari*** Keywords *** 90b89977a4SRahul Maheshwari 91b89977a4SRahul MaheshwariTest Setup Execution 92b89977a4SRahul Maheshwari [Documentation] Do test case setup tasks. 93b89977a4SRahul Maheshwari 94b89977a4SRahul Maheshwari Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 95b89977a4SRahul Maheshwari Click Element ${xpath_select_server_configuration} 96b89977a4SRahul Maheshwari Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 97b89977a4SRahul Maheshwari Click Element ${xpath_select_network_settings} 98b89977a4SRahul Maheshwari Wait Until Page Contains Element ${xpath_network_config_ipv4_address} 99b89977a4SRahul Maheshwari 100