Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Manage user account" sub-menu of |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 4 | ... "Users". |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 5 | |
| 6 | Resource ../../lib/resource.robot |
| 7 | |
| 8 | Suite Setup Launch Browser And Login OpenBMC GUI |
Rahul Maheshwari | 43333ff | 2018-11-26 23:18:36 -0600 | [diff] [blame] | 9 | Suite Teardown Close Browser |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 10 | Test Setup Test Setup Execution |
| 11 | |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 12 | |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 13 | *** Variables *** |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 14 | |
| 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 SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 29 | |
| 30 | *** Test Cases *** |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 31 | |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 32 | Verify 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 SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 39 | |
| 40 | |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 41 | Verify 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 SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 44 | |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 45 | # 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 SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 55 | |
| 56 | |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 57 | Verify 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 SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 60 | |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 61 | # 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 SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 71 | |
| 72 | *** Keywords *** |
| 73 | |
| 74 | Test Setup Execution |
| 75 | [Documentation] Do test case setup tasks. |
| 76 | |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 77 | Click Element ${xpath_select_users} |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 78 | Wait Until Page Contains Element ${xpath_select_manage_users} |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 79 | Click Element ${xpath_select_manage_users} |
Rahul Maheshwari | 39785c7 | 2019-04-02 20:03:54 -0500 | [diff] [blame] | 80 | Wait Until Page Contains User account information |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 81 | |