blob: 84e1c0086fca3825f912522c133cb595f4bff51a [file] [log] [blame]
Sushma M Mef474f42020-07-29 16:25:39 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "LDAP" sub-menu of "Access control".
4
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Sushma M Mef474f42020-07-29 16:25:39 -05006
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13
Sushma M M26302992020-08-31 01:15:26 -050014${xpath_ldap_heading} //h1[text()="LDAP"]
Sushma M Mef474f42020-07-29 16:25:39 -050015${xpath_enable_ldap_checkbox} //*[@id='enable-ldap-auth']
16${xpath_secure_ldap_checkbox} //*[@id='enable-secure-ldap']
17${xpath_service_radio_button} //*[@data-test-id="ldap-radio-activeDirectoryEnabled"]
18${xpath_add_role_group_button} //button[contains(text(),'Add role group')]
19
20*** Test Cases ***
21
Sushma M M26302992020-08-31 01:15:26 -050022Verify Navigation To LDAP Page
23 [Documentation] Verify navigation to LDAP page.
24 [Tags] Verify_Navigation_To_LDAP_Page
25
26 Page Should Contain Element ${xpath_ldap_heading}
27
28
Sushma M Mef474f42020-07-29 16:25:39 -050029Verify Existence Of All Sections In LDAP Page
30 [Documentation] Verify existence of all sections in LDAP page.
31 [Tags] Verify_Existence_Of_All_Sections_In_LDAP_Page
32
33 Page Should Contain Settings
34 Page Should Contain Role groups
35
36
37Verify Existence Of All Buttons In LDAP Page
38 [Documentation] Verify existence of all buttons in LDAP page.
39 [Tags] Verify_Existence_Of_All_Buttons_In_LDAP_Page
40
41 # Buttons under settings section.
42 Page Should Contain Element ${xpath_service_radio_button}
43 Page Should Contain Element ${xpath_save_settings_button}
44
45 # Buttons under role groups section.
46 Page Should Contain Element ${xpath_add_role_group_button}
47
48
49Verify Existence Of All Checkboxes In LDAP Page
50 [Documentation] Verify existence of all checkboxes in LDAP page.
51 [Tags] Verify_Existence_Of_All_Checkboxes_In_LDAP_Page
52
53 # Checkboxes under settings section.
54 Page Should Contain Element ${xpath_enable_ldap_checkbox}
55 Page Should Contain Element ${xpath_secure_ldap_checkbox}
56
57
58*** Keywords ***
59
60Test Setup Execution
61 [Documentation] Do test case setup tasks.
62
63 # Navigate to https://xx.xx.xx.xx/#/access-control/ldap LDAP page.
64
65 Click Element ${xpath_access_control_menu}
66 Click Element ${xpath_ldap_sub_menu}
67 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain ldap