Sushma M M | ef474f4 | 2020-07-29 16:25:39 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "LDAP" sub-menu of "Access control". |
| 4 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Sushma M M | ef474f4 | 2020-07-29 16:25:39 -0500 | [diff] [blame] | 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
Sushma M M | 2630299 | 2020-08-31 01:15:26 -0500 | [diff] [blame] | 14 | ${xpath_ldap_heading} //h1[text()="LDAP"] |
Rahul Maheshwari | 062dceb | 2021-01-19 04:16:30 -0600 | [diff] [blame] | 15 | ${xpath_enable_ldap_checkbox} //*[@data-test-id='ldap-checkbox-ldapAuthenticationEnabled'] |
| 16 | ${xpath_secure_ldap_checkbox} //*[@data-test-id='ldap-checkbox-secureLdapEnabled'] |
Sushma M M | ef474f4 | 2020-07-29 16:25:39 -0500 | [diff] [blame] | 17 | ${xpath_service_radio_button} //*[@data-test-id="ldap-radio-activeDirectoryEnabled"] |
| 18 | ${xpath_add_role_group_button} //button[contains(text(),'Add role group')] |
| 19 | |
Rahul Maheshwari | 062dceb | 2021-01-19 04:16:30 -0600 | [diff] [blame] | 20 | |
Sushma M M | ef474f4 | 2020-07-29 16:25:39 -0500 | [diff] [blame] | 21 | *** Test Cases *** |
| 22 | |
Sushma M M | 2630299 | 2020-08-31 01:15:26 -0500 | [diff] [blame] | 23 | Verify 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 M | ef474f4 | 2020-07-29 16:25:39 -0500 | [diff] [blame] | 30 | Verify 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 | |
| 38 | Verify 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 | |
| 50 | Verify 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 | |
| 61 | Test 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 |