blob: 4b05c9938c50cf96842d75b7d8311be9309fe378 [file] [log] [blame]
Rahul Maheshwarif7376af2018-06-11 00:46:36 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Network settings" sub-menu of
4... "Server configuration".
5
6Resource ../../lib/resource.robot
7
8Suite Setup Launch Browser And Login OpenBMC GUI
9Suite Teardown Logout And Close Browser
10Test 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 Maheshwari88f56ec2018-06-18 05:08:40 -050020${xpath_default_gateway_input} //*[@id="net-config__domain"]
21${xpath_mac_address_input} //*[@id="net-config__host"]
22
Rahul Maheshwarif7376af2018-06-11 00:46:36 -050023
24*** Test Cases ***
25
26Verify 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
35Verify Hostname Text Configuration
36 [Documentation] Verify hostname text is configurable from "network settings"
37 ... sub-menu.
Sivas SRR125724a2018-06-15 05:32:20 -050038 [Tags] Verify_Hostname_Text_Configuration
Rahul Maheshwarif7376af2018-06-11 00:46:36 -050039
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 Maheshwari88f56ec2018-06-18 05:08:40 -050048Verify 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
57Verify 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 Maheshwarif7376af2018-06-11 00:46:36 -050066*** Keywords ***
67
68Test 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