blob: 25e4012617c7a6e781dd96d8f7c6dc552569d801 [file] [log] [blame]
Sushma M M87a5b2d2020-07-31 00:58:48 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Local user management" sub-menu of "Access control".
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
Sushma M M26302992020-08-31 01:15:26 -050013${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 M87a5b2d2020-07-31 00:58:48 -050019
20*** Test Cases ***
21
Sushma M M26302992020-08-31 01:15:26 -050022Verify 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 M87a5b2d2020-07-31 00:58:48 -050029Verify 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
36Verify 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
43Verify 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
55Test 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