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 | |
| 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 *** |
| 13 | |
| 14 | ${xpath_enable_ldap_checkbox} //*[@id='enable-ldap-auth'] |
| 15 | ${xpath_secure_ldap_checkbox} //*[@id='enable-secure-ldap'] |
| 16 | ${xpath_service_radio_button} //*[@data-test-id="ldap-radio-activeDirectoryEnabled"] |
| 17 | ${xpath_add_role_group_button} //button[contains(text(),'Add role group')] |
| 18 | |
| 19 | *** Test Cases *** |
| 20 | |
| 21 | Verify Existence Of All Sections In LDAP Page |
| 22 | [Documentation] Verify existence of all sections in LDAP page. |
| 23 | [Tags] Verify_Existence_Of_All_Sections_In_LDAP_Page |
| 24 | |
| 25 | Page Should Contain Settings |
| 26 | Page Should Contain Role groups |
| 27 | |
| 28 | |
| 29 | Verify Existence Of All Buttons In LDAP Page |
| 30 | [Documentation] Verify existence of all buttons in LDAP page. |
| 31 | [Tags] Verify_Existence_Of_All_Buttons_In_LDAP_Page |
| 32 | |
| 33 | # Buttons under settings section. |
| 34 | Page Should Contain Element ${xpath_service_radio_button} |
| 35 | Page Should Contain Element ${xpath_save_settings_button} |
| 36 | |
| 37 | # Buttons under role groups section. |
| 38 | Page Should Contain Element ${xpath_add_role_group_button} |
| 39 | |
| 40 | |
| 41 | Verify Existence Of All Checkboxes In LDAP Page |
| 42 | [Documentation] Verify existence of all checkboxes in LDAP page. |
| 43 | [Tags] Verify_Existence_Of_All_Checkboxes_In_LDAP_Page |
| 44 | |
| 45 | # Checkboxes under settings section. |
| 46 | Page Should Contain Element ${xpath_enable_ldap_checkbox} |
| 47 | Page Should Contain Element ${xpath_secure_ldap_checkbox} |
| 48 | |
| 49 | |
| 50 | *** Keywords *** |
| 51 | |
| 52 | Test Setup Execution |
| 53 | [Documentation] Do test case setup tasks. |
| 54 | |
| 55 | # Navigate to https://xx.xx.xx.xx/#/access-control/ldap LDAP page. |
| 56 | |
| 57 | Click Element ${xpath_access_control_menu} |
| 58 | Click Element ${xpath_ldap_sub_menu} |
| 59 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain ldap |