blob: be1694bacb36553225f8eda803165a138a404d43 [file] [log] [blame]
Sivas SRR9aadc262018-05-10 12:16:03 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Manage user account" sub-menu of
Rahul Maheshwari39785c72019-04-02 20:03:54 -05004... "Users".
Sivas SRR9aadc262018-05-10 12:16:03 -05005
6Resource ../../lib/resource.robot
7
8Suite Setup Launch Browser And Login OpenBMC GUI
Rahul Maheshwari43333ff2018-11-26 23:18:36 -06009Suite Teardown Close Browser
Sivas SRR9aadc262018-05-10 12:16:03 -050010Test Setup Test Setup Execution
11
Rahul Maheshwari39785c72019-04-02 20:03:54 -050012
Sivas SRR9aadc262018-05-10 12:16:03 -050013*** Variables ***
Rahul Maheshwari39785c72019-04-02 20:03:54 -050014
15${xpath_input_username} //input[@name='UserName']
16${xpath_input_password} //input[@name='Password']
17${xpath_input_retype_password} //input[@name='VerifyPassword']
18${xpath_input_user_role} //select[@id='user-manage__role']
19${xpath_input_enabled_checkbox} //input[@name='Enabled']
20${xpath_input_lockout_time} //input[@id='lockoutTime']
21${xpath_input_failed_login_attempts} //input[@id='lockoutThreshold']
22${xpath_select_manage_users} //a[contains(text(), "Manage user account")]
23${xpath_select_users} //button[contains(@class, "users")]
24${xpath_save_setting_button} //button[text() ="Save settings"]
25${xpath_create_user_button} //button[text() ="Create User"]
26${xpath_edit_button} //button[text() ="Edit"]
27${xpath_delete_button} //button[text() ="Delete"]
28
Sivas SRR9aadc262018-05-10 12:16:03 -050029
30*** Test Cases ***
Sivas SRR9aadc262018-05-10 12:16:03 -050031
Rahul Maheshwari39785c72019-04-02 20:03:54 -050032Verify Existence Of All Section In User Page
33 [Documentation] Verify existence of all sections in user page..
34 [Tags] Verify_Existence_Of_All_Section_In_User_Page
35
36 Page should contain User account properties
37 Page should contain User account information
38 Page should contain User account settings
Sivas SRR9aadc262018-05-10 12:16:03 -050039
40
Rahul Maheshwari39785c72019-04-02 20:03:54 -050041Verify Existence Of All Input Boxes In User Page
42 [Documentation] Verify existence of all input boxes in user page.
43 [Tags] Verify_Existence_Of_All_Input_Boxes_In_User_Page
Sivas SRR9aadc262018-05-10 12:16:03 -050044
Rahul Maheshwari39785c72019-04-02 20:03:54 -050045 # Input boxes under user account settings
46 Page Should Contain Element ${xpath_input_username}
47 Page Should Contain Element ${xpath_input_password}
48 Page Should Contain Element ${xpath_input_retype_password}
49 Page Should Contain Element ${xpath_input_user_role}
50 Page Should Contain Element ${xpath_input_enabled_checkbox}
51
52 # Input boxes under user account properties
53 Page Should Contain Element ${xpath_input_lockout_time}
54 Page Should Contain Element ${xpath_input_failed_login_attempts}
Sivas SRR9aadc262018-05-10 12:16:03 -050055
56
Rahul Maheshwari39785c72019-04-02 20:03:54 -050057Verify Existence Of All Button In User Page
58 [Documentation] Verify existence of all botton in user page.
59 [Tags] Verify_Existence_Of_All_Button_In_User_Page
Sivas SRR9aadc262018-05-10 12:16:03 -050060
Rahul Maheshwari39785c72019-04-02 20:03:54 -050061 # Buttons under user account properties
62 Page Should Contain Element ${xpath_save_setting_button}
63
64 # Buttons under user account settings
65 Page Should Contain Element ${xpath_create_user_button}
66
67 # Buttons under user account properties
68 Page Should Contain Element ${xpath_edit_button}
69 Page Should Contain Element ${xpath_delete_button}
70
Sivas SRR9aadc262018-05-10 12:16:03 -050071
72*** Keywords ***
73
74Test Setup Execution
75 [Documentation] Do test case setup tasks.
76
Sivas SRR9aadc262018-05-10 12:16:03 -050077 Click Element ${xpath_select_users}
Rahul Maheshwari39785c72019-04-02 20:03:54 -050078 Wait Until Page Contains Element ${xpath_select_manage_users}
Sivas SRR9aadc262018-05-10 12:16:03 -050079 Click Element ${xpath_select_manage_users}
Rahul Maheshwari39785c72019-04-02 20:03:54 -050080 Wait Until Page Contains User account information
Sivas SRR9aadc262018-05-10 12:16:03 -050081