From b6475a14fcdc98c583fee2335dc499a24a5d23b3 Mon Sep 17 00:00:00 2001 From: byb11 Date: Fri, 5 Mar 2021 17:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8F=96=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=8F=98=E9=87=8F=E5=88=B0bifangapivariable.txt?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E5=B0=86Settings=E5=92=8CAdministeration?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=E4=B8=AD=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../administration/Administration.robot | 454 ++-- 02-Keyword/tsg_ui/setting/Settings.robot | 1825 +++++++++-------- 03-Variable/BifangApiVariable.txt | 17 +- 3 files changed, 1150 insertions(+), 1146 deletions(-) diff --git a/02-Keyword/tsg_ui/administration/Administration.robot b/02-Keyword/tsg_ui/administration/Administration.robot index fff99a0..660cbed 100644 --- a/02-Keyword/tsg_ui/administration/Administration.robot +++ b/02-Keyword/tsg_ui/administration/Administration.robot @@ -13,112 +13,112 @@ AdminOpenPages ... ${SecondaryMenu}:二级菜单 ... ${Three-levelMenu}:三级菜单 ... ${Targeting} :三级菜单 定位方式 默认不输入为id - run keyword if "${Amenu}"=="null" run keywords sleep 1 + run keyword if "${Amenu}"=="null" run keywords sleep ${sleep_min} ... AND click element id=children7 ... ELSE click element id=${Amenu} - Sleep 1 + sleep ${sleep_min} click element id=${SecondaryMenu} - sleep 1 - run keyword if "${Targeting}"=="null" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Targeting}"=="null" run keywords sleep ${sleep_min} ... AND click element id=${Three-levelMenu} - run keyword if "${Targeting}"=="xpath" run keywords sleep 1 + run keyword if "${Targeting}"=="xpath" run keywords sleep ${sleep_min} ... AND click element ${Targeting}=${Three-levelMenu} - sleep 1 + sleep ${sleep_min} UserCreatePage [Arguments] ${name} ${username} ${accPasswd} ${Required_Password_Change} ${day} ${accEnable} ${role} Menu administration Accounts Wait Until Element Is Enabled id=userAdd 10 Click element id=userAdd - sleep 2 + sleep ${sleep} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${name} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div[1]/input ${username} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${accPasswd} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${accPasswd} - sleep 1 + sleep ${sleep_min} run keyword if "${accEnable}"=="close" run keywords click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log 不操作 - sleep 1 + sleep ${sleep_min} run keyword if "${Required_Password_Change}"=="open" Run Keywords click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div/input ${day} ... ELSE log 不开启密码过期验证 Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[last()]/div/div/div/span/span/i - sleep 1 + sleep ${sleep_min} Execute Javascript window.scrollTo(0, document.body.scrollHeight) - sleep 1 + sleep ${sleep_min} click element //span[.="${role}"] - sleep 1 + sleep ${sleep_min} click button xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] - Wait Until Element Is Enabled id=profilesTabs_Profile_ResponsePages 20 + Wait Until Element Is Enabled id=profilesTabs_Profile_ResponsePages ${sleep_Wait} UserCreatePageErrorVerification [Arguments] ${name} ${username} ${accPasswd} ${Required_Password_Change} ${day} ${accEnable} ${role} Menu administration Accounts Wait Until Element Is Enabled id=userAdd 10 Click element id=userAdd - sleep 2 + sleep ${sleep} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${name} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div[1]/input ${username} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${accPasswd} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${accPasswd} - sleep 1 + sleep ${sleep_min} run keyword if "${accEnable}"=="close" run keywords click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log 不操作 - sleep 1 + sleep ${sleep_min} run keyword if "${Required_Password_Change}"=="open" Run Keywords click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div/input ${day} ... ELSE log 不开启密码过期验证 Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[last()]/div/div/div/span/span/i - sleep 1 + sleep ${sleep_min} Execute Javascript window.scrollTo(0, document.body.scrollHeight) - sleep 1 + sleep ${sleep_min} click element //span[.="${role}"] - sleep 1 + sleep ${sleep_min} click button xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] - sleep 2 + sleep ${sleep} UserEdit [Arguments] ${password} ${enable} - Sleep 2 + sleep ${sleep} click element id=userEdit - Sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${password} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${password} - Sleep 1 + sleep ${sleep_min} run keyword if "${enable}"=="close" run keywords click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log 不操作 - sleep 1 + sleep ${sleep_min} click button xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] - sleep 2 + sleep ${sleep} UserSearchName [Arguments] ${name} ${type} - sleep 1 + 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 2 + sleep ${sleep} run keyword if "${type}"=="Name" run keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[3] - ... AND sleep 1 + ... 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 1 - sleep 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} - sleep 2 + sleep ${sleep} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i - sleep 2 + sleep ${sleep} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 2 + sleep ${sleep} CreateRoles [Arguments] ${name} ${description} ${list} @@ -126,44 +126,44 @@ CreateRoles ... ${name}:角色权限名称 ... ${description}:备注 ... ${list}:权限定位列表 - sleep 1 + sleep ${sleep_min} Click element id=children7 - sleep 1 + sleep ${sleep_min} Click element id=sidebarsystem_accounts - sleep 1 + sleep ${sleep_min} Click element id=profilesTabs_Profile_Insert - sleep 1 + sleep ${sleep_min} Click element id=app_create - sleep 2 + sleep ${sleep} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${name} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/input ${description} - sleep 1 + sleep ${sleep_min} FOR ${i} IN @{list} log ${i} Execute Javascript window.scrollTo(0, document.body.scrollHeight) click element xpath=${i} - sleep 1 + sleep ${sleep_min} END click element id=rolesOk - sleep 1 + sleep ${sleep_min} EditRoles [Arguments] ${name}=null ${description}=null ${Authority}=null ${Authorityxpath}=null - sleep 1 + sleep ${sleep_min} click element id=appEdit - Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1] 20 - run keyword if "${name}" != "null" run keywords sleep 1 + Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1] ${sleep_Wait} + run keyword if "${name}" != "null" run keywords sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${name} ... ELSE log name不修改 - run keyword if "${description}" != "null" run keywords sleep 1 + run keyword if "${description}" != "null" run keywords sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/input ${description} ... ELSE log description不修改 - run keyword if "${Authority}" != "null" run keywords sleep 1 + run keyword if "${Authority}" != "null" run keywords sleep ${sleep_min} ... AND click element xpath=${Authorityxpath} ... ELSE log 权限不修改 - sleep 1 + sleep ${sleep_min} click element id=rolesOk - sleep 1 + sleep ${sleep_min} RolesVerification [Arguments] ${rolexpath} ${role} @@ -171,37 +171,37 @@ 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 20 + Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/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 1 + 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 - sleep 1 + sleep ${sleep_min} Should Be Equal As Strings ${text} ${role} RoleSearch [Arguments] ${name} [Documentation] Roles页面搜索功能 ... ${name}:搜索条件name - sleep 1 + 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 1 + sleep ${sleep_min} Click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] - sleep 1 + 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} - sleep 1 + sleep ${sleep_min} Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i - sleep 2 + sleep ${sleep} RolesDelete Click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} Click element id=appDel - sleep 1 + sleep ${sleep_min} Click element xpath=/html/body/div/div/div[3]/button[2] - sleep 1 + sleep ${sleep_min} AuditLogsSearch [Arguments] ${id} ${TargetType} ${ip}=null @@ -209,70 +209,70 @@ AuditLogsSearch ... ${id} :操作对象的id ... ${TargetType}:类型 ... ${ip}:ip不输入默认为测试机IP - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input - sleep 2 + sleep ${sleep} click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[3]/div/input ${id} - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] - sleep 2 - run keyword if "${ip}" == "null" run keywords sleep 1 + sleep ${sleep} + run keyword if "${ip}" == "null" run keywords sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[2]/div[3]/div/input ${testClentIP} - ... ELSE IF "${ip}" != "null" run keywords sleep 1 + ... ELSE IF "${ip}" != "null" run keywords sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[2]/div[3]/div/input ${ip} - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] - sleep 2 + sleep ${sleep} Execute Javascript window.scrollTo(0, document.body.scrollHeight) click element xpath=/html/body/div/div[1]/div[1]/ul/li/span[contains(text(), "${TargetType}")] - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i - sleep 2 + sleep ${sleep} AuditLogsSearch-NotID [Arguments] ${TargetType} ${ip}=null [Documentation] ... ${TargetType}:类型 ... ${ip}:ip不输入默认为测试机IP - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input - sleep 2 + sleep ${sleep} click element xpath=/html/body/div/div[1]/div[1]/ul/li[3] - sleep 1 - run keyword if "${ip}" == "null" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${ip}" == "null" run keywords sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[3]/div/input ${testClentIP} - ... ELSE IF "${ip}" != "null" run keywords sleep 1 + ... ELSE IF "${ip}" != "null" run keywords sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[3]/div/input ${ip} - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} click element xpath=/html/body/div/div[1]/div[1]/ul/li[3] - sleep 1 + sleep ${sleep_min} Execute Javascript window.scrollTo(0, document.body.scrollHeight) click element xpath=/html/body/div/div[1]/div[1]/ul/li/span[contains(text(), "${TargetType}")] - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i - sleep 2 + sleep ${sleep} LoginLogsSearch [Arguments] ${Operator} - sleep 2 + sleep ${sleep} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input - sleep 1 + sleep ${sleep_min} click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] - sleep 2 + sleep ${sleep} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[3]/div/div/input ${Operator} - sleep 2 + sleep ${sleep} click element xpath=/html/body/div/div/div/ul/li/span[contains(text(), "${Operator}")] - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i - sleep 2 + sleep ${sleep} CreateLDAPServer [Arguments] ${list} ${Enbale}=close ${ADCAuthentication}=close ${NoOKButton}=1 @@ -281,99 +281,99 @@ CreateLDAPServer ... ${Password}:密码 ${ConnectionTimeout}:链接超时时间 ${Enbale};是否生效默认为关闭(open开启) ${ADCAuthentication}:ADC认证默认关闭(open开启) ${NoOKButton}=1不点击OK按钮 AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer click element id=ldapAdd - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${list}[0] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[2]/div/div[1]/input ${list}[1] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div/input ${list}[2] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[4]/div/div[1]/input ${list}[3] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div[1]/input ${list}[4] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div[2]/input ${list}[5] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[6]/div/div/input ${list}[6] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[8]/div/div/div/input ${list}[7] - sleep 1 - run keyword if "${Enbale}"!= "close" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Enbale}"!= "close" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div/span - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log 不开启Enable按钮 - run keyword if "${ADCAuthentication}"!= "close" run keywords sleep 1 + run keyword if "${ADCAuthentication}"!= "close" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[9]/div/div/span - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log 不开启ADCAuthentication按钮 click element id=ldapTestConnection - Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20 - run keyword if "${NoOKButton}"== "1" run keywords sleep 1 + Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait} + run keyword if "${NoOKButton}"== "1" run keywords sleep ${sleep_min} ... AND click element id=ldapAddSuccess - sleep 2 + sleep ${sleep} EditLDAPServer [Arguments] ${list} ${Enbale}=close ${ADCAuthentication}=close [Documentation] ... ${Name}:LDAP服务器名称 ${Host}:主机地址 ${Port}:端口号 ${UserName} :用户名 ${UserMapper-prefix}:用户映射左匹配 ${UserMapper-suffix}:用户映射器右匹配 ... ${Password}:密码 ${ConnectionTimeout}:链接超时时间 ${Enbale};是否生效默认为关闭(open开启) ${ADCAuthentication}:ADC认证默认关闭(open开启) - sleep 2 + sleep ${sleep} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} click element id=ldapEdit - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[4]/div/div[1]/input ${list}[0] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div[1]/input ${list}[1] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[6]/div/div/input ${list}[2] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div[1]/input ${list}[3] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[8]/div/div[1]/input ${list}[4] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[8]/div/div[2]/input ${list}[5] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[9]/div/div/input ${list}[6] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[11]/div/div/div/input ${list}[7] - sleep 1 - run keyword if "${Enbale}"!= "close" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Enbale}"!= "close" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[10]/div/div/span - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log 不开启Enable按钮 - run keyword if "${ADCAuthentication}"!= "close" run keywords sleep 1 + run keyword if "${ADCAuthentication}"!= "close" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[12]/div/div/span - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log 不开启ADCAuthentication按钮 click element id=ldapTestConnection - Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20 + Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait} click element id=ldapAddSuccess - sleep 2 + sleep ${sleep} DeleteLDAPServer - sleep 1 + sleep ${sleep_min} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} click element id=ldapDel - sleep 2 + sleep ${sleep} click element xpath=/html/body/div/div/div[3]/button[2] - Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20 + Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait} LDAPServerSearch [Arguments] ${value} ${search} - Wait Until Element Is Enabled id=ldapAdd 20 + Wait Until Element Is Enabled id=ldapAdd ${sleep_Wait} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input - sleep 1 - run keyword if "${search}" == "id" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${search}" == "id" run keywords sleep ${sleep_min} ... AND click element xpath=/html/body/div/div[1]/div[1]/ul/li[2] - run keyword if "${search}" == "name" run keywords sleep 1 + run keyword if "${search}" == "name" run keywords sleep ${sleep_min} ... AND click element xpath=/html/body/div/div[1]/div[1]/ul/li[3] - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[3]/div/input ${value} - sleep 2 + sleep ${sleep} click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i - sleep 2 + sleep ${sleep} LDAPVerificationADC [Arguments] ${name} ${type} @@ -383,115 +383,115 @@ LDAPVerificationADC AdminOpenPages sidebarsystem_LadpServer sidebarsystem_LadpServer LDAPServerSearch ${name} name ${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/span/div class - sleep 1 - run keyword if "${text}" != "el-switch" and "${type}"=="close" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${text}" != "el-switch" and "${type}"=="close" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/span/div - run keyword if "${text}" != "el-switch is-checked" and "${type}"=="open" run keywords sleep 1 + run keyword if "${text}" != "el-switch is-checked" and "${type}"=="open" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/span/div - sleep 1 + sleep ${sleep_min} RestrictionsButton [Arguments] ${type} - sleep 1 + sleep ${sleep_min} ${status1} Get Element Attribute xpath=//*[@id="policy_Manipulation2"]/div/div[2]/div/div/form/div[1]/div/div class ${status2} Set Variable If "${status1}"=="el-switch" close open - run keyword if "${status2}" != "${type}" run keywords sleep 1 + run keyword if "${status2}" != "${type}" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="policy_Manipulation2"]/div/div[2]/div/div/form/div[1]/div/div/span ... ELSE log 不需要改变 - sleep 2 + sleep ${sleep} click element id=wanAdd_ok - sleep 2 + sleep ${sleep} AddAuthorizedSourceIP [Arguments] ${IP} [Documentation] 增加IP - sleep 1 + sleep ${sleep_min} click element id=temporary_form - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="policy_Manipulation2"]/div/div[2]/div/div/form/div[2]/div/div[1]/div[2]/div[1]/div/div[last()]/div/div[1]/div[1]/div/div[2]/div/input ${IP} - sleep 1 + sleep ${sleep_min} click element id=wanAdd_ok - sleep 2 + sleep ${sleep} LoginRestrictions-SearchIP [Arguments] ${IP} - sleep 1 + sleep ${sleep_min} input text id=object_ip_search ${IP} - sleep 1 + sleep ${sleep_min} press keys id=object_ip_search ENTER - sleep 1 + sleep ${sleep_min} LoginRestrictions-DeleteIP - sleep 2 + sleep ${sleep} ${text} Get Element Attribute xpath=/html/body/div/div/div[3]/div[2]/div/div[1]/div/div[2]/div/div/form/div[2]/div/div[1]/div[2]/div[1]/div/div[last()]/div/div/div[2]/i[2] id click element id=${text} - sleep 2 + sleep ${sleep} click element id=wanAdd_ok - sleep 2 + sleep ${sleep} LoginRestrictions-LastIPNumber [Documentation] 返回最后一个IP的位数 ${a} Set Variable ${7} - sleep 1 + sleep ${sleep_min} Execute Javascript window.scrollTo(0, document.body.scrollHeight) ${text} Get Element Attribute xpath=/html/body/div/div/div[3]/div[2]/div/div[1]/div/div[2]/div/div/form/div[2]/div/div[1]/div[2]/div[1]/div/div[last()]/div/div/div[2]/i[2] id - sleep 1 + sleep ${sleep_min} ${Number}= StringSegmentation_2 ${text} ${a} [Return] ${Number} EditMaximumLoginAttemepts [Arguments] ${Number} [Documentation] 修改最多错误次数 - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="policy_Manipulation2"]/div/div[2]/div/div/form/div[3]/div/div[1]/input ${Number} - sleep 1 + sleep ${sleep_min} click element id=wanAdd_ok - sleep 2 + sleep ${sleep} EditLockTime [Arguments] ${Time} [Documentation] 修改等待时间 - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="policy_Manipulation2"]/div/div[2]/div/div/form/div[4]/div/div[1]/input ${Time} - sleep 1 + sleep ${sleep_min} click element id=wanAdd_ok - sleep 2 + sleep ${sleep} OpenMyAccountPage [Documentation] 打开MyAccount侧滑框 - sleep 1 + sleep ${sleep_min} Mouse Hover xpath=//*[@id="app"]/div/div[1]/div[2]/div/span/div/span - Wait Until Element Is Enabled id=editInfo 20 + Wait Until Element Is Enabled id=editInfo ${sleep_Wait} click element id=editInfo - sleep 2 + sleep ${sleep} EditMyAccount [Arguments] ${name} ${password} ${ConfirmPassword} ${RequiredPasswordChange}=null ${Day}=null [Documentation] ... - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${name} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${password} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${ConfirmPassword} - sleep 1 + sleep ${sleep_min} ${status} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div class - run keyword if "${RequiredPasswordChange}"=="open" and "${status}"=="el-switch" run keywords sleep 1 + run keyword if "${RequiredPasswordChange}"=="open" and "${status}"=="el-switch" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div/span - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[6]/div/div/input ${Day} - run keyword if "${RequiredPasswordChange}"=="close" and "${status}"=="el-switch is-checked" run keywords sleep 1 + run keyword if "${RequiredPasswordChange}"=="close" and "${status}"=="el-switch is-checked" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div/span ... ELSE log 不修改密码提醒按钮 - sleep 1 + sleep ${sleep_min} click element id=userOk - sleep 1 + sleep ${sleep_min} LoginRestrictionsObtainSQLIP [Documentation] 获取数据库白名单并返回 - sleep 1 + sleep ${sleep_min} Connect To Database Using Custom Params pymysql ${mysqlHost} ${text1} query SELECT login_addr_whitelist FROM login_restrictions_config ${text1} Set Variable ${text1[0][0]} @@ -502,7 +502,7 @@ LoginRestrictionsObtainSQLIP UpdataLoginRestrictionsSQLIP [Arguments] ${Whitelist} [Documentation] 恢复白名单数据库 - sleep 1 + sleep ${sleep_min} Connect To Database Using Custom Params pymysql ${mysqlHost} ${return} Execute Sql String UPDATE login_restrictions_config SET login_addr_whitelist='${Whitelist}' WHERE id=1 Disconnect From Database @@ -513,44 +513,44 @@ EditMailServer [Documentation] ... AdminOpenPages sidebarsystem_MailServer sidebarsystem_MailServer - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[1]/div/div/input ${server} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[2]/div/div/input ${port} - sleep 1 + sleep ${sleep_min} ${status} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div class - run keyword if "${NeedAuthentication}" == "close" and "${status}" == "el-switch is-checked" run keywords sleep 1 + run keyword if "${NeedAuthentication}" == "close" and "${status}" == "el-switch is-checked" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div/span - run keyword if "${NeedAuthentication}" == "open" and "${status}" == "el-switch" run keywords sleep 1 + run keyword if "${NeedAuthentication}" == "open" and "${status}" == "el-switch" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div/span - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[4]/div/div/div[1]/input ${name} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div/input ${e-mail} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[6]/div/div/input ${password} - sleep 1 + sleep ${sleep_min} ${SSLstatus} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div class - run keyword if "${SSL}" == "close" and "${SSLstatus}" == "el-switch is-checked" run keywords sleep 1 + run keyword if "${SSL}" == "close" and "${SSLstatus}" == "el-switch is-checked" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div/span - run keyword if "${SSL}" == "open" and "${SSLstatus}" == "el-switch" run keywords sleep 1 + run keyword if "${SSL}" == "open" and "${SSLstatus}" == "el-switch" run keywords sleep ${sleep_min} ... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div/span - sleep 1 + sleep ${sleep_min} click element id=mailServerOk - sleep 1 + sleep ${sleep_min} Login [Arguments] ${UserName} ${Password} Mouse Hover xpath=//*[@id="app"]/div/div[1]/div[2]/div/span/div/span - sleep 1 + sleep ${sleep_min} click element xpath=//div[@class='SignOut'] - sleep 2 + sleep ${sleep} input text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input ${UserName} - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input ${Password} - sleep 1 + sleep ${sleep_min} click element xpath=/html/body/div/div/div[2]/div/div[4]/button - sleep 2 + sleep ${sleep} AdminTurnPage [Arguments] ${NextPage} ${PreviousPage} ${JumpInput} ${pages} ${AssertXpath} ${last}=null ${lastxpath}=null @@ -563,22 +563,22 @@ AdminTurnPage ... ${lastxpath} 当最后一页定位和其他页面不同时,传入最后一页的xpath 定位 ${text1} get text xpath=${AssertXpath} Click element xpath=${NextPage} - sleep 2 + sleep ${sleep} ${text2} get text xpath=${AssertXpath} Click element xpath=${PreviousPage} - sleep 2 + sleep ${sleep} ${text3} get text xpath=${AssertXpath} Clear Element Text xpath=${JumpInput} - sleep 2 + sleep ${sleep} input text xpath=${JumpInput} ${pages} - sleep 2 + sleep ${sleep} press keys xpath=${JumpInput} ENTER - sleep 2 + sleep ${sleep} ${text4} get text xpath=${AssertXpath} - run keyword if "${last}"=="null" run keywords sleep 1 + 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()] ... ELSE Click element xpath=${lastxpath} - sleep 2 + sleep ${sleep} ${text5} get text xpath=${AssertXpath} Should Not Be Equal ${text1} ${text2} Should Not Be Equal ${text3} ${text2} @@ -592,29 +592,29 @@ AdministrationPagingDisplay ... ${last} 次关键字 当最后一页定位和其他页面不同时,传入非null的值 ... ${lastxpath} 当最后一页定位和其他页面不同时,传入最后一页的xpath 定位 Mouse Over xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div/span/span/div/i - sleep 1 - run keyword if "${Number}"=="30" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Number}"=="30" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[2] - ... ELSE IF "${Number}"=="50" run keywords sleep 1 + ... ELSE IF "${Number}"=="50" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[3] - ... ELSE IF "${Number}"=="100" run keywords sleep 1 + ... ELSE IF "${Number}"=="100" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[4] ... ELSE Clear Element Text xpath=/html/body/div[last()]/div[1]/div[2]/input ... AND Input Text xpath=/html/body/div[last()]/div[1]/div[2]/input ${Number} - sleep 1 + sleep ${sleep_min} Click element xpath=/html/body/div[last()]/div[1]/div[2]/button - sleep 2 + sleep ${sleep} ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/span[1] - sleep 1 + sleep ${sleep_min} ${Quantity} StringSegmentation ${text} - sleep 1 + sleep ${sleep_min} ${quyu} Evaluate ${Quantity}%${Number} ${qumo} Evaluate ${Quantity}/${Number} ${quzheng} Evaluate int(${qumo}) ${b} Set Variable ${1} ${Page1} Evaluate ${quzheng}+${b} ${Page} Set Variable if "${quyu}" != "0" ${Page1} ${quzheng} - sleep 1 + sleep ${sleep_min} ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div/div/ul/li[last()] Should Be Equal As Strings ${text} ${Page} @@ -623,29 +623,29 @@ AuditLogs-PagingDisplay [Documentation] ... ${Number}: 设置页面显示数据条数 (20、5、30、50、100) Mouse Over xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/span/span/div/i - sleep 1 - run keyword if "${Number}"=="30" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Number}"=="30" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[2] - ... ELSE IF "${Number}"=="50" run keywords sleep 1 + ... ELSE IF "${Number}"=="50" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[3] - ... ELSE IF "${Number}"=="100" run keywords sleep 1 + ... ELSE IF "${Number}"=="100" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[4] ... ELSE Clear Element Text xpath=/html/body/div[last()]/div[1]/div[2]/input ... AND Input Text xpath=/html/body/div[last()]/div[1]/div[2]/input ${Number} - sleep 1 + sleep ${sleep_min} Click element xpath=/html/body/div[last()]/div[1]/div[2]/button - sleep 2 + sleep ${sleep} ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/span[1] - sleep 1 + sleep ${sleep_min} ${Quantity} StringSegmentation ${text} - sleep 1 + sleep ${sleep_min} ${quyu} Evaluate ${Quantity}%${Number} ${qumo} Evaluate ${Quantity}/${Number} ${quzheng} Evaluate int(${qumo}) ${b} Set Variable ${1} ${Page1} Evaluate ${quzheng}+${b} ${Page} Set Variable if "${quyu}" != "0" ${Page1} ${quzheng} - sleep 1 + sleep ${sleep_min} ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/ul/li[last()] Should Be Equal As Strings ${text} ${Page} diff --git a/02-Keyword/tsg_ui/setting/Settings.robot b/02-Keyword/tsg_ui/setting/Settings.robot index 8969821..c140318 100644 --- a/02-Keyword/tsg_ui/setting/Settings.robot +++ b/02-Keyword/tsg_ui/setting/Settings.robot @@ -3,6 +3,7 @@ Library Selenium2Library Library ../../../04-CustomLibrary/Custometest/Common.py Library DatabaseLibrary Library ../../../04-CustomLibrary/Custometest/StringManipulation.py +Resource ../../../03-Variable/bifangapivariable.txt *** Keywords *** click [Arguments] ${element} @@ -23,125 +24,125 @@ ui-login Settings-Search [Arguments] ${value} ${search} - sleep 2 + sleep ${sleep} click 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 1 + sleep ${sleep_min} #判断是使用name搜索还是id搜索 - run keyword if "${search}"=="name" run keywords sleep 1 + run keyword if "${search}"=="name" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3] ... AND input 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 ${value} - ... ELSE IF "${search}"=="id" run keywords sleep 1 + ... ELSE IF "${search}"=="id" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2] ... AND input 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 ${value} - ... ELSE IF "${search}"=="Issuer" run keywords sleep 1 + ... ELSE IF "${search}"=="Issuer" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4] ... AND input 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 ${value} - ... ELSE IF "${search}"=="CommonName" run keywords sleep 1 + ... ELSE IF "${search}"=="CommonName" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[5] ... AND input 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 ${value} - ... ELSE IF "${search}"=="CertificateFingerprint" run keywords sleep 1 + ... ELSE IF "${search}"=="CertificateFingerprint" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[6] ... AND input 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 ${value} - ... ELSE IF "${search}"=="Source Website" run keywords sleep 1 + ... ELSE IF "${search}"=="Source Website" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3] ... AND input 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 ${value} - ... ELSE IF "${search}"=="JA3Hash" run keywords sleep 1 + ... ELSE IF "${search}"=="JA3Hash" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3] ... AND input 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 ${value} - ... ELSE IF "${search}"=="GeoName" run keywords sleep 1 + ... ELSE IF "${search}"=="GeoName" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2] ... AND input 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 ${value} - ... ELSE IF "${search}"=="CountryandRegion" run keywords sleep 1 + ... ELSE IF "${search}"=="CountryandRegion" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3] ... AND input 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 ${value} - ... ELSE IF "${search}"=="City" run keywords sleep 1 + ... ELSE IF "${search}"=="City" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4] ... AND input 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 ${value} - ... ELSE IF "${search}"=="ip" run keywords sleep 1 + ... ELSE IF "${search}"=="ip" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4] ... AND input 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 ${value} - ... ELSE IF "${search}"=="port" run keywords sleep 1 + ... ELSE IF "${search}"=="port" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[5] ... AND input 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 ${value} - sleep 1 + sleep ${sleep} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i #点击搜索按钮 - sleep 1 + sleep ${sleep} CreateSNATIPPools [Arguments] ${name} ${type} ${ip} ${j}=1 - Sleep 1 + Sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + Sleep ${sleep_min} click id=sidebarSetting_Wannat #点击wan net - sleep 1 + sleep ${sleep_min} click id=ip #点击SNAT-IP-Pools - sleep 1 + sleep ${sleep_min} click id=app_create #点击新建按钮 - sleep 1 + sleep ${sleep_min} input xpath=//*[@id="wannat_vpn_color"]/form/div[1]/div/div/div[1]/input ${name} #输入name - sleep 1 + sleep ${sleep_min} #判断是手动输入还是搜索添加,type=1为手动输入,type=2为搜索添加 - run keyword if "${type}"=="1" run keywords sleep 1 + run keyword if "${type}"=="1" run keywords sleep ${sleep_min} ... AND click id=temporary_form #点击添加ip的加号 - ... AND sleep 2 + ... AND sleep ${sleep} ... AND input xpath=//*[@id="wannat_vpn_color"]/form/div[3]/div/div/div[2]/div[1]/div/div/div[1]/div[1]/div/div[2]/div/input ${ip}[0] #输入ip内容,这里${value}是一个列表 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND SANTIPIF ${j} ${ip} #判断是添加一个ip还是多个ip ... AND click id=wan_reach_test #点击可达性测试按钮 - ... AND Wait Until Element Is Visible id=edit_0 20 #等待时间,等待元素出现后在进行后续操作 - run keyword if "${type}"=="2" run keywords sleep 1 + ... AND Wait Until Element Is Visible id=edit_0 ${sleep_Wait} #等待时间,等待元素出现后在进行后续操作 + run keyword if "${type}"=="2" run keywords sleep ${sleep_min} ... AND click id=active-ip #点击 History Active IP按钮 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input xpath=//*[@id="remoteInput"]/div/div/input ${ip}[0] #搜索输入框输入 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND press keys xpath=//*[@id="remoteInput"]/div/div/input ENTER #回车搜索 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click xpath=//*[@id="wannat_vpn_color"]/div[1]/div/div/div/div[2]/div[3]/div/div/div[3]/table/tbody/tr #点击搜索到的ip添加 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND SANTIPIF1 ${j} ${ip} #判断是搜索添加一个ip还是多个ip ... AND click id=wan_reach_test #点击可达性测试按钮 - sleep 1 + sleep ${sleep} click id=wanAdd_ok #点击ok - Wait Until Element Is Enabled id=app_create 20 + Wait Until Element Is Enabled id=app_create ${sleep_Wait} ${status} Run Keyword And Return Status Page Should Contain Go to #判断页面是否包含该文本 Should Be Equal As Strings ${status} True #断言 EditSNATIPPools [Arguments] ${value} ${search} ${name} ${type} ${ip}=null ${j}=1 - Sleep 1 + Sleep ${sleep_min} SNATIPSearch ${value} ${search} - sleep 1 + sleep ${sleep_min} click id=appEdit #点击修改按钮 - sleep 1 + sleep ${sleep_min} Clear Element Text xpath=//*[@id="wannat_vpn_color"]/form/div[1]/div/div/div[1]/input #清空输入框 - sleep 1 + sleep ${sleep_min} input xpath=//*[@id="wannat_vpn_color"]/form/div[1]/div/div/div[1]/input ${name} #输入name - sleep 1 + sleep ${sleep_min} #判断对ip是修改或是新建或删除后新建或不进行修改 run keyword if "${type}"=="edit" Run Keywords click id=editForm0 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND clear element text xpath=//*[@id="wannat_vpn_color"]/form/div[3]/div/div/div[2]/div[1]/div/div/div[1]/div[1]/div/div[2]/div/input - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input xpath=//*[@id="wannat_vpn_color"]/form/div[3]/div/div/div[2]/div[1]/div/div/div[1]/div[1]/div/div[2]/div/input ${ip}[0] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=wan_reach_test - ... AND sleep 1 + ... AND sleep ${sleep_min} run keyword if "${type}"=="create" Run Keywords SNATIPRangeCreate ${j} ${ip} ... AND click id=wan_reach_test #点击可达性测试按钮 - ... AND Wait Until Element Is Visible id=edit_0 20 - ... AND sleep 1 + ... AND Wait Until Element Is Visible id=edit_0 ${sleep_Wait} + ... AND sleep ${sleep_min} ... AND click id=wan_reach_test - ... AND sleep 1 + ... AND sleep ${sleep_min} run keyword if "${type}"=="delete" Run Keywords click id=delForm0 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND SNATIPRangeCreate ${j} ${ip} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=wan_reach_test - ... AND sleep 1 + ... AND sleep ${sleep_min} run keyword if "${type}"=="null" log 不做更改 - sleep 1 + sleep ${sleep_min} click id=wanAdd_ok #点击ok - Wait Until Element Is Enabled id=app_create 20 + Wait Until Element Is Enabled id=app_create ${sleep_Wait} ${status} Run Keyword And Return Status Page Should Contain Go to #判断页面是否包含该文本 Should Be Equal As Strings ${status} True #断言 @@ -158,104 +159,104 @@ SANTIPIF1 SNATIPRangeSearch [Arguments] ${j} ${ip} #for循环添加ip - sleep 1 + sleep ${sleep_min} FOR ${i} IN RANGE 1 ${j} - sleep 1 + sleep ${sleep_min} Clear Element Text id=insert_profileName #清空输入框 - sleep 1 + sleep ${sleep_min} input xpath=xpath=//*[@id="remoteInput"]/div/div/input ${ip}[${i}] #搜索输入框输入 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="wannat_vpn_color"]/div[1]/div/div/div/div[2]/div[3]/div/div/div[3]/table/tbody/tr/td[1]/div/span/div #点击搜索到的ip添加 - sleep 1 + sleep ${sleep_min} END SNATIPRangeCreate [Arguments] ${j} ${ip} #for循环添加ip - sleep 1 + sleep ${sleep_min} FOR ${i} IN RANGE 0 ${j} - sleep 1 + sleep ${sleep_min} click id=temporary_form - sleep 2 + sleep ${sleep} input xpath=//*[@id="wannat_vpn_color"]/form/div[3]/div/div/div[2]/div[1]/div[last()]/div/div[1]/div[1]/div/div[2]/div/input ${ip}[${i}] - sleep 1 + sleep ${sleep_min} END SNATIPSearch [Arguments] ${value} ${search} - Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input 20 + Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input ${sleep_Wait} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框 - sleep 1 + sleep ${sleep_min} #判断是使用name搜索还是id搜索 - run keyword if "${search}"=="Name" run keywords sleep 1 + run keyword if "${search}"=="Name" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3] ... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value} - ... ELSE IF "${search}"=="ID" run keywords sleep 1 + ... ELSE IF "${search}"=="ID" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2] ... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value} - ... ELSE IF "${search}"=="IP" run keywords sleep 1 + ... ELSE IF "${search}"=="IP" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4] #xpath=/html/body/div[7]/div[1]/div[1]/ul/li[4] ... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value} - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/i #点击搜索按钮 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} SNATIPDelete [Arguments] ${value} ${search} SNATIPSearch ${value} ${search} #搜索需要删除的数据 click id=appDel #点击删除按钮 - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} SearchHistoryActiveIP [Arguments] ${Number} # 获取History Active IP内存在的IP并返回 OpenPages sidebarSetting_Wannat ip click id=app_create - sleep 1 + sleep ${sleep_min} click id=active-ip - sleep 1 + sleep ${sleep_min} input text xpath=//*[@id="remoteInput"]/div/div/input 192.168.50 - sleep 1 + sleep ${sleep_min} press keys xpath=//*[@id="remoteInput"]/div/div/input ENTER - sleep 2 + sleep ${sleep} ${ip1} get text xpath=//*[@id="wannat_vpn_color"]/div[1]/div/div/div/div[2]/div[3]/div[2]/div/div[3]/table/tbody/tr[${Number}]/td[1]/div/span/div[2] [Return] ${ip1} CreateVPNAccounts [Arguments] ${name} ${passwd} ${search} - Sleep 1 + Sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + Sleep ${sleep_min} click id=sidebarSetting_Wannat #点击wan net - sleep 1 + sleep ${sleep_min} click id=account #点击SNAT-IP-Pools - sleep 1 + sleep ${sleep_min} click id=app_create #点击新建按钮 - sleep 1 + sleep ${sleep_min} input xpath=//*[@id="wannat_vpn_username"]/div/div/div[1]/input ${name} #输入vpnname - sleep 1 + sleep ${sleep_min} input xpath=//*[@id="wannat_vpn_password"]/div/div/input ${passwd} #输入密码 - sleep 1 + sleep ${sleep_min} click id=wanAdd_ok #点击ok按钮 - Wait Until Element Is Visible xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span 20 + Wait Until Element Is Visible xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span ${sleep_Wait} VPNAccountsSearch ${name} ${search} ${text1} Get Text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 EditVPNAccounts [Arguments] ${name} ${passwd} ${search} - sleep 1 + sleep ${sleep_min} click id=appEdit #点击修改那妞 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="wannat_vpn_password"]/div/div/span/span/i #点击小眼睛按钮,查看密码 - sleep 1 + sleep ${sleep_min} Clear Element Text xpath=//*[@id="wannat_vpn_password"]/div/div/span/span/i/../../../input - sleep 1 + sleep ${sleep_min} input xpath=//*[@id="wannat_vpn_password"]/div/div/span/span/i/../../../input ${passwd} #修改密码 - sleep 1 + sleep ${sleep_min} click id=wanAdd_ok #点击OK VPNAccountsSearch ${name} ${search} ${text1} Get Text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span #获取点击后页面文本信息 @@ -263,161 +264,161 @@ EditVPNAccounts VPNAccountsSearch [Arguments] ${value} ${search} - Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input 20 + Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input ${sleep_Wait} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框 - sleep 1 + sleep ${sleep_min} click xpath=/html/body/div/div[1]/div[1]/ul/li[2] #点击name - sleep 1 + sleep ${sleep_min} input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value} #输入值 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/i #点击搜索按钮 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} VPNAccountsDelete click id=appDel #点击删除按钮 - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} Source-or-Destination-Search [Arguments] ${value} - run keyword if "${value}"=="IP" run keywords sleep 1 + run keyword if "${value}"=="IP" run keywords sleep ${sleep_min} ... AND click id=tab-ip #点击ip - ... AND sleep 1 - run keyword if "${value}"=="SUB ID" run keywords sleep 1 + ... AND sleep ${sleep_min} + run keyword if "${value}"=="SUB ID" run keywords sleep ${sleep_min} ... AND click id=tab-subscriberid #点击SUB ID - ... AND sleep 1 - run keyword if "${value}"=="Geography" run keywords sleep 1 + ... AND sleep ${sleep_min} + run keyword if "${value}"=="Geography" run keywords sleep ${sleep_min} ... AND click id=tab-Geographic #点击Geography - ... AND sleep 1 - run keyword if "${value}"=="IP Learning" run keywords sleep 1 + ... AND sleep ${sleep_min} + run keyword if "${value}"=="IP Learning" run keywords sleep ${sleep_min} ... AND click id=tab-ip_learning #点击IP Learning - ... AND sleep 1 + ... AND sleep ${sleep_min} FQDN-or-Category-Search [Arguments] ${value} - run keyword if "${value}"=="FQDN" run keywords sleep 1 + run keyword if "${value}"=="FQDN" run keywords sleep ${sleep_min} ... AND click id=tab-fqdn #点击FQDN - ... AND sleep 1 - run keyword if "${value}"=="Category" run keywords sleep 1 + ... AND sleep ${sleep_min} + run keyword if "${value}"=="Category" run keywords sleep ${sleep_min} ... AND click id=tab-fqdn_category #点击category - ... AND sleep 1 + ... AND sleep ${sleep_min} CreateHijackFiles [Arguments] ${name} ${file} ${type} ${search} ${shift}=1 ${input1}=1 - Sleep 1 + Sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + Sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + Sleep ${sleep} click id=profilesTabs_Profile_HijackFiles #点击Hijack Files按钮 - Sleep 1 + Sleep ${sleep_min} click id=hijackAdd #点击Create - Sleep 2 + Sleep ${sleep} input id=hijack_profileName ${name} #输入name - Sleep 2 + Sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/div[1]/input ${file} #上传文件 - Sleep 2 + Sleep ${sleep} ${dow_name} Set Variable ${shift} ${input} Set Variable ${input1} - run keyword if "${dow_name}"=="close" and "${input}"=="shuru" run keywords sleep 1 + run keyword if "${dow_name}"=="close" and "${input}"=="shuru" run keywords sleep ${sleep_min} ... AND input id=hijack_contentName ${name} ... ELSE IF "${dow_name}"=="open" click xpath=//*[@id="contentNameChoose"]/div[1]/span[2] - sleep 2 + sleep ${sleep} click id=hijackAddContentType #点击+ 打开侧滑窗口 - Sleep 1 + Sleep ${sleep_min} click ${type} #选择文件类型 - sleep 2 + sleep ${sleep} click id=hijackAddOk1 #点击OK - Wait Until Element Is Enabled id=hijackAdd 20 + Wait Until Element Is Enabled id=hijackAdd ${sleep_Wait} Settings-Search ${name} ${search} #搜索框的关键字 ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 CreateInsertScripts [Arguments] ${name} ${file} ${type} ${search} ${jstype}=Before Page Load - Sleep 1 + Sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + Sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + Sleep ${sleep} click id=profilesTabs_Profile_Insert #点击Insert Scripts按钮 - Sleep 1 + Sleep ${sleep_min} click id=insertAdd #点击Create - Sleep 2 + Sleep ${sleep} input id=insert_profileName ${name} #输入name - Sleep 2 + Sleep ${sleep} Choose File xpath=//*[@id="insertAddUpload"]/div[1]/input ${file} #上传文件 - Sleep 2 + Sleep ${sleep} click id=insert_select_format #点击下拉框按钮 - Sleep 1 - run keyword if "${type}"=="css" run keywords sleep 1 + Sleep ${sleep_min} + run keyword if "${type}"=="css" run keywords sleep ${sleep_min} ... AND click //span[.="${type}"] #选择css - run keyword if "${type}"=="js" run keywords sleep 1 + run keyword if "${type}"=="js" run keywords sleep ${sleep_min} ... AND click //span[.="${type}"] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=insert_select_insertOn #点击下拉框 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click //span[.="${jstype}"] - sleep 1 + sleep ${sleep_min} click id=insertAddOk1 #点击OK - Wait Until Element Is Enabled id=insertAdd 20 + Wait Until Element Is Enabled id=insertAdd ${sleep_Wait} Settings-Search ${name} ${search} #搜索框的关键字 log psssssssssssssssssssssssssss - Sleep 1 + Sleep ${sleep_min} ${text1} 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[2]/div/div/span #//*[@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 #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 TrafficMirrorProfilesValidationError [Arguments] ${name} ${type} ${shuru} ${PromptInformation} - Sleep 1 + Sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + Sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + Sleep ${sleep} click id=profilesTabs_Profile_TrafficMirrorProfiles #点击Traffic Mirror Profiles按钮 - Sleep 1 + Sleep ${sleep_min} click id=trafficMirrorAdd #点击Create - Sleep 2 + Sleep ${sleep} input id=trafficmirror_profileName ${name} #输入name - Sleep 2 + Sleep ${sleep} click id=addrTypeChoose #点击下拉框 - Sleep 2 + Sleep ${sleep} click ${type} #选择vlan或者mac - Sleep 1 + Sleep ${sleep_min} input id=trafficmirror_addrArray0 ${shuru} - sleep 2 + sleep ${sleep} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击OK - sleep 2 + sleep ${sleep} ${text1} Get Text xpath=/html/body/div[last()]/p #获取点击后页面提示信息 Should Be Equal As Strings ${text1} ${PromptInformation} #断言 CreateTrafficMirrorProfiles [Arguments] ${name} ${type} ${shuru} ${search} - Sleep 1 + Sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + Sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + Sleep ${sleep} click id=profilesTabs_Profile_TrafficMirrorProfiles #点击Traffic Mirror Profiles按钮 - Sleep 1 + Sleep ${sleep_min} click id=trafficMirrorAdd #点击Create - Sleep 2 + Sleep ${sleep} input id=trafficmirror_profileName ${name} #输入name - Sleep 2 + Sleep ${sleep_min} click id=addrTypeChoose #点击下拉框 - Sleep 2 + Sleep ${sleep} click ${type} #选择vlan或者mac - Sleep 1 + Sleep ${sleep} input id=trafficmirror_addrArray0 ${shuru} - sleep 2 + sleep ${sleep} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击OK - Wait Until Element Is Enabled id=trafficMirrorAdd 20 + Wait Until Element Is Enabled id=trafficMirrorAdd ${sleep_Wait} Settings-Search ${name} ${search} #搜索框的关键字 - Sleep 1 + Sleep ${sleep} ${text1} 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[2]/div/div/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 @@ -431,40 +432,40 @@ EditInsertScripts ... ${name1}:为修改页面的name输入框里输入的内容 ... ${file}:为修改页面要上传文件的路径 ... ${type}:选择文件类型的元素 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - sleep 2 + sleep ${sleep} click id=profilesTabs_Profile_Insert #点击Insert files按钮 Settings-Search ${id-name} ${search} #搜索框的关键字 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表 - sleep 1 + sleep ${sleep_min} click id=insertEdit #点击Edit - sleep 1 + sleep ${sleep_min} Clear Element Text id=insert_profileName #清空输入框 - sleep 1 + sleep ${sleep_min} input id=insert_profileName ${name1} #输入框输入 - sleep 1 + sleep ${sleep_min} Choose File xpath=//*[@id="insertAddUpload"]/div[1]/input ${file} #上传文件 - sleep 1 + sleep ${sleep_min} click id=insert_select_format #点击下拉框 - sleep 1 + sleep ${sleep_min} #选择文件类型 - run keyword if "${type}"=="css" run keywords sleep 1 + run keyword if "${type}"=="css" run keywords sleep ${sleep_min} ... AND click //span[.="${type}"] #选择css - run keyword if "${type}"=="js" run keywords sleep 1 + run keyword if "${type}"=="js" run keywords sleep ${sleep_min} ... AND click //span[.="${type}"] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=insert_select_insertOn #点击下拉框 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click //span[.="${jstype}"] - sleep 1 + sleep ${sleep_min} click id=insertAddOk1 #点击ok提交 - run keyword if "${search}"=="id" run keywords sleep 1 + run keyword if "${search}"=="id" run keywords sleep ${sleep_min} ... AND Settings-Search ${id-name} ${search} #搜索框的关键字 - ... ELSE IF "${search}"=="name" run keywords sleep 1 + ... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min} ... AND Settings-Search ${name1} ${search} #搜索框的关键字 - Sleep 1 + sleep ${sleep_min} ${text1} 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[2]/div/div/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name1} #断言 @@ -477,21 +478,21 @@ CreateResponsePages ... ${file}:上传文件所在本地的路径 #打开浏览器 #ui-login lyf 111111 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + sleep ${sleep} click id=respinseAdd #Response Pages点击Create - Sleep 2 + sleep ${sleep} input id=responsepages_profileName ${name} #输入name - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件 - Sleep 2 + sleep ${sleep} click id=responseAddOk1 #点击OK缇交 - Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span 30 + Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span ${sleep_Wait} Settings-Search ${name} ${search} #搜索框的关键字 - Sleep 1 + sleep ${sleep_min} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 @@ -503,28 +504,28 @@ Edit-Response-Pages ... ${id-name}:为查询输入框输入内容 ... ${name1}:为修改页面的name输入框里输入的内容 ... ${file}:为修改页面要上传文件的路径 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + sleep ${sleep} Settings-Search ${id-name} ${search} #搜索框的关键字 - Sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表 - sleep 1 + sleep ${sleep_min} click id=resinseEdit #点击Edit - sleep 1 + sleep ${sleep_min} Clear Element Text id=responsepages_profileName #清空name输入框 - sleep 1 + sleep ${sleep_min} input id=responsepages_profileName ${name1} - sleep 1 + sleep ${sleep_min} Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[5]/div/div/div/input ${file} - sleep 1 + sleep ${sleep_min} click id=responseAddOk1 - Sleep 1 - run keyword if "${search}"=="id" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${search}"=="id" run keywords sleep ${sleep_min} ... AND Settings-Search ${id-name} ${search} #搜索框的关键字 - ... ELSE IF "${search}"=="name" run keywords sleep 1 + ... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min} ... AND Settings-Search ${name1} ${search} #搜索框的关键字 - Sleep 1 + sleep ${sleep_min} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name1} #断言 @@ -538,40 +539,40 @@ EditHijackFiles ... ${name1}:为修改页面的name输入框里输入的内容 ... ${file}:为修改页面要上传文件的路径 ... ${type}:为文件类型的元素 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + sleep ${sleep} click id=profilesTabs_Profile_HijackFiles #点击Hijack files按钮 - sleep 1 + sleep ${sleep_min} Settings-Search ${id-name} ${search} #搜索框的关键字 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表 - sleep 1 + sleep ${sleep_min} click id=hijackEdit #点击Edit - sleep 1 + sleep ${sleep_min} Clear Element Text id=hijack_profileName #清空输入框 - sleep 1 + sleep ${sleep_min} input id=hijack_profileName ${name1} #输入框输入 - sleep 1 + sleep ${sleep_min} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div/div[1]/input ${file} #上传文件 - sleep 1 + sleep ${sleep_min} ${dow_name} Set Variable ${shift} ${input} Set Variable ${input1} - run keyword if "${dow_name}"=="close" and "${input}"=="shuru" run keywords sleep 1 + run keyword if "${dow_name}"=="close" and "${input}"=="shuru" run keywords sleep ${sleep_min} ... AND input id=hijack_contentName ${name} ... ELSE IF "${dow_name}"=="open" click xpath=//*[@id="contentNameChoose"]/div[1]/span[2] - sleep 2 + sleep ${sleep} click id=hijackAddContentType #点击+号打开侧滑框 sleep 3 click ${type} #选择类型 - sleep 1 + sleep ${sleep_min} click id=rigth-menu-button-close #关闭侧滑框 - sleep 1 + sleep ${sleep_min} click id=hijackAddOk1 #点击ok提交 - Wait Until Element Is Enabled id=hijackAdd 20 - run keyword if "${search}"=="id" run keywords sleep 1 + Wait Until Element Is Enabled id=hijackAdd ${sleep_Wait} + run keyword if "${search}"=="id" run keywords sleep ${sleep_min} ... AND Settings-Search ${id-name} ${search} #搜索框的关键字 - ... ELSE IF "${search}"=="name" run keywords sleep 1 + ... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min} ... AND Settings-Search ${name1} ${search} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name1} #断言 @@ -585,36 +586,36 @@ EditTrafficMirrorProfiles ... ${name1}:为修改页面的name输入框里输入的内容 ... ${type}:为选择点击vlan或mac的元素 ... ${shuju}:为输入框输入内容 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - Sleep 2 + sleep ${sleep} click id=profilesTabs_Profile_TrafficMirrorProfiles #点击Traffic Mirror Profiles按钮 - sleep 1 + sleep ${sleep_min} Settings-Search ${id-name} ${search} #搜索框的关键字 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表 - sleep 1 + sleep ${sleep_min} click id=trafficMirrorEdit #点击Edit - sleep 1 + sleep ${sleep_min} Clear Element Text id=trafficmirror_profileName #清空输入框 - sleep 1 + sleep ${sleep_min} input id=trafficmirror_profileName ${name1} #输入框输入 - sleep 1 + sleep ${sleep_min} click id=addrTypeChoose #点击下拉框 - sleep 1 + sleep ${sleep_min} click ${type} #选择vlan或者mac - sleep 1 + sleep ${sleep_min} Clear Element Text id=trafficmirror_addrArray0 #清空输入框 - sleep 1 + sleep ${sleep_min} input id=trafficmirror_addrArray0 ${shuju} #输入内容 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击ok - Wait Until Element Is Enabled id=trafficMirrorAdd 20 - run keyword if "${search}"=="id" run keywords sleep 1 + Wait Until Element Is Enabled id=trafficMirrorAdd ${sleep_Wait} + run keyword if "${search}"=="id" run keywords sleep ${sleep_min} ... AND Settings-Search ${id-name} ${search} #搜索框的关键字 - ... ELSE IF "${search}"=="name" run keywords sleep 1 + ... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min} ... AND Settings-Search ${name1} ${search} #搜索框的关键字 - Sleep 1 + sleep ${sleep_min} ${text1} 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[2]/div/div/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name1} #断言 @@ -626,21 +627,21 @@ importTrustedCertificateAuthorities ... ${file}:上传文件所在本地的路径 #打开浏览器 #ui-login lyf 111111 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click id=app_create #点击Import - Sleep 2 + sleep ${sleep} input id=authoritiesAdd_name ${name} #输入name - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="upload_dome"]/div/input ${file} #上传文件 - Sleep 2 + sleep ${sleep} click id=authoritiesAdd_sub #点击OK缇交 - Wait Until Element Is Enabled id=app_create 20 + Wait Until Element Is Enabled id=app_create ${sleep_Wait} Settings-Search ${name} ${search} - sleep 2 + sleep ${sleep} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 @@ -653,19 +654,19 @@ importTrustedCertificateAuthoritiesErrorVerification ... ${PromptInformation}:提示信息 #打开浏览器 #ui-login lyf 111111 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click id=Authorities_create #点击Import - Sleep 2 + sleep ${sleep} input id=authoritiesAdd_name ${name} #输入name - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="upload_dome"]/div/input ${file} #上传文件 - Sleep 2 + sleep ${sleep} click id=authoritiesAdd_sub #点击OK缇交 - Sleep 2 + sleep ${sleep} ${text} Get text xpath=/html/body/div[last()]/p Should Be Equal As Strings ${text} ${PromptInformation} #断言 @@ -684,45 +685,45 @@ CreateDecryptionKeyrings ... ${PrivateKeyType}:私钥类型 #打开浏览器 #ui-login lyf 111111 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings - sleep 1 + sleep ${sleep_min} click id=app_create #点击Create - Sleep 2 + sleep ${sleep} input id=keyringsadd_name ${name} #输入name - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件 - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件 ${select} Set Variable ${ExpiryHours1or2} Run Keyword If '${select}'=='1' click id=keyringsadd_customized Run Keyword If '${select}'=='1' input id=reissueExpiryDate 10 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框 - sleep 1 + sleep ${sleep_min} click ${type} #选择证书类型 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框 - sleep 1 + sleep ${sleep_min} click ${type1} #选择加密解密类型 - sleep 1 + sleep ${sleep_min} ${root} Set Variable ${shift} - run keyword if "${root}"=="open" run keywords sleep 1 + run keyword if "${root}"=="open" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[9]/div/div/span ... ELSE IF "${root}"=="close" log "go on" - Run Keyword If '${PrivateKeyType}'=='HSM' run keywords sleep 1 + Run Keyword If '${PrivateKeyType}'=='HSM' run keywords sleep ${sleep_min} ... AND click id=privateHSM - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input id=keyringsadd_slotid 10 - sleep 1 + sleep ${sleep_min} click id=keyringsadd_sub #点击OK缇交 - Wait Until Element Is Enabled id=app_create 20 + Wait Until Element Is Enabled id=app_create ${sleep_Wait} Settings-Search ${name} ${search} - Sleep 1 + sleep ${sleep_min} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 @@ -737,49 +738,49 @@ DecryptionKeyringsErrorVerification ... ${type1}:上传证书加密解密算法的元素 ... ${Positioning}:获取文本的xpath定位 ... ${Assertion}:断言信息 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings - sleep 1 + sleep ${sleep_min} click id=app_create #点击Create - Sleep 2 + sleep ${sleep} input id=keyringsadd_name ${name} #输入name - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件 - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框 - sleep 1 + sleep ${sleep_min} click ${type} #选择证书类型 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框 - sleep 1 + sleep ${sleep_min} click ${type1} #选择加密解密类型 - sleep 1 + sleep ${sleep_min} click id=keyringsadd_sub #点击OK缇交 - Wait Until Element Is Visible xpath=${Positioning} 20 + Wait Until Element Is Visible xpath=${Positioning} ${sleep_Wait} ${text1} Get Text xpath=${Positioning} #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${Assertion} #断言 DecryptionKeyringsSearch [Arguments] ${id} ${name} - sleep 2 + sleep ${sleep} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div/div[1]/input - sleep 1 + sleep ${sleep_min} click xpath=/html/body/div/div[1]/div[1]/ul/li[2] input 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 ${id} - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} click xpath=/html/body/div/div[1]/div[1]/ul/li[2] input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[2]/div[3]/div/input ${name} - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/i - sleep 2 + sleep ${sleep} CreateSSLDecryptionExclusion [Arguments] ${name} ${value} ${name1} ${search} @@ -788,23 +789,23 @@ CreateSSLDecryptionExclusion ... ${name}:新建页面name输入框里的内容 ... ${value}:输入内容 ... ${naem1}:搜索框填入内容 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[3] #点击SSL Decryption Exclusion按钮 - sleep 1 + sleep ${sleep_min} click id=ssl_create #点击Create - Sleep 2 + sleep ${sleep} input id=sslAdd_name ${name} #输入name - Sleep 2 + sleep ${sleep} input id=sslAdd_itemDesc ${value} #输入内容 - Sleep 2 + sleep ${sleep} click id=ssl_ok #点击OK缇交 - Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 30 + Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span ${sleep_Wait} Settings-Search ${name1} ${search} - sleep 1 + sleep ${sleep_min} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 @@ -816,29 +817,29 @@ CreateSSLDecryptionExclusionErrorVerification ... ${value}:输入内容 ... ${AssertionPath}:提示信息Xpath定位 ... ${AssertionText}:错误提示信息文本 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[3] #点击SSL Decryption Exclusion按钮 - sleep 1 + sleep ${sleep_min} click id=ssl_create #点击Create - Sleep 2 + sleep ${sleep} input id=sslAdd_name ${name} #输入name - Sleep 2 + sleep ${sleep} input id=sslAdd_itemDesc ${value} #输入内容 - Sleep 2 + sleep ${sleep} click id=ssl_ok #点击OK缇交 - Sleep 2 + sleep ${sleep} ${text} get text xpath=${AssertionPath} Should Be Equal As Strings ${text} ${AssertionText} CachedIntermediateCertificatesSearch [Arguments] ${Condition} ${AssertionPath} ${search} - sleep 1 + sleep ${sleep_min} Settings-Search ${Condition} ${search} - sleep 2 + sleep ${sleep} ${text} get text ${AssertionPath} Should Be Equal As Strings ${text} ${Condition} @@ -851,23 +852,23 @@ EditTrustedCertificateAuthorities ... ${id-name}:为查询输入框输入内容 ... ${name}:为修改页面的name输入框里输入的内容 ... ${file}:为修改页面要上传文件的路径 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} Settings-Search ${id-name} ${search} - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #点击搜索列表 - sleep 1 + sleep ${sleep_min} click id=appEdit #点击Edit按钮 - sleep 1 + sleep ${sleep_min} Clear Element Text id=authoritiesAdd_name #清空name输入框 - sleep 1 + sleep ${sleep_min} input id=authoritiesAdd_name ${name} #输入name - sleep 1 + sleep ${sleep_min} Choose File xpath=//*[@id="upload_dome"]/div/input ${file} #上传文件 - sleep 1 + sleep ${sleep_min} click id=authoritiesAdd_sub #点击ok - sleep 1 + sleep ${sleep_min} EditDecryptionKeyrings [Arguments] ${id-name} ${name} ${file} ${file1} ${1or2} @@ -882,43 +883,43 @@ EditDecryptionKeyrings ... ${1or2}:填入1 或者其他 ... ${type}:上传证书类型的元素 ... ${type1}:上传证书加密解密算法的元素 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings - sleep 1 + sleep ${sleep_min} Settings-Search ${id-name} ${search} - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr #点击搜索列表 - sleep 1 + sleep ${sleep_min} click id=appEdit #点击Edit按钮 - sleep 1 + sleep ${sleep_min} Clear Element Text id=keyringsadd_name #清空name输入框 - sleep 1 + sleep ${sleep_min} input id=keyringsadd_name ${name} #输入name - sleep 1 + sleep ${sleep_min} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[5]/div/div/div/input ${file} #上传文件 - Sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div[2]/div/div/input ${file1} #上传文件 ${select} Set Variable ${1or2} Run Keyword If '${select}'=='1' click id=keyringsadd_customized Run Keyword If '${select}'=='1' input id=reissueExpiryDate 10 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[9]/div/div/div[1]/span/span/i #点击下拉框 - sleep 1 + sleep ${sleep_min} click ${type} #选择证书类型 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[10]/div/div/div[1]/span/span/i #点击下拉框 - sleep 2 + sleep ${sleep} click ${type1} #选择加密解密类型 - sleep 1 + sleep ${sleep_min} click id=keyringsadd_sub #点击OK缇交 - Sleep 2 - run keyword if "${search}"=="id" run keywords sleep 1 + sleep ${sleep} + run keyword if "${search}"=="id" run keywords sleep ${sleep_min} ... AND Settings-Search ${id-name} ${search} - ... ELSE IF "${search}"=="name" run keywords sleep 1 + ... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min} ... AND Settings-Search ${name} ${search} - Sleep 1 + sleep ${sleep_min} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 @@ -929,47 +930,47 @@ EditSSLDecryptionExclusion ... ${id-name}:输入搜索的内容 ... ${name}:输入name ... ${calue1}:输入内容 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - Sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[3] #点击SSL Decryption Exclusion按钮 - sleep 1 + sleep ${sleep_min} Settings-Search ${id-name} ${search} - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr #点击搜索列表 - Sleep 1 + sleep ${sleep_min} click id=ssl_edit #点击Edit - Sleep 1 + sleep ${sleep_min} Clear Element Text id=sslAdd_name #清空name输入框 - sleep 1 + sleep ${sleep_min} input id=sslAdd_name ${name} #输入name - sleep 1 + sleep ${sleep_min} input id=sslAdd_itemDesc ${value1} #输入内容 - sleep 1 + sleep ${sleep_min} click id=ssl_ok #点击OK缇交 - Wait Until Element Is Enabled id=ssl_create 20 - run keyword if "${search}"=="id" run keywords sleep 1 + Wait Until Element Is Enabled id=ssl_create ${sleep_Wait} + run keyword if "${search}"=="id" run keywords sleep ${sleep_min} ... AND Settings-Search ${id-name} ${search} - ... ELSE IF "${search}"=="name" run keywords sleep 1 + ... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min} ... AND Settings-Search ${name1} ${search} - Sleep 1 + sleep ${sleep_min} ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 EditDefaultCertificate [Arguments] ${time} [Documentation] 验证修改默认证书方法 - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr - sleep 1 + sleep ${sleep_min} click id=appEdit - sleep 2 + sleep ${sleep} clear element text id=reissueExpiryDate - sleep 1 + sleep ${sleep_min} input text id=reissueExpiryDate ${time} - sleep 1 + sleep ${sleep_min} click id=keyringsadd_sub - Wait Until Element Is Enabled id=app_create 20 + Wait Until Element Is Enabled id=app_create ${sleep_Wait} CreateSSLFingerprint [Arguments] ${Ja3} ${Pinning} ${search} ${Description}=null @@ -978,26 +979,26 @@ CreateSSLFingerprint ... ${Pinning}:是否Pinning(Yes/No) ... ${search}:查询条件 ... ${Description}:描述 - sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Certificate Managements - sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint - sleep 1 + sleep ${sleep_min} click id=Fingerprint_create #点击Create - sleep 1 + sleep ${sleep_min} input id=authoritiesAdd_name ${Ja3} - run keyword if "${Pinning}"=="Yes" run keywords sleep 1 + run keyword if "${Pinning}"=="Yes" run keywords sleep ${sleep_min} ... AND click id=pinningStateYes - run keyword if "${Pinning}"=="No" run keywords sleep 1 + run keyword if "${Pinning}"=="No" run keywords sleep ${sleep_min} ... AND click id=pinningStateNo - sleep 1 - run keyword if "${Description}"!="null" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Description}"!="null" run keywords sleep ${sleep_min} ... AND input id=labels_describe ${Description} - sleep 1 + sleep ${sleep_min} click id=authoritiesAdd_sub # 点击Ok按钮 - Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/div/span/div[2]/span 20 + Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/div/span/div[2]/span ${sleep_Wait} Settings-Search ${Ja3} ${search} ${text} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/div/span/div[2]/span ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[3]/div/div/div/p/span @@ -1012,31 +1013,31 @@ EditSSLFingerprint ... ${Pinning}:是否Pinning(Yes/No) ... ${search}:查询条件 id 或JA3Hash ... ${Description}:描述 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Certificate Managements - sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint - sleep 1 + sleep ${sleep_min} Settings-Search ${ID-Ja3} ${search} - sleep 2 + sleep ${sleep} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr - sleep 1 + sleep ${sleep_min} click id=Fingerprint_edit - sleep 1 + sleep ${sleep_min} input id=authoritiesAdd_name ${NewJa3} - run keyword if "${Pinning}"=="Yes" run keywords sleep 1 + run keyword if "${Pinning}"=="Yes" run keywords sleep ${sleep_min} ... AND click id=pinningStateYes - run keyword if "${Pinning}"=="No" run keywords sleep 1 + run keyword if "${Pinning}"=="No" run keywords sleep ${sleep_min} ... AND click id=pinningStateNo - sleep 1 - run keyword if "${Description}"!="null" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Description}"!="null" run keywords sleep ${sleep_min} ... AND input id=labels_describe ${Description} - sleep 1 + sleep ${sleep_min} click id=authoritiesAdd_sub - Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/div/span/div[2]/span 20 - run keyword if "${search}"=="id" run keywords sleep 1 + Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/div/span/div[2]/span ${sleep_Wait} + run keyword if "${search}"=="id" run keywords sleep ${sleep_min} ... AND Settings-Search ${ID-Ja3} ${search} - run keyword if "${search}"=="JA3Hash" run keywords sleep 1 + run keyword if "${search}"=="JA3Hash" run keywords sleep ${sleep_min} ... AND Settings-Search ${NewJa3} ${search} ${text} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/div/span/div[2]/span ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[3]/div/div/div/p/span @@ -1051,145 +1052,145 @@ SSLFingerprintImportUserAgent ... ${USQuantity} :导入文件对应指纹信息US得数量 ... ${AssertionText}:断言得US ... ${USXpath}:被断言US得xpath定位 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Certificate Managements - sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span[2]/button - sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[4]/div/div/div[2]/div/div[1]/input ${file} - sleep 2 + sleep ${sleep} click id=Import_ua_Ok sleep 5 Settings-Search ${ID} id - sleep 2 + sleep ${sleep} Mouse Over xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/div/span/div/span sleep 3 - run keyword if "${USQuantity}" >= "4" run keywords sleep 1 + run keyword if "${USQuantity}" >= "4" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div[last()]/ul/li/div[2]/span[2]/span[4] - ... AND sleep 2 + ... AND sleep ${sleep} ${text} Get Text xpath=${USXpath} Should Be Equal As Strings ${text} ${AssertionText} - run keyword if "${USQuantity}" >= "4" run keywords sleep 1 + run keyword if "${USQuantity}" >= "4" run keywords sleep ${sleep_min} ... AND click id=useragent_cancle - ... AND sleep 1 + ... AND sleep ${sleep_min} SSLFingerprintImportJA3 [Arguments] ${file} [Documentation] ... ${file}:上传文件路径 - sleep 1 + sleep ${sleep_min} click id=sidebarProxy_CertificateManagement #点击二级目录Certificate Managements - sleep 2 + sleep ${sleep} click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint - sleep 1 + sleep ${sleep_min} click id=objectImport - sleep 2 + sleep ${sleep} Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/div[2]/div[2]/div/div[1]/div/div/div[1]/div/form/div[1]/div/div/div[1]/input ${file} - sleep 2 + sleep ${sleep} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/div[2]/div[2]/div/div[1]/div/div/div[1]/div/form/div[2]/div/button - sleep 2 + sleep ${sleep} Settings_swarch_name [Arguments] ${name} - sleep 2 + sleep ${sleep} click element id=one-input - sleep 2 + sleep ${sleep} click element id=input_list_li2 - sleep 2 + sleep ${sleep} input text id=sreach_input ${name} - sleep 2 + sleep ${sleep} click element id=select_new_search_btn - sleep 2 + sleep ${sleep} click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table Create-Policy_Verify [Arguments] ${name} ${list2}=null ${fail1}=null ${list4}=null ${list6}=null ${min1}=null ... ${max1}=null - Sleep 1 + sleep ${sleep_min} click id=children5 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - sleep 2 + sleep ${sleep} click id=profilesTabs_Profile_DecryptionProfile #点击Decryption Profile - Sleep 1 + sleep ${sleep_min} click id=insertAdd #点击Create - Sleep 1 + sleep ${sleep_min} input id=insert_profileName ${name} - Sleep 1 + sleep ${sleep_min} @{list} Create List Common Name Issuer Self-signed Expiry Date Mutual Authentication ... On Protocol Errors Certificate Pinning Mirror Client Versions Allow HTTP/2 : FOR ${i} IN @{list} \ click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), "${i}")]/following-sibling::div/div/span - \ sleep 1 + \ sleep ${sleep_min} @{list1} Set Variable ${list2} ${fail} Set Variable ${fail1} : FOR ${j} IN @{list1} \ run keyword if "@{list1}"=="[]" Exit for loop \ ... ELSE Run Keywords click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), "${j}")]/following-sibling::div/div/span - \ ... AND sleep 1 - run keyword if "${fail}"=="Fail-close" Run Keywords sleep 1 + \ ... AND sleep ${sleep_min} + run keyword if "${fail}"=="Fail-close" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div[5]/div/div/label[1]/span - ... ELSE IF "${fail}"=="Pass-through" Run Keywords sleep 1 + ... ELSE IF "${fail}"=="Pass-through" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div[5]/div/div/label[2]/span ... ELSE log 1111 @{list3} Set Variable ${list4} : FOR ${k} IN @{list3} \ run keyword if "@{list3}"=="[]" Exit for loop \ ... ELSE Run Keywords click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), "${k}")]/following-sibling::div/div/span - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} @{list5} Set Variable ${list6} ${min} Set Variable ${min1} ${max} Set Variable ${max1} : FOR ${z} IN @{list5} \ run keyword if "@{list5}"=="[]" Min_max_version ${min} ${max} - \ ... ELSE IF "${z}"=="Allow HTTP/2" Run Keywords sleep 1 + \ ... ELSE IF "${z}"=="Allow HTTP/2" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), "${z}")]/following-sibling::div/div/span - \ ... ELSE IF "${z}"=="Mirror Client Versions" Run Keywords sleep 1 + \ ... ELSE IF "${z}"=="Mirror Client Versions" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), "${z}")]/following-sibling::div/div/span - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.0" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.0" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_min1 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.1" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.1" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_min2 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.2" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.2" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_min3 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.3" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="TLSv1.3" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_min4 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="SSLv3.0" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${min}"=="SSLv3.0" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_max0 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.0" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.0" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_max1 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.1" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.1" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_max2 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.2" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.2" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_max3 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.3" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="TLSv1.3" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_max4 - \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="SSLv3.0" Run Keywords sleep 1 + \ ... ELSE IF "${z}"!="Mirror Client Versions" and "${max}"=="SSLv3.0" Run Keywords sleep ${sleep_min} \ ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=pro_max0 - sleep 1 + sleep ${sleep_min} run keyword if "@{list5}"=="[]" Min_max_version ${min} ${max} ${class}= Get Element Attribute xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div[1]/div/div class log ${class} @@ -1197,119 +1198,119 @@ Create-Policy_Verify Min_max_version [Arguments] ${min} ${max} - run keyword if "${min}"=="TLSv1.0" Run Keywords sleep 1 + run keyword if "${min}"=="TLSv1.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min1 - ... ELSE IF "${min}"=="TLSv1.1" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.1" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min2 - ... ELSE IF "${min}"=="TLSv1.2" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.2" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min3 - ... ELSE IF "${min}"=="TLSv1.3" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.3" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min4 - ... ELSE IF "${min}"=="SSLv3.0" Run Keywords sleep 1 + ... ELSE IF "${min}"=="SSLv3.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max0 ... ELSE log 错误 - run keyword if "${max}"=="TLSv1.0" Run Keywords sleep 1 + run keyword if "${max}"=="TLSv1.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max1 - ... ELSE IF "${max}"=="TLSv1.1" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.1" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max2 - ... ELSE IF "${max}"=="TLSv1.2" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.2" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max3 - ... ELSE IF "${max}"=="TLSv1.3" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.3" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max4 - ... ELSE IF "${max}"=="SSLv3.0" Run Keywords sleep 1 + ... ELSE IF "${max}"=="SSLv3.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max0 ... ELSE log 错误 CreateDecryptionProfile [Arguments] ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null ${max1}=null - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - sleep 2 + sleep ${sleep} click id=profilesTabs_Profile_DecryptionProfile #点击Decryption Profile - Sleep 1 + sleep ${sleep_min} click id=insertAdd #点击Create - Sleep 1 + sleep ${sleep_min} input id=insert_profileName ${name} - Sleep 1 + sleep ${sleep_min} ButtonSwitch ${dict1} //*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " ")]/following-sibling::div/div el-switch is-checked el-switch ${fail} Set Variable ${fail1} - run keyword if "${fail}"=="Fail-close" Run Keywords sleep 1 + run keyword if "${fail}"=="Fail-close" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div[5]/div/div/label[1]/span - ... ELSE IF "${fail}"=="Pass-through" Run Keywords sleep 1 + ... ELSE IF "${fail}"=="Pass-through" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div[5]/div/div/label[2]/span ... ELSE log 1111 ${min} Set Variable ${min1} ${max} Set Variable ${max1} - run keyword if "${min}"=="TLSv1.0" Run Keywords sleep 1 + run keyword if "${min}"=="TLSv1.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min1 - ... ELSE IF "${min}"=="TLSv1.1" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.1" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min2 - ... ELSE IF "${min}"=="TLSv1.2" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.2" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min3 - ... ELSE IF "${min}"=="TLSv1.3" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.3" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min4 - ... ELSE IF "${min}"=="SSLv3.0" Run Keywords sleep 1 + ... ELSE IF "${min}"=="SSLv3.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min0 ... ELSE log 错误 - run keyword if "${max}"=="TLSv1.0" Run Keywords sleep 1 + run keyword if "${max}"=="TLSv1.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max1 - ... ELSE IF "${max}"=="TLSv1.1" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.1" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max2 - ... ELSE IF "${max}"=="TLSv1.2" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.2" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max3 - ... ELSE IF "${max}"=="TLSv1.3" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.3" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max4 - ... ELSE IF "${max}"=="SSLv3.0" Run Keywords sleep 1 + ... ELSE IF "${max}"=="SSLv3.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max0 ... ELSE log 错误 - sleep 2 + sleep ${sleep} click id=decryption-ok - Wait Until Element Is Enabled 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 20 - sleep 1 + Wait Until Element Is Enabled 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 ${sleep_Wait} + sleep ${sleep_min} Settings-Search ${name} ${search} #搜索框的关键字 - sleep 2 + sleep ${sleep} ${name1} get text 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 Should Be Equal As Strings ${name1} ${name} @@ -1321,10 +1322,10 @@ ButtonSwitch ${class}= Get Element Attribute xpath=${xpath1}${key}${xpath2} class run keyword if "${class}"=="${open}" and "${dict}[${key}]"=="1" log 默认开启,不进行操作 run keyword if "${class}"=="${open}" and "${dict}[${key}]"=="0" Run Keywords log 默认开启,但需求需要关闭,进行点击关闭按钮 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click xpath=${xpath1}${key}${xpath2}/span run keyword if "${class}"=="${close}" and "${dict}[${key}]"=="1" Run Keywords log 默认关闭,但需求需要开启,进行点击开启按钮 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click xpath=${xpath1}${key}${xpath2}/span run keyword if "${class}"=="${close}" and "${dict}[${key}]"=="0" log 默认关闭,不进行操作 END @@ -1332,72 +1333,72 @@ EditDecryptionProfile [Arguments] ${id-name} ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null ... ${max1}=null click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - sleep 2 + sleep ${sleep} click id=profilesTabs_Profile_DecryptionProfile #点击Decryption Profile - Sleep 1 + sleep ${sleep_min} Settings-Search ${id-name} ${search} #搜索框的关键字 - Wait Until Element Is Visible 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 20 + Wait Until Element Is Visible 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 ${sleep_Wait} 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 #点击搜索列表 - Sleep 1 + sleep ${sleep_min} click id=insertEdit #点击Edit - Sleep 2 + sleep ${sleep} Clear Element Text id=insert_profileName #清空name输入框 - sleep 1 + sleep ${sleep_min} input id=insert_profileName ${name} #输入name - sleep 1 + sleep ${sleep_min} ButtonSwitch ${dict1} //*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " ")]/following-sibling::div/div el-switch is-checked el-switch ${fail} Set Variable ${fail1} - run keyword if "${fail}"=="Fail-close" Run Keywords sleep 1 + run keyword if "${fail}"=="Fail-close" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[6]/div[5]/div/div/label[1]/span - ... ELSE IF "${fail}"=="Pass-through" Run Keywords sleep 1 + ... ELSE IF "${fail}"=="Pass-through" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[6]/div[5]/div/div/label[2]/span ... ELSE log 1111 ${min} Set Variable ${min1} ${max} Set Variable ${max1} - run keyword if "${min}"=="TLSv1.0" Run Keywords sleep 1 + run keyword if "${min}"=="TLSv1.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min1 - ... ELSE IF "${min}"=="TLSv1.1" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.1" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min2 - ... ELSE IF "${min}"=="TLSv1.2" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.2" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min3 - ... ELSE IF "${min}"=="TLSv1.3" Run Keywords sleep 1 + ... ELSE IF "${min}"=="TLSv1.3" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min4 - ... ELSE IF "${min}"=="SSLv3.0" Run Keywords sleep 1 + ... ELSE IF "${min}"=="SSLv3.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_min0 ... ELSE log 错误 - run keyword if "${max}"=="TLSv1.0" Run Keywords sleep 1 + run keyword if "${max}"=="TLSv1.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[3]/div/div/div[1]/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max1 - ... ELSE IF "${max}"=="TLSv1.1" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.1" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max2 - ... ELSE IF "${max}"=="TLSv1.2" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.2" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max3 - ... ELSE IF "${max}"=="TLSv1.3" Run Keywords sleep 1 + ... ELSE IF "${max}"=="TLSv1.3" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max4 - ... ELSE IF "${max}"=="SSLv3.0" Run Keywords sleep 1 + ... ELSE IF "${max}"=="SSLv3.0" Run Keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[10]/div[3]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=pro_max0 ... ELSE log 错误 click id=decryption-ok - Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile 30 + Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile ${sleep_Wait} Settings-Search ${id-name} ${search} #搜索框的关键字 ${name1} get text 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 Should Be Equal As Strings ${name1} ${name} @@ -1407,298 +1408,298 @@ DecryptionProfileButtonVerification ... ${xpath2}=")]/following-sibling::div/div ... ${open}=el-switch is-checked 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 - sleep 1 + sleep ${sleep_min} click id=insertEdit - sleep 1 + sleep ${sleep_min} ${dict} Set Variable ${dict1} FOR ${list} ${key} IN ENUMERATE @{dict} ${class}= Get Element Attribute xpath=${xpath1}${key}${xpath2} class - sleep 1 + sleep ${sleep_min} Should Be Equal As Strings ${class} ${open} END - sleep 1 + sleep ${sleep_min} click id=decryption-ok - Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile 20 + Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile ${sleep_Wait} Settings-Search ${id-name} ${search} Delete - sleep 2 + sleep ${sleep} click id=insertDel sleep 3 click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} Policy_Verify [Arguments] ${Select-Test1} ${APP-ID1} ${Address-type1}=null ${Client-IP1}=null ${Client-Port1}=null ${Server-IP1}=null ... ${Server-Port1}=null ${Protocol1}=null ${Subscriber-ID1}=null ${dict1}=null - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarTrouble_shooting #点击二级目录Trouble Shooting - Sleep 2 + sleep ${sleep} click id=Proxy_Profiles_Profile_ResponsePages #点击Policy Verify按钮 - Sleep 1 + sleep ${sleep_min} ${Select-Test} Set Variable ${Select-Test1} Run Keyword If "${Select-Test}"=="Security Policy Match" Run Keywords click id=SelectPolicy - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=SelectPolicytsg_security0 ... ELSE IF "${Select-Test}"=="Proxy Policy Match" Run Keywords click id=SelectPolicy - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=SelectPolicypxy_manipulation1 ... ELSE log 错误 ${Address-type} Set Variable ${Address-type1} Run Keyword If "${Address-type}"=="v4" Run Keywords click id=ip_addrType - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_addrType1 ... ELSE IF "${Address-type}"=="v6" Run Keywords click id=ip_addrType - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_addrType2 ... ELSE log 错误 ${Client-IP} Set Variable ${Client-IP1} Run Keyword If "${Client-IP}"=="null" log 默认参数,不输入 ... ELSE input id=clientIp ${Client-IP} - sleep 2 + sleep ${sleep} ${Client-Port} Set Variable ${Client-Port1} Run Keyword If "${Client-Port}"=="null" log 默认参数,不输入 ... ELSE input id=clientPort ${Client-Port} - sleep 2 + sleep ${sleep} ${Server-IP} Set Variable ${Server-IP1} Run Keyword If "${Server-IP}"=="null" log 默认参数,不输入 ... ELSE input id=serverIp ${Server-IP} - sleep 2 + sleep ${sleep} ${Server-Port} Set Variable ${Server-Port1} Run Keyword If "${Server-Port}"=="null" log 默认参数,不输入 ... ELSE input id=ip_serverPort ${Server-Port} - sleep 2 + sleep ${sleep} ${Protocol} Set Variable ${Protocol1} Run Keyword If "${Protocol}"=="Any" Run Keywords click id=ip_protocol - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_protocol0Any ... ELSE IF "${Protocol}"=="TCP" Run Keywords click id=ip_protocol - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_protocol6TCP ... ELSE IF "${Protocol}"=="UDP" Run Keywords click id=ip_protocol - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_protocol17UDP - sleep 2 + sleep ${sleep} ${Subscriber-ID} Set Variable ${Subscriber-ID1} Run Keyword If "${Subscriber-ID}"=="null" log 默认参数,不输入 ... ELSE input id=SubscriberID ${Subscriber-ID} - sleep 2 + sleep ${sleep} ${APP-ID} Set Variable ${APP-ID1} Run Keyword If "${Select-Test}"=="Security Policy Match" and "${APP-ID}"=="Protocol-HTTP" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/div[1]/div[1]/form/div[9]/div/div - ... AND sleep 2 + ... AND sleep ${sleep} ... AND Policy_Verify_Switch ${APP-ID} ... AND click id=Protocol-HTTPhttp - ... AND sleep 2 + ... AND sleep ${sleep} ... ELSE IF "${Select-Test}"=="Security Policy Match" and "${APP-ID}"=="Protocol-SSL" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/div[1]/div[1]/form/div[9]/div/div - ... AND sleep 2 + ... AND sleep ${sleep} ... AND Policy_Verify_Switch ${APP-ID} ... AND click id=Protocol-SSLssl ... ELSE IF "${Select-Test}"=="Security Policy Match" and "${APP-ID}"=="Protocol-DNS" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/div[1]/div[1]/form/div[9]/div/div - ... AND sleep 2 + ... AND sleep ${sleep} ... AND Policy_Verify_Switch ${APP-ID} ... AND click id=Protocol-DNSdns ... ELSE IF "${Select-Test}"=="Security Policy Match" and "${APP-ID}"=="Protocol-MAIL" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/div[1]/div[1]/form/div[9]/div/div - ... AND sleep 2 + ... AND sleep ${sleep} ... AND Policy_Verify_Switch ${APP-ID} ... AND click id=Protocol-MAILmail ... ELSE IF "${Select-Test}"=="Security Policy Match" and "${APP-ID}"=="Protocol-FTP" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/div[1]/div[1]/form/div[9]/div/div - ... AND sleep 2 + ... AND sleep ${sleep} ... AND Policy_Verify_Switch ${APP-ID} ... AND click id=Protocol-FTPftp ... ELSE IF "${Select-Test}"=="Proxy Policy Match" and "${APP-ID}"=="Protocol-HTTP" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/div[1]/div[1]/form/div[9]/div/div - ... AND sleep 2 + ... AND sleep ${sleep} ... AND Policy_Verify_Switch ${APP-ID} ... AND click id=Protocol-HTTPhttp ... ELSE IF "${Select-Test}"=="Proxy Policy Match" and "${APP-ID}"=="Protocol-DoH" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/div[1]/div[1]/form/div[9]/div/div - ... AND sleep 2 + ... AND sleep ${sleep} ... AND Policy_Verify_Switch ${APP-ID} ... AND click id=Protocol-DoHDoH ... ELSE log 传入参数错误 ${dict} Set Variable ${dict1} : FOR ${list} ${key} IN ENUMERATE @{dict} \ run keyword if "${key}"=="URL" and "${APP-ID}"=="Protocol-HTTP" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 2 + \ ... AND sleep ${sleep} \ ... AND click id=attributeNameurlURL - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="Host" and "${APP-ID}"=="Protocol-HTTP" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 2 + \ ... AND sleep ${sleep} \ ... AND click id=attributeNamehostHost - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="REQ Body" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamereq_bodyREQ Body - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="RES Body" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameres_bodyRES Body - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="REQ HDR" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamereq_hdrREQ HDR - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND Req_Res_Body ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="RES HDR" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameres_hdrRES HDR - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND Req_Res_Body ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="SNI" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamesniSNI - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="SAN" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamesanSAN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="CN" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamecnCN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="QNAME" and "${APP-ID}"=="Protocol-DNS" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameqnameQNAME - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="From" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamefromFrom - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="To" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNametoTo - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="Account" and "${APP-ID}"=="Protocol-MAIL" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameaccountAccount - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="Subject" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamesubjectSubject - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="Content" and "${APP-ID}"=="Protocol-MAIL" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamecontentContent - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="ATT Name" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameatt_nameATT Name - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="ATT CONT" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameatt_contentATT CONT - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="URL" and "${APP-ID}"=="Protocol-FTP" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameurlURL - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="Content" and "${APP-ID}"=="Protocol-FTP" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamecontentContent - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="Account" and "${APP-ID}"=="Protocol-FTP" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameaccountAccount - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="QNAME" and "${APP-ID}"=="Protocol-DoH" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNameqnameQNAME - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ run keyword if "${key}"=="Host" and "${APP-ID}"=="Protocol-DoH" Run Keywords click id=selectAppidBTN - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeName - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeNamehostHost - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] - \ ... AND sleep 1 - sleep 2 + \ ... AND sleep ${sleep_min} + sleep ${sleep} click id=verify-ok - sleep 2 + sleep ${sleep} ${State} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[1]/div[2]/div/div[2]/div[2]/ul/li[2]/span[3] - sleep 2 + sleep ${sleep} Should Be Equal As Strings ${State} Execute #断言 Req_Res_Body @@ -1706,138 +1707,138 @@ Req_Res_Body ${dict} Set Variable ${dict1} : FOR ${list} ${key} IN ENUMERATE @{dict} \ run keyword if "${key}"=="User Agent" Run Keywords click id=attributeValue_district - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeValue_districtUser-AgentUser Agent - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] \ run keyword if "${key}"=="Cookie" Run Keywords click id=attributeValue_district - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeValue_districtCookieCookie - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] \ run keyword if "${key}"=="Set-Cookie" Run Keywords click id=attributeValue_district - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeValue_districtSet-CookieSet-Cookie - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] \ run keyword if "${key}"=="Content-Type" Run Keywords click id=attributeValue_district - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND click id=attributeValue_districtContent-TypeContent-Type - \ ... AND sleep 1 + \ ... AND sleep ${sleep_min} \ ... AND input id=attributeValue_string ${dict}[${key}] CreateIpLibraries [Arguments] ${type1} ${type} ${Continent/Country} ${GeoNameID} ${City} ${ip} ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarAdvanced - sleep 1 + sleep ${sleep_min} click id=Advanced/ipLibrary #点击二级目录IP_Libraries - Sleep 2 + sleep ${sleep} click id=tagAdd #点击Create按钮 - sleep 2 + sleep ${sleep} run keyword if "${type}"=="Country" Run Keywords click id=security_action_country - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_geography_continent - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Switch_Geographic_Locations ${Continent/Country} ... AND input id=ip_geography_Country1 ${Country} run keyword if "${type}"=="City" Run Keywords click id=security_action_city - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_geography_Country - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Switch_Geographic_Locations ${Continent/Country} - sleep 1 + sleep ${sleep_min} input id=ip_geography_name ${GeoNameID} - sleep 1 + sleep ${sleep_min} input id=ip_geography_City ${City} - sleep 1 + sleep ${sleep_min} click id=ip_geography_IPRange - sleep 1 + sleep ${sleep_min} input id=ip_input0 ${ip}[0] - sleep 1 + sleep ${sleep_min} run keyword if "${j}"!="1" Ip_Range_Create ${j} ${ip} run keyword if "${Longitude}"!="null" Run Keywords input id=ip_geography_longitude ${Longitude} - ... AND sleep 1 + ... AND sleep ${sleep_min} run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude} - ... AND sleep 1 + ... AND sleep ${sleep_min} click id=IP_library_add - Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div 20 + Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div ${sleep_Wait} #验证新建是否成功 Switch_IP_Libraries ${type1} ${GeoNameID} ${GeoNameID} ${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div - sleep 2 + sleep ${sleep} Should Be Equal As Strings ${GeoNameText} ${GeoNameID} #断言 EditIpLibraries [Arguments] ${type} ${GeoNameID} ${City}=null ${ip}=null ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null ${type1}=null ${type2}=null click id=tagEdit #点击Edit按钮 - sleep 2 + sleep ${sleep} run keyword if "${City}"!="null" input id=ip_geography_City ${City} - sleep 1 + sleep ${sleep_min} run keyword if "${type1}"=="edit" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[2]/i[1] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND clear element text xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[1]/form/div/div/div - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input id=ip_input0 ${ip}[0] - ... AND sleep 1 + ... AND sleep ${sleep_min} run keyword if "${type1}"=="create" Ip_Range_Edit_Create ${j} ${ip} - sleep 1 + sleep ${sleep_min} run keyword if "${type1}"=="delete" and "${type2}"=="create" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[2]/i[2] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Ip_Range_Edit_Create ${j} ${ip} run keyword if "${type1}"=="null" log 不做更改 run keyword if "${Longitude}"!="null" Run Keywords input id=ip_geography_longitude ${Longitude} - ... AND sleep 1 + ... AND sleep ${sleep_min} run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude} - ... AND sleep 1 + ... AND sleep ${sleep_min} click id=IP_library_add - Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div 20 + Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div ${sleep_Wait} #验证修改是否成功 Switch_IP_Libraries ${type} ${GeoNameID} ${GeoNameID} ${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div - sleep 2 + sleep ${sleep} Should Be Equal As Strings ${GeoNameText} ${GeoNameID} #断言 CreateIpLibrariesErrorVerification [Arguments] ${type1} ${type} ${Continent/Country} ${GeoNameID} ${City} ${ip} ${AssertPath} ${AssertText} ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=sidebarAdvanced - sleep 1 + sleep ${sleep_min} click id=Advanced/ipLibrary #点击二级目录IP_Libraries - Sleep 2 + sleep ${sleep} click id=tagAdd #点击Create按钮 - sleep 2 + sleep ${sleep} run keyword if "${type}"=="Country" Run Keywords click id=security_action_country - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_geography_continent - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Switch_Geographic_Locations ${Continent/Country} ... AND input id=ip_geography_Country1 ${Country} run keyword if "${type}"=="City" Run Keywords click id=security_action_city - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=ip_geography_Country - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Switch_Geographic_Locations ${Continent/Country} - sleep 1 + sleep ${sleep_min} input id=ip_geography_name ${GeoNameID} - sleep 1 + sleep ${sleep_min} input id=ip_geography_City ${City} - sleep 1 + sleep ${sleep_min} click id=ip_geography_IPRange - sleep 1 + sleep ${sleep_min} input id=ip_input0 ${ip}[0] - sleep 1 + sleep ${sleep_min} run keyword if "${j}"!="1" Ip_Range_Create ${j} ${ip} run keyword if "${Longitude}"!="null" Run Keywords input id=ip_geography_longitude ${Longitude} - ... AND sleep 1 + ... AND sleep ${sleep_min} run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude} - ... AND sleep 1 + ... AND sleep ${sleep_min} click id=IP_library_add - sleep 2 + sleep ${sleep} ${text} get text xpath=${AssertPath} Should Be Equal As Strings ${text} ${AssertText} @@ -1846,10 +1847,10 @@ SystemUsagePolicyVerification [Documentation] ... ${type}:查询的字段 格式:(Proxy/Security/WANNAT/ProxyTCPOptions)_(Disabled/Enabled) click id=Advanced/storageQuota #点击System Usage - Sleep 1 + sleep ${sleep_min} ${text1}= SystemUsageChart ${type} click id=Advanced/storageQuota - sleep 1 + sleep ${sleep_min} ${text2}= SystemUsageText ${type} ${text3}= SystemUsagePolicySQLVerification ${type} ${DisabledOREnabled} Should Be Equal As Strings ${text1} ${text2} @@ -1860,10 +1861,10 @@ SystemUsageObjectsVerification [Documentation] ... ${type}:查询的字段 格式:(Proxy/Security/WANNAT/ProxyTCPOptions)_(Disabled/Enabled) click id=Advanced/storageQuota #点击System Usage - Sleep 1 + sleep ${sleep_min} ${text1}= SystemUsageChart ${type} click id=Advanced/storageQuota - sleep 1 + sleep ${sleep_min} ${text2}= SystemUsageText ${type} ${text3}= SystemUsageObjectsSQLVerification ${type} Should Be Equal As Strings ${text1} ${text2} @@ -1883,7 +1884,7 @@ SystemUsageChart ... "${type}"=="URLs_Items" or "${type}"=="URLs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[6] ... "${type}"=="IPAddresses_IPV4_Items" or "${type}"=="IPAddresses_IPV6_Items" or "${type}"=="IPAddresses_IP_Objects" or "${type}"=="IPAddresses_Geography_Items" or "${type}"=="IPAddresses_Geography_Objects" or "${type}"=="IPAddresses_IPLearning_Items(IPv4)" or "${type}"=="IPAddresses_IPLearning_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[7] ... "${type}"=="Applications_Items" or "${type}"=="Applications_Objects" or "${type}"=="Applications_Groups_Objects" or "${type}"=="Applications_Groups_Items" or "${type}"=="Applications_Selectors_Objects" or "${type}"=="Applications_Selectors_Items" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[8] - sleep 1 + sleep ${sleep_min} ${ChartValueXpath}= SystemUsageGetText ${type} Mouse Over xpath=${ChartSuspension} Wait Until Element Is Visible xpath=/html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span 10 @@ -1904,7 +1905,7 @@ SystemUsageText ... "${type}"=="URLs_Items" or "${type}"=="URLs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[6] ... "${type}"=="IPAddresses_IPV4_Items" or "${type}"=="IPAddresses_IPV6_Items" or "${type}"=="IPAddresses_IP_Objects" or "${type}"=="IPAddresses_Geography_Items" or "${type}"=="IPAddresses_Geography_Objects" or "${type}"=="IPAddresses_IPLearning_Items(IPv4)" or "${type}"=="IPAddresses_IPLearning_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[7] ... "${type}"=="Applications_Items" or "${type}"=="Applications_Objects" or "${type}"=="Applications_Groups_Objects" or "${type}"=="Applications_Groups_Items" or "${type}"=="Applications_Selectors_Objects" or "${type}"=="Applications_Selectors_Items" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[8] - sleep 1 + sleep ${sleep_min} ${TextValueXpath}= SystemUsageGetText ${type} Mouse Over xpath=${TextSuspension} Wait Until Element Is Visible xpath=/html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span 10 @@ -1914,7 +1915,7 @@ SystemUsageText SystemUsagePolicySQLVerification [Arguments] ${type} ${DisabledOREnabled} click id=Advanced/storageQuota #点击System Usage - sleep 1 + sleep ${sleep_min} ${DisabledOREnabled} Set Variable if "${DisabledOREnabled}"=="Disabled" 0 1 ${SQL} Set Variable if "${type}"=="Proxy_Disabled" or "${type}"=="Proxy_Enabled" pxy_ctrl_compile ... "${type}"=="Security_Disabled" or "${type}"=="Security_Enabled" tsg_security_compile @@ -2013,49 +2014,49 @@ CreatePacketCapture ... ${ClientPort}:客户端端口 默认为空 ... ${ServerIP}:服务器 IP 默认为空 ... ${ServerPort}:服务器端口 默认为空 - Sleep 1 + sleep ${sleep_min} OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert click id=packet_create - sleep 2 + sleep ${sleep} input id=PacketCaptureadd_name ${name} - sleep 1 - run keyword if "${AddressType}"=="IPV6" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${AddressType}"=="IPV6" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=select_addrtype1 - ... AND sleep 1 + ... AND sleep ${sleep_min} input id=PacketCaptureadd_cliIp ${ClientIP} - sleep 1 - run keyword if "${ClientPort}"!="null" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${ClientPort}"!="null" run keywords sleep ${sleep_min} ... AND input id=PacketCaptureadd_cliPort ${ClientPort} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log ClientPort不输入 - run keyword if "${ServerIP}"!="null" run keywords sleep 1 + run keyword if "${ServerIP}"!="null" run keywords sleep ${sleep_min} ... AND input id=PacketCaptureadd_serIp ${ServerIP} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log ServerIP不输入 - run keyword if "${ServerPort}"!="null" run keywords sleep 1 + run keyword if "${ServerPort}"!="null" run keywords sleep ${sleep_min} ... AND input id=PacketCaptureadd_serPort ${ServerPort} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log ServerPort不输入 click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[7]/div/div/div/span/span/i - sleep 1 - run keyword if "${Protocol}"=="TCP" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Protocol}"=="TCP" run keywords sleep ${sleep_min} ... AND click id=select_Protocol0 - ... ELSE IF "${Protocol}"=="UDP" run keywords sleep 1 + ... ELSE IF "${Protocol}"=="UDP" run keywords sleep ${sleep_min} ... AND click id=select_Protocol1 - ... ELSE IF "${Protocol}"=="Any" run keywords sleep 1 + ... ELSE IF "${Protocol}"=="Any" run keywords sleep ${sleep_min} ... AND click id=select_Protocol2 - sleep 1 + sleep ${sleep_min} PacketCaptureEffectiveDevices ${EffectiveDevices} input id=PacketCaptureadd_MaxPacketCapNum ${CapturedNumber} - sleep 1 + sleep ${sleep_min} input id=PacketCaptureadd_pcapStorageDay ${CaptureDuration} - sleep 1 + sleep ${sleep_min} click id=packetCaptureAdd_ok - Wait Until Element is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] 30 + Wait Until Element is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] ${sleep_Wait} Settings-search ${name} name - sleep 1 + sleep ${sleep_min} ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div/div/p/span Should Be Equal As Strings ${text} ${name} @@ -2073,186 +2074,186 @@ EditPacketCapture ... ${ServerIP}:服务器 IP 默认为空 ... ${ServerPort}:服务器端口 默认为空 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - Sleep 1 + sleep ${sleep_min} click id=packet_edit - sleep 2 + sleep ${sleep} input id=PacketCaptureadd_name ${name} - sleep 1 - run keyword if "${AddressType}"=="IPV6" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${AddressType}"=="IPV6" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[2]/div/div/div/span/span/i - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=select_addrtype1 - ... AND sleep 1 + ... AND sleep ${sleep_min} input id=PacketCaptureadd_cliIp ${ClientIP} - sleep 1 - run keyword if "${ClientPort}"!="null" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${ClientPort}"!="null" run keywords sleep ${sleep_min} ... AND Clear Element Text id=PacketCaptureadd_cliPort - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input id=PacketCaptureadd_cliPort ${ClientPort} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log ClientPort不输入 - run keyword if "${ServerIP}"!="null" run keywords sleep 1 + run keyword if "${ServerIP}"!="null" run keywords sleep ${sleep_min} ... AND input id=PacketCaptureadd_serIp ${ServerIP} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log ServerIP不输入 - run keyword if "${ServerPort}"!="null" run keywords sleep 1 + run keyword if "${ServerPort}"!="null" run keywords sleep ${sleep_min} ... AND Clear Element Text id=PacketCaptureadd_serPort - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input id=PacketCaptureadd_serPort ${ServerPort} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... ELSE log ServerPort不输入 click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[7]/div/div/div/span/span/i - sleep 1 - run keyword if "${Protocol}"=="TCP" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Protocol}"=="TCP" run keywords sleep ${sleep_min} ... AND click id=select_Protocol0 - ... ELSE IF "${Protocol}"=="UDP" run keywords sleep 1 + ... ELSE IF "${Protocol}"=="UDP" run keywords sleep ${sleep_min} ... AND click id=select_Protocol1 - ... ELSE IF "${Protocol}"=="Any" run keywords sleep 1 + ... ELSE IF "${Protocol}"=="Any" run keywords sleep ${sleep_min} ... AND click id=select_Protocol2 - sleep 1 + sleep ${sleep_min} click id=packetCaptureAdd_effremove - sleep 1 + sleep ${sleep_min} PacketCaptureEffectiveDevices ${EffectiveDevices} input id=PacketCaptureadd_MaxPacketCapNum ${CapturedNumber} - sleep 1 + sleep ${sleep_min} input id=PacketCaptureadd_pcapStorageDay ${CaptureDuration} - sleep 1 + sleep ${sleep_min} click id=packetCaptureAdd_ok - Wait Until Element is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] 30 + Wait Until Element is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] ${sleep_Wait} Settings-search ${name} name - sleep 2 + sleep ${sleep} ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div/div/p/span Should Be Equal As Strings ${text} ${name} PacketCaptureEffectiveDevices [Arguments] ${EffectiveDevices} click id=PacketCaptureadd_EDevice - sleep 1 - run keyword if "${EffectiveDevices}"=="Nur-sultan" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${EffectiveDevices}"=="Nur-sultan" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[1]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Aktau" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Aktau" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[2]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Aktubinsk" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Aktubinsk" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[3]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Almaty" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Almaty" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[4]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Atyrau" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Atyrau" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[5]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Karaganda" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Karaganda" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[6]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Kokshetau" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Kokshetau" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[7]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Kostanay" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Kostanay" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[8]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Kyzylorda" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Kyzylorda" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[9]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Pavlodar" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Pavlodar" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[10]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Petropavl" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Petropavl" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[11]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Semey" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Semey" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[12]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Shymkent" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Shymkent" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[13]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Taldykurgan" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Taldykurgan" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[14]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Taraz" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Taraz" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[15]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Uralsk" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Uralsk" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[16]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Ust-Kamenogorsk" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Ust-Kamenogorsk" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[17]/div[1]/label/span/span - ... ELSE IF "${EffectiveDevices}"=="Zhezkazgan" run keywords sleep 1 + ... ELSE IF "${EffectiveDevices}"=="Zhezkazgan" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[18]/div[1]/label/span/span - sleep 1 + sleep ${sleep_min} click id=proxyManipulationConditionsAreaSuccess - sleep 1 + sleep ${sleep_min} PacketCaptureSerch [Arguments] ${status} - sleep 1 + sleep ${sleep_min} click 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 1 + sleep ${sleep_min} click xpath=/html/body/div/div[1]/div[1]/ul/li[6] - sleep 1 - run keyword if "${status}"=="Effective" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${status}"=="Effective" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[1]/span - ... ELSE IF "${status}"=="Invalid" run keywords sleep 1 + ... ELSE IF "${status}"=="Invalid" run keywords sleep ${sleep_min} ... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]/span - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i Switch_Geographic_Locations [Arguments] ${Continent/Country} - sleep 1 + sleep ${sleep_min} input id=objectName_seach ${Continent/Country} - sleep 1 + sleep ${sleep_min} press keys id=objectName_seach ENTER - sleep 2 + sleep ${sleep} click xpath=//*[@id="right_locationList"]/div[2]/div[1]/div[2]/div/div - sleep 1 + sleep ${sleep_min} click id=interceptionadd_allcancelobject9 - sleep 1 + sleep ${sleep_min} Ip_Range_Create [Arguments] ${j} ${ip} - sleep 1 + sleep ${sleep_min} : FOR ${i} IN RANGE 1 ${j} - \ sleep 1 + \ sleep ${sleep_min} \ click id=addIPList - \ sleep 1 + \ sleep ${sleep_min} \ input id=ip_input${i} ${ip}[${i}] - \ sleep 1 + \ sleep ${sleep_min} Ip_Range_Edit_Create [Arguments] ${j} ${ip} - sleep 1 + sleep ${sleep_min} : FOR ${i} IN RANGE ${j} - \ sleep 1 + \ sleep ${sleep_min} \ click id=addIPList - \ sleep 1 + \ sleep ${sleep_min} \ input id=ip_input${i} ${ip}[${i}] - \ sleep 1 - sleep 1 + \ sleep ${sleep_min} + sleep ${sleep_min} DeleteIPLibraries - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 2 + sleep ${sleep} click id=tagDel - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} Switch_IP_Libraries [Arguments] ${type} ${value} ${GeoName} - sleep 2 + sleep ${sleep} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div/div/input - sleep 2 + sleep ${sleep} run keyword if "${type}"=="Geo Name" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[2] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value} run keyword if "${type}"=="Country and Region" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[3] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value} run keyword if "${type}"=="City" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[4] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value} run keyword if "${type}"=="Operator" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[5] - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value} - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click xpath=/html/body/div[2]/div[1]/div[1]/ul/li[1] - sleep 1 - sleep 1 + sleep ${sleep_min} + sleep ${sleep_min} click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/i - sleep 1 + sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] - sleep 1 + sleep ${sleep_min} ${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div - sleep 2 + sleep ${sleep} Should Be Equal As Strings ${GeoNameText} ${GeoName} #断言 OpenPages @@ -2262,14 +2263,14 @@ OpenPages ... ${Three-levelMenu}:三级菜单 ... ${Targeting} :三级菜单 定位方式 默认不输入为id click id=children6 - Sleep 1 + sleep ${sleep_min} click id=${SecondaryMenu} - sleep 1 - run keyword if "${Targeting}"=="null" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Targeting}"=="null" run keywords sleep ${sleep_min} ... AND click id=${Three-levelMenu} - run keyword if "${Targeting}"=="xpath" run keywords sleep 1 + run keyword if "${Targeting}"=="xpath" run keywords sleep ${sleep_min} ... AND click ${Targeting}=${Three-levelMenu} - sleep 2 + sleep ${sleep} TurnPage [Arguments] ${NextPage} ${PreviousPage} ${JumpInput} ${pages} ${AssertXpath} ${lastpage}=null ${lastxpath}=null @@ -2280,22 +2281,22 @@ TurnPage ... ${pages} 跳转得页码 ${text1} get text xpath=${AssertXpath} click xpath=${NextPage} - sleep 2 + sleep ${sleep} ${text2} get text xpath=${AssertXpath} click xpath=${PreviousPage} - sleep 2 + sleep ${sleep} ${text3} get text xpath=${AssertXpath} Clear Element Text xpath=${JumpInput} - sleep 2 + sleep ${sleep} input text xpath=${JumpInput} ${pages} - sleep 2 + sleep ${sleep} press keys xpath=${JumpInput} ENTER - sleep 2 + sleep ${sleep} ${text4} get text xpath=${AssertXpath} - run keyword if "${lastpage}" == "null" run keywords sleep 1 + run keyword if "${lastpage}" == "null" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/ul/li[last()] ... ELSE click xpath=${lastxpath} - sleep 2 + sleep ${sleep} ${text5} get text xpath=${AssertXpath} Should Not Be Equal ${text1} ${text2} Should Not Be Equal ${text3} ${text2} @@ -2309,29 +2310,29 @@ PagingDisplay ... ${last} 次关键字 当最后一页定位和其他页面不同时,传入非null的值 ... ${lastxpath} 当最后一页定位和其他页面不同时,传入最后一页的xpath 定位 Mouse Over xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div/span/span/div/i - sleep 1 - run keyword if "${Number}"=="30" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Number}"=="30" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[2] - ... ELSE IF "${Number}"=="50" run keywords sleep 1 + ... ELSE IF "${Number}"=="50" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[3] - ... ELSE IF "${Number}"=="100" run keywords sleep 1 + ... ELSE IF "${Number}"=="100" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[4] ... ELSE Clear Element Text xpath=/html/body/div[last()]/div[1]/div[2]/input ... AND Input Text xpath=/html/body/div[last()]/div[1]/div[2]/input ${Number} - sleep 1 + sleep ${sleep_min} Click element xpath=/html/body/div[last()]/div[1]/div[2]/button - sleep 2 + sleep ${sleep} ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/span[1] - sleep 1 + sleep ${sleep_min} ${Quantity} StringSegmentation ${text} - sleep 1 + sleep ${sleep_min} ${quyu} Evaluate ${Quantity}%${Number} ${qumo} Evaluate ${Quantity}/${Number} ${quzheng} Evaluate int(${qumo}) ${b} Set Variable ${1} ${Page1} Evaluate ${quzheng}+${b} ${Page} Set Variable if "${quyu}" != "0" ${Page1} ${quzheng} - sleep 1 + sleep ${sleep_min} ${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/ul/li[last()] Should Be Equal As Strings ${text} ${Page} @@ -2342,102 +2343,102 @@ PagingDisplay_Second ... ${last} 次关键字 当最后一页定位和其他页面不同时,传入非null的值 ... ${lastxpath} 当最后一页定位和其他页面不同时,传入最后一页的xpath 定位 Mouse Over xpath=//*[@id="ly-table1-listcontent"]/div/div/span/span/div/i - sleep 1 - run keyword if "${Number}"=="30" run keywords sleep 1 + sleep ${sleep_min} + run keyword if "${Number}"=="30" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[2] - ... ELSE IF "${Number}"=="50" run keywords sleep 1 + ... ELSE IF "${Number}"=="50" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[3] - ... ELSE IF "${Number}"=="100" run keywords sleep 1 + ... ELSE IF "${Number}"=="100" run keywords sleep ${sleep_min} ... AND Click element xpath=//*[@id="page-size"]/div/label[4] ... ELSE Clear Element Text xpath=/html/body/div[last()]/div[1]/div[2]/input ... AND Input Text xpath=/html/body/div[last()]/div[1]/div[2]/input ${Number} - sleep 1 + sleep ${sleep_min} Click element xpath=/html/body/div[last()]/div[1]/div[2]/button - sleep 2 + sleep ${sleep} ${text} Get text xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/span[1] - sleep 1 + sleep ${sleep_min} ${Quantity} StringSegmentation ${text} - sleep 1 + sleep ${sleep_min} ${quyu} Evaluate ${Quantity}%${Number} ${qumo} Evaluate ${Quantity}/${Number} ${quzheng} Evaluate int(${qumo}) ${b} Set Variable ${1} ${Page1} Evaluate ${quzheng}+${b} ${Page} Set Variable if "${quyu}" != "0" ${Page1} ${quzheng} - sleep 1 + sleep ${sleep_min} ${text} Get text xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/ul/li[last()] Should Be Equal As Strings ${text} ${Page} ALL [Arguments] click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[5]/div/div/div/div/div[2]/div[7] - sleep 2 + sleep ${sleep} click element xpath=//*[@id="policy_IP_library1"]/div/p/i - sleep 2 + sleep ${sleep} DeleteKeyrings_del - sleep 2 + sleep ${sleep} click id=appDel - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} DeletehijackDel - sleep 2 + sleep ${sleep} click id=hijackDel - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} DeleteresinseDel - sleep 2 + sleep ${sleep} click id=resinseDel - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} Deletessl_del - sleep 2 + sleep ${sleep} click id=ssl_del - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} DeletetrafficMirrorDel - sleep 2 + sleep ${sleep} click id=trafficMirrorDel - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} DeleteAuthorities_del - sleep 2 + sleep ${sleep} click id=appDel - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - sleep 2 + sleep ${sleep} DeleteSSLFingerprint - sleep 2 + sleep ${sleep} click id=Fingerprint_del - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] sleep 3 DeletePacketCapture - sleep 2 + sleep ${sleep} click id=packet_del - sleep 2 + sleep ${sleep} click xpath=/html/body/div/div/div[3]/button[2] - Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20 + Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait} Policy_Verify_Switch [Arguments] ${Protocol} - sleep 1 + sleep ${sleep_min} input xpath=//*[@id="objectName_seach"] ${Protocol} press keys xpath=//*[@id="objectName_seach"] ENTER - sleep 1 + sleep ${sleep_min} UploadFilesSize [Arguments] ${Page} ${name} ${file} ${Promptinfor} @@ -2447,83 +2448,83 @@ UploadFilesSize ... ${name}:新建页面name输入框里的内容 ... ${file}:上传文件本地 ... ${Promptinfor}:页面提示信息 - run keyword if "${Page}"=="ResponsePages" run keywords sleep 1 + run keyword if "${Page}"=="ResponsePages" run keywords sleep ${sleep_min} ... AND click id=children6 #点击一级目录Settings - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND click id=respinseAdd #Response Pages点击Create - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND input id=responsepages_profileName ${name} #输入name - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=responseAddOk1 - ... AND sleep 1 - run keyword if "${Page}"=="InsertScripts" run keywords sleep 1 + ... AND sleep ${sleep_min} + run keyword if "${Page}"=="InsertScripts" run keywords sleep ${sleep_min} ... AND click id=children6 #点击一级目录Settings - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND click id=profilesTabs_Profile_Insert #点击Insert Scripts按钮 - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click id=insertAdd #点击Create - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND input id=insert_profileName ${name} #输入name - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND Choose File xpath=//*[@id="insertAddUpload"]/div[1]/input ${file} #上传文件 - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND click id=insert_select_format #点击下拉框按钮 - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click //span[.="css"] #选择css - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=insertAddOk1 #点击OK - ... AND sleep 2 - run keyword if "${Page}"=="HijackFiles" run keywords sleep 1 + ... AND sleep ${sleep} + run keyword if "${Page}"=="HijackFiles" run keywords sleep ${sleep_min} ... AND click id=children6 #点击一级目录Settings - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND click id=profilesTabs_Profile_HijackFiles #点击Hijack Files按钮 - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click id=hijackAdd #点击Create - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND input id=hijack_profileName ${name} #输入name - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/div[1]/input ${file} #上传文件 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=hijackAddContentType #点击+ 打开侧滑窗口 - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click id=text/html0 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=hijackAddOk1 - ... AND sleep 1 - run keyword if "${Page}"=="SSLFingerprint" run keywords sleep 1 + ... AND sleep ${sleep_min} + run keyword if "${Page}"=="SSLFingerprint" run keywords sleep ${sleep_min} ... AND click id=children6 #点击一级目录Settings - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click id=sidebarProxy_CertificateManagement #点击二级目录 - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND click xpath=//*[@id="proxyTabs"]/div/ul/li[5] - ... AND Sleep 1 + ... AND sleep ${sleep_min} ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span[2]/button - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[4]/div/div/div[2]/div/div[1]/input ${file} - ... AND sleep 2 + ... AND sleep ${sleep} ... AND click id=Import_ua_Ok - ... AND sleep 1 - run keyword if "${Page}" == "TrustedCertificateAuthorities" run keywords sleep 1 + ... AND sleep ${sleep_min} + run keyword if "${Page}" == "TrustedCertificateAuthorities" run keywords sleep ${sleep_min} ... AND click id=children6 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND click id=app_create #点击Import - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND input id=authoritiesAdd_name ${name} #输入name - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND Choose File xpath=//*[@id="upload_dome"]/div/input ${file} #上传文件 - ... AND Sleep 2 + ... AND sleep ${sleep} ... AND click id=authoritiesAdd_sub #点击OK缇交 - ... AND Sleep 2 + ... AND sleep ${sleep} ${text} get text xpath=/html/body/div[last()]/p Should Be Equal As Strings ${text} ${Promptinfor} @@ -2536,11 +2537,11 @@ DownLoadFile ${a} get_md5_01 ${UploadFilePath} sleep ${sleep} ${b} get_md5_01 ${DownloadFilePath} - sleep 1 + sleep ${sleep_min} Should Be Equal As Strings ${a} ${b} - sleep 2 + sleep ${sleep} Remove File ${DownloadFilePath} - sleep 2 + sleep ${sleep} #Run_Keyword_And_Continue_On_Failure File_Should_Exist ${DownloadFilePath} #出错后继续执行,如文件在指定路径存在则通过 DeleteReferencedData @@ -2551,35 +2552,35 @@ DeleteReferencedData ... ${ID} :查询数据的ID ... ${PromptInformation} :提示信息 ... ${Three-levelMenu}:三级菜单 - Sleep 1 + sleep ${sleep_min} click id=children6 #点击一级目录Settings - Sleep 1 + sleep ${sleep_min} click id=${SecondaryMenu} #点击二级目录Proxy Profiles - Sleep 2 - run keyword if "${Three-levelMenu}"!="null" run keywords sleep 1 + sleep ${sleep} + run keyword if "${Three-levelMenu}"!="null" run keywords sleep ${sleep_min} ... AND click id=${Three-levelMenu} - sleep 1 + sleep ${sleep_min} Settings-Search ${ID} id - Sleep 2 - run keyword if "${Page}"=="ResponsePage" run keywords sleep 1 + sleep ${sleep} + run keyword if "${Page}"=="ResponsePage" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND DeleteresinseDel - run keyword if "${Page}"=="InsertScript" run keywords sleep 1 + run keyword if "${Page}"=="InsertScript" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Delete - run keyword if "${Page}"=="HijackFile" run keywords sleep 1 + run keyword if "${Page}"=="HijackFile" run keywords sleep ${sleep_min} ... AND click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND DeletehijackDel - run keyword if "${Page}"=="TrafficMirrorProfile" run keywords sleep 1 + run keyword if "${Page}"=="TrafficMirrorProfile" run keywords sleep ${sleep_min} ... AND 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 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND DeletetrafficMirrorDel - run keyword if "${Page}"=="DecryptionProfile" run keywords sleep 1 + run keyword if "${Page}"=="DecryptionProfile" run keywords sleep ${sleep_min} ... AND 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 - ... AND sleep 1 + ... AND sleep ${sleep_min} ... AND Delete ${text} get text xpath=/html/body/div[last()]/p Should Be Equal As Strings ${text} ${PromptInformation} @@ -2605,13 +2606,13 @@ SortButton ${assert} Set Variable if "${page}" == "Trusted Certificate Authorities" //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span ... "${page}" == "Decryption Keyrings" //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/td[1]/div/div/div/p/span ... "${page}" == "Cached Intermediate Certificates" //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span - sleep 1 + sleep ${sleep_min} ${text1} get text xpath=${assert} click xpath=${button}${One} - sleep 2 + sleep ${sleep} ${text2} get text xpath=${assert} click xpath=${button}${Two} - sleep 2 + sleep ${sleep} ${text3} get text xpath=${assert} Should Not Be Equal ${text1} ${text2} Should Not Be Equal ${text2} ${text3} diff --git a/03-Variable/BifangApiVariable.txt b/03-Variable/BifangApiVariable.txt index 5ee0b15..87810f6 100644 --- a/03-Variable/BifangApiVariable.txt +++ b/03-Variable/BifangApiVariable.txt @@ -4,19 +4,19 @@ ${loginType} ui #执行环境是否Widonws ${systemType} api #API配置信息 -${host} 192.168.44.72 +${host} 192.168.44.71 ${port} 8080 ${authmode} 1 ${authCode} ${EMPTY} ${ldapId} 27 ${version} v1 ${version2} v2 -${username} lyf -${password} 1 +${username} byb +${password} 111111 ${encodePassword} ${EMPTY} ${token} ${EMPTY} #[Documentation] 测试终端IP统一配置 -${testClentIP} 192.168.50.57 +${testClentIP} 192.168.32.32 ${testSubscriberID} $test57 #自动化标签 ${userTagIds} ${EMPTY} @@ -29,7 +29,7 @@ ${addTsgUIAPIFlag} 1 ${policyVerificationSleepSeconds} 20 #策略验证后到验证策略日志需等待时间 ${policyLogVerificationSleepSeconds} 60 -${path} F:/tsg-git/tsg_autotest/05-Other/ +${path} C:/Users/byb11/git/tsg_autotest/05-Other/ ${Downloadpath} C:/Users/byb11/Downloads/ ${curlbatpath} ${path}/curl/ ${mailpath} ${path}/mail/ @@ -67,6 +67,9 @@ ${oamPort} 50080 ${contrast} 0.1 ${editpasswd} no #设置密码过期时是否需要修改密码,no为不修改,yes为修改 # Mysql数据库连接信息 -${mysqlHost} host='192.168.44.72',port=3306,user='root',passwd='bifang!@#',database='tsg-bifang' +${mysqlHost} host='192.168.44.71',port=3306,user='root',passwd='bifang!@#',database='tsg-bifang' #休息时间 -${sleep} 3 \ No newline at end of file +${sleep_min} 1 +${sleep} 2 +# 隐式等待时间 +${sleep_Wait} 20 \ No newline at end of file