blob: afc5771c7479494dccbb1e718444a2de7b611c87 [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"]
20
21*** Test Cases ***
22
23Verify 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
32Verify Hostname Text Configuration
33 [Documentation] Verify hostname text is configurable from "network settings"
34 ... sub-menu.
Sivas SRR125724a2018-06-15 05:32:20 -050035 [Tags] Verify_Hostname_Text_Configuration
Rahul Maheshwarif7376af2018-06-11 00:46:36 -050036
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
47Test 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