diff --git a/01-TestCase/tsg_ui/ui_administration/AuditLogsCase.robot b/01-TestCase/tsg_ui/ui_administration/AuditLogsCase.robot index 9cee0e8..379ed75 100644 --- a/01-TestCase/tsg_ui/ui_administration/AuditLogsCase.robot +++ b/01-TestCase/tsg_ui/ui_administration/AuditLogsCase.robot @@ -26,9 +26,9 @@ AuditLogsResponsePage AuditLogsInsertScript [Tags] Positive UI Insert Script Administration AuditLogs CreateInsertScripts AuditLogsInsertScript ${path}insert_files\\Create-Insert Scripts-test.css css name - ${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span + ${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span EditInsertScripts ${id} EditAuditLogsInsertScript ${path}insert_files\\Create-Insert Scripts-test.css css id - click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span Delete Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait} AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog @@ -60,9 +60,9 @@ AuditLogsHijackFile AuditLogsTrafficMirrorProfile [Tags] Positive UI Traffic Mirror Profile Administration AuditLogs CreateTrafficMirrorProfiles AuditLogsTrafficMirrorProfile xpath=/html/body/div/div[1]/div[1]/ul/li[1] 88 name - ${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span + ${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span EditTrafficMirrorProfiles ${id} EditAuditLogsTrafficMirrorProfile xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 id - click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span DeletetrafficMirrorDel sleep ${sleep} AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog @@ -81,13 +81,13 @@ AuditLogsDecryptionProfile ... Allow HTTP/2=0 CreateDecryptionProfile AuditLogsDecryptionProfile name ${dict} sleep ${sleep_min} - ${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span + ${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span sleep ${sleep_min} ${dict1} Create Dictionary Common Name=1 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0 ... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0 ... Allow HTTP/2=0 EditDecryptionProfile ${id} EditAuditLogsDecryptionProfile id ${dict1} - click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span + click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span Delete Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait} AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog @@ -243,7 +243,7 @@ AuditLogsDPacketCapture ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div EditPacketCapture PacketCaptureEditSearchID IPV6 fe80::3cf8:a41c:122a:b3bd UDP Karaganda 20 20 8080 fe80::3cf8:a41c:122a:b3 80 sleep ${sleep} - click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/div/span/i[2] + click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/div/span/i[2] Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture diff --git a/01-TestCase/tsg_ui/ui_administration/LDAPServerCase.robot b/01-TestCase/tsg_ui/ui_administration/LDAPServerCase.robot index df6cfa4..4bd4b4c 100644 --- a/01-TestCase/tsg_ui/ui_administration/LDAPServerCase.robot +++ b/01-TestCase/tsg_ui/ui_administration/LDAPServerCase.robot @@ -38,11 +38,11 @@ EditLDAPServer LDAPServerClickOn/OffButton [Tags] Positive UI Administration LDAP Server AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer - LDAPServerSearch 9 id + LDAPServerSearch 1 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 + LDAPServerSearch 1 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 @@ -50,11 +50,11 @@ LDAPServerClickOn/OffButton LDAPServerClickADCAuthenticationButton [Tags] Positive UI Administration LDAP Server AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer - LDAPServerSearch 9 id + LDAPServerSearch 1 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 + LDAPServerSearch 1 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 @@ -66,10 +66,10 @@ LDAPServerPagingDisplay 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 + ${list} Create List 1234 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 + LDAPServerSearch 1234 name + Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span 1234 DeleteLDAPServer CreateLDAPServerNameMaxSize diff --git a/01-TestCase/tsg_ui/ui_administration/RolesCase.robot b/01-TestCase/tsg_ui/ui_administration/RolesCase.robot index 72444fd..d72b3a8 100644 --- a/01-TestCase/tsg_ui/ui_administration/RolesCase.robot +++ b/01-TestCase/tsg_ui/ui_administration/RolesCase.robot @@ -13,7 +13,7 @@ RolesCreateReadOnly CreateRoles Uizidonghua${a} 自动化测试 ${list} Wait Until Element Is Enabled id=profilesTabs_Profile_Insert ${sleep_Wait} RoleSearch Uizidonghua${a} - RolesVerification //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/div[1]/div/div/ul/li[2]/div/i ReadOnly + RolesVerification //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/div[1]/div/div/ul/li[2]/div/i ReadOnly sleep ${sleep_min} RolesDelete @@ -25,7 +25,7 @@ RolesCreateDisable CreateRoles Uizidonghua${a} 自动化测试 ${list} Wait Until Element Is Enabled id=profilesTabs_Profile_Insert ${sleep_Wait} RoleSearch Uizidonghua${a} - RolesVerification //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/div[1]/div/div/ul/li[1]/div/i Disable + RolesVerification //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/div[1]/div/div/ul/li[1]/div/i Disable RolesDelete RolesEditName @@ -67,7 +67,7 @@ RolesEditAuthority Click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr EditRoles Authority=1 Authorityxpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]/div/ul/li[4]/div/i RoleSearch RolesEditAuthority${a} - RolesVerification //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/div[1]/div/div/ul/li[4]/div/i Disable + RolesVerification //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/div[1]/div/div/ul/li[4]/div/i Disable RolesDelete RolesPagingDisplay @@ -78,7 +78,7 @@ RolesPagingDisplay RolesClickAllButton [Tags] Positive UI Administration Roles AdminOpenPages sidebarsystem_accounts profilesTabs_Profile_Insert - click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/label/span[1]/span + click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/label/span[1]/span sleep ${sleep_min} ${text1} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/td[1]/div/div/span/div/div/label/span[1] class ${text2} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[4]/td[1]/div/div/span/div/div/label/span[1] class @@ -238,12 +238,12 @@ RolesNotPoliciesAndSSLDecrptionExcelusionAndPolicyVerfyAndProxyTCPOptionAuthorit Login ${b} 111111 sleep ${sleep_min} AdminOpenPages sidebarProxy_Profiles profilesTabs_Profile_ResponsePages Amenu=children6 - click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input #点击搜索框 + click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input #点击搜索框 sleep ${sleep_min} click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] - input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input 897 + input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input 395 sleep ${sleep_min} - click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i + click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/i Wait Until Element Is Enabled id=quotefrequency ${sleep_Wait} click element id=quotefrequency sleep 3 diff --git a/01-TestCase/tsg_ui/ui_administration/UsersCase.robot b/01-TestCase/tsg_ui/ui_administration/UsersCase.robot index 48a2390..40ebf0a 100644 --- a/01-TestCase/tsg_ui/ui_administration/UsersCase.robot +++ b/01-TestCase/tsg_ui/ui_administration/UsersCase.robot @@ -69,8 +69,8 @@ UsersEdit UserTurnPage [Tags] Positive UI Administration Users Menu administration Accounts - AdminTurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/button[1] - ... //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/span[2]/div/input 2 //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div + AdminTurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/button[1] + ... //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/span[2]/div/input 2 //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div UserSwitchDisplayNumber [Tags] Positive UI Administration Users diff --git a/02-Keyword/tsg_ui/administration/Administration.robot b/02-Keyword/tsg_ui/administration/Administration.robot index 701ef39..c6a26c3 100644 --- a/02-Keyword/tsg_ui/administration/Administration.robot +++ b/02-Keyword/tsg_ui/administration/Administration.robot @@ -105,17 +105,17 @@ UserEdit UserSearchName [Arguments] ${name} ${type} - sleep ${sleep_min} - click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input + sleep ${sleep} + click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input sleep ${sleep} run keyword if "${type}"=="Name" run keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[3] ... AND sleep ${sleep_min} run keyword if "${type}"=="UserName" run keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] ... AND sleep ${sleep_min} sleep ${sleep} - input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name} + input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name} sleep ${sleep} - click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i + click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/i sleep ${sleep} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] sleep ${sleep} @@ -171,13 +171,13 @@ RolesVerification ... ${rolexpath}:权限在侧滑框的定位 ... ${role} : 权限 (Enable、ReadOnly、Disable) click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[3]/div/div/span/span - Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div ${sleep_Wait} + Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div ${sleep_Wait} ${text} Get Element Attribute xpath=${rolexpath} class ${role} Set Variable if "${role}" == "Enable" iconfont switch_i icon-Rolesenable ... "${role}" == "ReadOnly" iconfont switch_i icon-Rolesreadonly ... "${role}" == "Disable" iconfont switch_i icon-Rolesdisable sleep ${sleep_min} - click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/div[2]/div/button + click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/div[2]/div/button sleep ${sleep_min} Should Be Equal As Strings ${text} ${role} @@ -186,13 +186,13 @@ RoleSearch [Documentation] Roles页面搜索功能 ... ${name}:搜索条件name sleep ${sleep_min} - Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input + Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input sleep ${sleep_min} Click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] sleep ${sleep_min} - input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name} + input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name} sleep ${sleep_min} - Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i + Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/i sleep ${sleep} RolesDelete @@ -537,7 +537,7 @@ EditMailServer ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div/span sleep ${sleep_min} click element id=mailServerOk - sleep ${sleep_min} + sleep ${sleep} Login [Arguments] ${UserName} ${Password} @@ -576,7 +576,7 @@ AdminTurnPage sleep ${sleep} ${text4} get text xpath=${AssertXpath} run keyword if "${last}"=="null" run keywords sleep ${sleep_min} - ... AND Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/ul/li[last()] + ... AND Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[last()]/div/ul/li[last()] ... ELSE Click element xpath=${lastxpath} sleep ${sleep} ${text5} get text xpath=${AssertXpath} @@ -591,7 +591,7 @@ AdministrationPagingDisplay ... ${Number}: 设置页面显示数据条数 (20、5、30、50、100) ... ${last} 次关键字 当最后一页定位和其他页面不同时,传入非null的值 ... ${lastxpath} 当最后一页定位和其他页面不同时,传入最后一页的xpath 定位 - Mouse Over xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div/span/span/div/i + Mouse Over xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div/span/span/div/i sleep ${sleep_min} run keyword if "${Number}"=="30" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[2] @@ -604,7 +604,7 @@ AdministrationPagingDisplay sleep ${sleep_min} Click element xpath=/html/body/div[last()]/div[1]/div[2]/button sleep ${sleep} - ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/span[1] + ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/span[1] sleep ${sleep_min} ${a} Set Variable ${6} ${Quantity} StringSegmentation ${text} ${a} @@ -616,7 +616,7 @@ AdministrationPagingDisplay ${Page1} Evaluate ${quzheng}+${b} ${Page} Set Variable if "${quyu}" != "0" ${Page1} ${quzheng} sleep ${sleep_min} - ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div/div/ul/li[last()] + ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div/div/ul/li[last()] Should Be Equal As Strings ${text} ${Page} AuditLogs-PagingDisplay