blob: 00d2dace8d85e706850a1a1a1b5ba8ea730d3608 [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"]
Rahul Maheshwari062dceb2021-01-19 04:16:30 -060015${xpath_enable_ldap_checkbox} //*[@data-test-id='ldap-checkbox-ldapAuthenticationEnabled']
16${xpath_secure_ldap_checkbox} //*[@data-test-id='ldap-checkbox-secureLdapEnabled']
Sushma M Mef474f42020-07-29 16:25:39 -050017${xpath_service_radio_button} //*[@data-test-id="ldap-radio-activeDirectoryEnabled"]
18${xpath_add_role_group_button} //button[contains(text(),'Add role group')]
19
Rahul Maheshwari062dceb2021-01-19 04:16:30 -060020
Sushma M Mef474f42020-07-29 16:25:39 -050021*** Test Cases ***
22
Sushma M M26302992020-08-31 01:15:26 -050023Verify Navigation To LDAP Page
24 [Documentation] Verify navigation to LDAP page.
25 [Tags] Verify_Navigation_To_LDAP_Page
26
27 Page Should Contain Element ${xpath_ldap_heading}
28
29
Sushma M Mef474f42020-07-29 16:25:39 -050030Verify Existence Of All Sections In LDAP Page
31 [Documentation] Verify existence of all sections in LDAP page.
32 [Tags] Verify_Existence_Of_All_Sections_In_LDAP_Page
33
34 Page Should Contain Settings
35 Page Should Contain Role groups
36
37
38Verify Existence Of All Buttons In LDAP Page
39 [Documentation] Verify existence of all buttons in LDAP page.
40 [Tags] Verify_Existence_Of_All_Buttons_In_LDAP_Page
41
42 # Buttons under settings section.
43 Page Should Contain Element ${xpath_service_radio_button}
44 Page Should Contain Element ${xpath_save_settings_button}
45
46 # Buttons under role groups section.
47 Page Should Contain Element ${xpath_add_role_group_button}
48
49
50Verify Existence Of All Checkboxes In LDAP Page
51 [Documentation] Verify existence of all checkboxes in LDAP page.
52 [Tags] Verify_Existence_Of_All_Checkboxes_In_LDAP_Page
53
54 # Checkboxes under settings section.
55 Page Should Contain Element ${xpath_enable_ldap_checkbox}
56 Page Should Contain Element ${xpath_secure_ldap_checkbox}
57
58
59*** Keywords ***
60
61Test Setup Execution
62 [Documentation] Do test case setup tasks.
63
64 # Navigate to https://xx.xx.xx.xx/#/access-control/ldap LDAP page.
65
66 Click Element ${xpath_access_control_menu}
67 Click Element ${xpath_ldap_sub_menu}
68 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain ldap