Sushma M M | 87a5b2d | 2020-07-31 00:58:48 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Local user management" sub-menu of "Access control". |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | |
| 12 | *** Variables *** |
Sushma M M | 2630299 | 2020-08-31 01:15:26 -0500 | [diff] [blame] | 13 | ${xpath_local_user_management_heading } //h1[text()="Local user management"] |
| 14 | ${xpath_select_user} //input[contains(@class,"custom-control-input")] |
| 15 | ${xpath_account_policy} //button[contains(text(),'Account policy settings')] |
| 16 | ${xpath_add_user} //button[contains(text(),'Add user')] |
| 17 | ${xpath_edit_user} //button[@aria-label="Edit user"] |
| 18 | ${xpath_delete_user} //button[@aria-label="Delete user"] |
Sushma M M | 87a5b2d | 2020-07-31 00:58:48 -0500 | [diff] [blame] | 19 | |
| 20 | *** Test Cases *** |
| 21 | |
Sushma M M | 2630299 | 2020-08-31 01:15:26 -0500 | [diff] [blame] | 22 | Verify Navigation To Local User Management Page |
| 23 | [Documentation] Verify navigation to local user management page. |
| 24 | [Tags] Verify_Navigation_To_Local_User_Management_Page |
| 25 | |
| 26 | Page Should Contain Element ${xpath_local_user_management_heading} |
| 27 | |
| 28 | |
Sushma M M | 87a5b2d | 2020-07-31 00:58:48 -0500 | [diff] [blame] | 29 | Verify Existence Of All Sections In Local User Management Page |
| 30 | [Documentation] Verify existence of all sections in local user management page. |
| 31 | [Tags] Verify_Existence_Of_All_Sections_In_Local_User_Management_Page |
| 32 | |
| 33 | Page should contain View privilege role descriptions |
| 34 | |
| 35 | |
| 36 | Verify Existence Of All Input Boxes In Local User Management Page |
| 37 | [Documentation] Verify existence of all sections in Manage Power Usage page. |
| 38 | [Tags] Verify_Existence_Of_All_Input_Boxes_In_Local_User_Management_Page |
| 39 | |
| 40 | Page Should Contain Checkbox ${xpath_select_user} |
| 41 | |
| 42 | |
| 43 | Verify Existence Of All Buttons In Local User Management Page |
| 44 | [Documentation] Verify existence of all buttons in local user management page. |
| 45 | [Tags] Verify_Existence_Of_All_Buttons_In_Local_User_Management_Page |
| 46 | |
| 47 | Page should contain Button ${xpath_account_policy} |
| 48 | Page should contain Button ${xpath_add_user} |
| 49 | Page Should Contain Button ${xpath_edit_user} |
| 50 | Page Should Contain Button ${xpath_delete_user} |
| 51 | |
| 52 | |
| 53 | *** Keywords *** |
| 54 | |
| 55 | Test Setup Execution |
| 56 | [Documentation] Do test case setup tasks. |
| 57 | |
| 58 | # Navigate to https://xx.xx.xx.xx/#/access-control/local-user-management Local users page. |
| 59 | |
| 60 | Click Element ${xpath_access_control_menu} |
| 61 | Click Element ${xpath_local_user_management_sub_menu} |
| 62 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain local-user-management |