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"] |
| 20 | |
| 21 | *** Test Cases *** |
| 22 | |
| 23 | Verify Network Settings From Server Configuration |
| 24 | [Documentation] Verify ability to select "Network Settings" sub-menu option |
| 25 | ... of "Server Configuration". |
| 26 | [Tags] Verify_Network_Settings_From_Server_Configuration |
| 27 | |
| 28 | Wait Until Page Contains BMC network settings |
| 29 | Page Should Contain IPV4 settings Common settings |
| 30 | |
| 31 | |
| 32 | Verify Hostname Text Configuration |
| 33 | [Documentation] Verify hostname text is configurable from "network settings" |
| 34 | ... sub-menu. |
Sivas SRR | 125724a | 2018-06-15 05:32:20 -0500 | [diff] [blame^] | 35 | [Tags] Verify_Hostname_Text_Configuration |
Rahul Maheshwari | f7376af | 2018-06-11 00:46:36 -0500 | [diff] [blame] | 36 | |
| 37 | Input Text ${xpath_hostname_input} witherspoon1 |
| 38 | Click Element ${xpath_network_save_settings} |
| 39 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 40 | Click Element ${xpath_continue} |
| 41 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 42 | Page Should Contain witherspoon1 |
| 43 | |
| 44 | |
| 45 | *** Keywords *** |
| 46 | |
| 47 | Test Setup Execution |
| 48 | [Documentation] Do test case setup tasks. |
| 49 | |
| 50 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 51 | Click Element ${xpath_select_server_configuration} |
| 52 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 53 | Click Element ${xpath_select_network_settings} |
| 54 | Wait Until Page Contains Element ${xpath_network_config_ipv4_address} |
| 55 | |