*** Settings *** Force Tags tsg-ui LDAP Server Resource ../../../02-Keyword/tsg_ui/administration/Administration.robot Library OperatingSystem *** Test Cases *** CreateLDAPServer [Tags] Positive UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 CreateLDAPServer ${list} LDAPServerSearch ${TEST NAME} name Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DeleteLDAPServer CreateLDAPServerEnableANDADCAuthenticationOpen [Tags] Positive UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 LDAPVerificationADC 192.168.40.120 close CreateLDAPServer ${list} open open LDAPServerSearch ${TEST NAME} name Assertion-ElementAttributes //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[7]/div/div/span/div el-switch is-checked class Assertion-ElementAttributes //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/span/div el-switch is-checked class DeleteLDAPServer LDAPVerificationADC 192.168.40.120 open EditLDAPServer [Tags] Positive UI Administration LDAP Server ${list} Create List CreateLDAPServer 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 ${list1} Create List ${TEST NAME} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 22 CreateLDAPServer ${list} LDAPServerSearch CreateLDAPServer name ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span EditLDAPServer ${list1} open LDAPServerSearch ${id} id Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DeleteLDAPServer LDAPServerClickOn/OffButton [Tags] Positive UI Administration LDAP Server AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer LDAPServerSearch 9 id ${text1} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[7]/div/div/span/div class click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[7]/div/div/span/div/span AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer LDAPServerSearch 9 id ${text2} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[7]/div/div/span/div class Should Not Be Equal ${text1} ${text2} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[7]/div/div/span/div/span LDAPServerClickADCAuthenticationButton [Tags] Positive UI Administration LDAP Server AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer LDAPServerSearch 9 id ${text1} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[9]/div/div/span/div class click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[9]/div/div/span/div/span AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer LDAPServerSearch 9 id ${text2} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[9]/div/div/span/div class Should Not Be Equal ${text1} ${text2} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[9]/div/div/span/div/span LDAPServer [Tags] Positive UI Administration LDAP Server AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer AuditLogs-PagingDisplay 50 CreateLDAPServerNameMinSize [Tags] Boundary UI Administration LDAP Server ${list} Create List 1 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 CreateLDAPServer ${list} LDAPServerSearch 1 name Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span 1 DeleteLDAPServer CreateLDAPServerNameMaxSize [Tags] Boundary UI Administration LDAP Server ${name} Set Variable CreateLDAPServerNameMaxSizeCreateLDAPServerNameMaxSizeCreateLDAPServerNameMaxSizeCreateLDAPServerNameMaxSizeCreateLDAPServerName ${list} Create List ${name} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 CreateLDAPServer ${list} LDAPServerSearch ${name} name Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${name} DeleteLDAPServer CreateLDAPServerNameSpecialChar [Tags] Boundary UI Administration LDAP Server ${name} Set Variable 中文+absc+моряков+@#¥%……&* ${list} Create List ${name} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 CreateLDAPServer ${list} LDAPServerSearch ${name} name Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${name} DeleteLDAPServer CreateLDAPServerConnectionTimeoutMinimum [Tags] Boundary UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 1 CreateLDAPServer ${list} LDAPServerSearch ${TEST NAME} name Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DeleteLDAPServer CreateLDAPServerConnectionTimeoutMax [Tags] Boundary UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 60 CreateLDAPServer ${list} LDAPServerSearch ${TEST NAME} name Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DeleteLDAPServer CreateLDAPServerConnectionTimeoutExceedMax [Tags] Boundary UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 60 CreateLDAPServer ${list} LDAPServerSearch ${TEST NAME} name Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DeleteLDAPServer CreateLDAPServerErrorHost [Tags] Negtive UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.12 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 CreateLDAPServer ${list} NoOKButton=2 Assertion /html/body/div[last()]/p Test connection failed CreateLDAPServerErrorPort [Tags] Negtive UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.12 38 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21 CreateLDAPServer ${list} NoOKButton=2 Assertion /html/body/div[last()]/p Test connection failed CreateLDAPServerErrorUserName [Tags] Negtive UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.12 389 test uid dc=bifang,dc=com 111111 21 CreateLDAPServer ${list} NoOKButton=2 Assertion /html/body/div[last()]/p Test connection failed CreateLDAPServerErrorPassword [Tags] Negtive UI Administration LDAP Server ${list} Create List ${TEST NAME} 192.168.40.12 389 cn=root,dc=bifang,dc=com ui dc=bifang,dc 11 21 CreateLDAPServer ${list} NoOKButton=2 Assertion /html/body/div[last()]/p Test connection failed CreateLDAPServerPortExceedMax [Tags] Negtive UI Administration LDAP Server AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer click element id=ldapAdd sleep 1 input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div[1]/input 65536 click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[1]/label sleep 1 Assertion //*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div[2] save LDAP config port cannot be empty or must between 1 ~ 65535.