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 |
| 4 | ... "Users". |
| 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 | |
| 12 | *** Variables *** |
| 13 | ${xpath_select_users} //*[@id="nav__top-level"]/li[5]/button/span[1] |
| 14 | ${xpath_select_manage_users} //a[@href='#/users/manage-accounts'] |
| 15 | ${xpath_current_password} //*[@id="user-manage__current-password"] |
| 16 | ${xpath_new_password} //*[@id="user-manage__new-password"] |
| 17 | ${xpath_retype_new_password} //*[@id="user-manage__verify-password"] |
| 18 | ${xpath_save_button} //*[@id="user-accounts"]/section/form/div/button |
| 19 | |
| 20 | *** Test Cases *** |
| 21 | Verify Select Manage Users Account From Users |
| 22 | [Documentation] Verify ability to select "Manage Users Account" sub-menu |
| 23 | ... option of "Users". |
| 24 | [Tags] Verify_Select_Manage_Users_Account_From_Users |
| 25 | |
| 26 | Wait Until Page Contains Manage user account |
| 27 | Page should contain Change password |
| 28 | |
| 29 | |
| 30 | Verify Existence Of All Password Input Boxes |
| 31 | [Documentation] Verify all password input boxes exists. |
| 32 | [Tags] Verify_Existence_Of_All_Password_Input_Boxes |
| 33 | |
| 34 | Page Should Contain Element ${xpath_current_password} |
| 35 | Page Should Contain Element ${xpath_new_password} |
| 36 | Page Should Contain Element ${xpath_retype_new_password} |
| 37 | |
| 38 | |
| 39 | Verify Existence Of Save Button |
| 40 | [Documentation] Verify save button exists. |
| 41 | [Tags] Verify_Existence_Of_Save_Button |
| 42 | |
| 43 | Page Should Contain Element ${xpath_save_button} |
| 44 | |
| 45 | *** Keywords *** |
| 46 | |
| 47 | Test Setup Execution |
| 48 | [Documentation] Do test case setup tasks. |
| 49 | |
| 50 | Page Should Contain Element ${xpath_select_users} |
Rahul Maheshwari | f6a6db0 | 2018-11-30 05:00:35 -0600 | [diff] [blame] | 51 | Focus ${xpath_select_users} |
Sivas SRR | 9aadc26 | 2018-05-10 12:16:03 -0500 | [diff] [blame] | 52 | Click Element ${xpath_select_users} |
| 53 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 54 | Click Element ${xpath_select_manage_users} |
| 55 | |