调整策略关键字,新增代理Allow动作测试用例

This commit is contained in:
byb11
2021-03-17 15:45:20 +08:00
parent 52115f0017
commit 29bb4a1bde
2 changed files with 329 additions and 4 deletions

View File

@@ -273,7 +273,8 @@ CreateSources1
log ${var}
${tempValue} Get From List ${AddList} ${var}
CreateSource ${tempValue}
END
END
sleep ${sleep}
CreateEditDeleteDestination
[Arguments] ${DestinationInfoDict}
[Documentation] 策略源条件处理、包括增加create、searchupdate、delete几个列表;
@@ -723,7 +724,7 @@ Create-Filter-SecurityOrProxy
... ${Response Contentname} ${SSLSNIname} ${CNname} ${SANname} ${QNAMEname} ${Subjectname} ${MAILContentname} ${Attachment Namename}
... ${Attachment Contentname} ${Fromname} ${Toname} ${MAILAccountname} ${URIname} ${FTPContentname} ${FTPAccountname} ${QUICSNIname}
run keyword if "${PolicyType}"=="Proxy Policy" and "${PolicyAction}" == "Redirect" Create_Proxy_RedirectFilter ${Application} ${Filter} ${Hostname} ${Hosttype} ${URLname} ${Request Headername} ${Response Headername} ${Request Contentname} ${Response Contentname} ${QNAMEname} ${DohHostname}
... ELSE Create-ProxyFilter ${Application} ${Filter} ${Hostname} ${URLname} ${Request Headername} ${Response Headername} ${Request Contentname} ${Response Contentname} ${QNAMEname} ${DohHostname}
... ELSE Create-ProxyFilter ${Application} ${Filter} ${Hostname} ${Hosttype} ${URLname} ${Request Headername} ${Response Headername} ${Request Contentname} ${Response Contentname} ${QNAMEname} ${DohHostname}
Create-SecurityFilter-judge
[Arguments] ${Application}=null ${Filter}=null ${Hostname}=null ${Hosttype}=null ${URLname}=null ${Request Headername}=null ${Response Headername}=null ${Request Contentname}=null
@@ -828,7 +829,7 @@ Create-SecurityFilter
END
Create-ProxyFilter
[Arguments] ${Application}=null ${Filter}=null ${Hostname}=null ${URLname}=null ${Request Headername}=null ${Response Headername}=null ${Request Contentname}=null
[Arguments] ${Application}=null ${Filter}=null ${Hostname}=null ${Hosttype}=null ${URLname}=null ${Request Headername}=null ${Response Headername}=null ${Request Contentname}=null
... ${Response Contentname}=null ${QNAMEname}=null ${DohHostname}=null
[Documentation] 调用次关键字前需要添加必填参数:
... ${Application}:填入是Application的内容例如SSL或HTTP
@@ -842,7 +843,7 @@ Create-ProxyFilter
sleep ${sleep}
run keyword if "${Application}"=="HTTP" and "${i}"=="Host" run keywords sleep ${sleep}
... AND click element xpath=//*[@id="interceptionadd_checkappshow0"][contains(text(), "${i}")]
... AND Create-Object-Proxy-Search ${Hostname} ${i}
... AND Create-Object-Proxy-Search ${Hostname} ${i} ${Hosttype}
run keyword if "${Application}"=="HTTP" and "${i}"=="URL" run keywords sleep ${sleep}
... AND click element xpath=//*[@id="interceptionadd_checkappshow1"][contains(text(), "${i}")]
... AND Create-Object-Proxy-Search ${URLname} ${i}