修改封装关键字,新增删除策略关键字
This commit is contained in:
@@ -80,11 +80,11 @@ UIAddPolicies
|
|||||||
|
|
||||||
UIPolicy.Create-Application-Button ${PolicyType} ${ApplicationSearchV} ${PolicyAction}
|
UIPolicy.Create-Application-Button ${PolicyType} ${ApplicationSearchV} ${PolicyAction}
|
||||||
#编辑filter
|
#编辑filter
|
||||||
Run Keyword If "${FilterInfo}"=="${EMPTY}" log there is no FilterInfo
|
Run Keyword If "${FilterInfo}"=="null" log there is no FilterInfo
|
||||||
... ELSE Create-Filter-SecurityOrProxy ${PolicyType} ${ApplicationSearchV}[0] ${FilterInfo}
|
... ELSE Create-Filter-SecurityOrProxy ${PolicyType} ${ApplicationSearchV}[0] ${FilterInfo}
|
||||||
Run Keyword If "${PolicyType}"=="Security Policy" and "${PolicyAction}"=="deny" run keywords sleep ${sleep}
|
Run Keyword If "${PolicyType}"=="Security Policy" and "${PolicyAction}"=="deny" run keywords sleep ${sleep}
|
||||||
... AND Deny-subaction-1 ${PolicyAction} ${PolicySubAction} ${Subactionadd}
|
... AND Deny-subaction-1 ${PolicyAction} ${PolicySubAction} ${Subactionadd}
|
||||||
Run Keyword If "${PolicyType}"=="Security Policy" and "${PolicyAction}"=="intercept" and "ApplicationSearchV"=="SSL" run keywords sleep ${sleep}
|
Run Keyword If "${PolicyType}"=="Security Policy" and "${PolicyAction}"=="intercept" and "${ApplicationSearchV}"=="SSL" run keywords sleep ${sleep}
|
||||||
... AND Interceptadd ${Keyring} ${MirrorDecryptedTrafficInfo} ${DecryptionProfile}
|
... AND Interceptadd ${Keyring} ${MirrorDecryptedTrafficInfo} ${DecryptionProfile}
|
||||||
Run Keyword If "${PolicyType}"=="Proxy Policy" and "${PolicyAction}"=="deny" run keywords sleep ${sleep}
|
Run Keyword If "${PolicyType}"=="Proxy Policy" and "${PolicyAction}"=="deny" run keywords sleep ${sleep}
|
||||||
... AND Proxy-Deny ${ProxyDenyadd}
|
... AND Proxy-Deny ${ProxyDenyadd}
|
||||||
@@ -339,8 +339,8 @@ CreateSource
|
|||||||
${ObjectName} Run Keyword If "${return}"=="FAIL" or "${ObjectName}"=="${EMPTY}" set variable null
|
${ObjectName} Run Keyword If "${return}"=="FAIL" or "${ObjectName}"=="${EMPTY}" set variable null
|
||||||
... ELSE set variable ${ObjectName}
|
... ELSE set variable ${ObjectName}
|
||||||
${return} ${Name} Run Keyword And Ignore Error Get From Dictionary ${AddDict} Name
|
${return} ${Name} Run Keyword And Ignore Error Get From Dictionary ${AddDict} Name
|
||||||
${Type1} Run Keyword If "${return}"=="FAIL" or "${Type1}"=="${EMPTY}" set variable null
|
${Name} Run Keyword If "${return}"=="FAIL" or "${Name}"=="${EMPTY}" set variable null
|
||||||
... ELSE set variable ${Type1}
|
... ELSE set variable ${Name}
|
||||||
${return} ${Ipclienttext1} Run Keyword And Ignore Error Get From Dictionary ${AddDict} Ipclienttext1
|
${return} ${Ipclienttext1} Run Keyword And Ignore Error Get From Dictionary ${AddDict} Ipclienttext1
|
||||||
${Ipclienttext1} Run Keyword If "${return}"=="FAIL" or "${Ipclienttext1}"=="${EMPTY}" set variable null
|
${Ipclienttext1} Run Keyword If "${return}"=="FAIL" or "${Ipclienttext1}"=="${EMPTY}" set variable null
|
||||||
... ELSE set variable ${Ipclienttext1}
|
... ELSE set variable ${Ipclienttext1}
|
||||||
@@ -576,6 +576,9 @@ SecurityApplicationSearch
|
|||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[5]/div[2]/div[2]/div/div[3]/div/div/ul/li[1]
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[5]/div[2]/div[2]/div/div[3]/div/div/ul/li[1]
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
|
click element id=check_list_allcancelobject
|
||||||
|
sleep ${sleep}
|
||||||
|
|
||||||
ProxyApplicationSearch
|
ProxyApplicationSearch
|
||||||
[Arguments] ${Action} ${HttpOrDoh}
|
[Arguments] ${Action} ${HttpOrDoh}
|
||||||
[Documentation] 调用次关键字前需要添加必填参数:
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
@@ -603,7 +606,7 @@ Create-Filter-SecurityOrProxy
|
|||||||
[Arguments] ${PolicyType} ${Application} ${addFilter}
|
[Arguments] ${PolicyType} ${Application} ${addFilter}
|
||||||
[Documentation] 点击Application的加号
|
[Documentation] 点击Application的加号
|
||||||
${return} ${Filter} Run Keyword And Ignore Error Get From Dictionary ${addFilter} Filter
|
${return} ${Filter} Run Keyword And Ignore Error Get From Dictionary ${addFilter} Filter
|
||||||
${Filter} Run Keyword If "${return}"=="FAIL" or "${Filter}"=="${EMPTY}" Set To List null
|
${Filter} Run Keyword If "${return}"=="FAIL" or "${Filter}"=="${EMPTY}" set variable null
|
||||||
... ELSE set variable ${Filter}
|
... ELSE set variable ${Filter}
|
||||||
${return} ${Hostname} Run Keyword And Ignore Error Get From Dictionary ${addFilter} Hostname
|
${return} ${Hostname} Run Keyword And Ignore Error Get From Dictionary ${addFilter} Hostname
|
||||||
${Hostname} Run Keyword If "${return}"=="FAIL" or "${Hostname}"=="${EMPTY}" set variable null
|
${Hostname} Run Keyword If "${return}"=="FAIL" or "${Hostname}"=="${EMPTY}" set variable null
|
||||||
@@ -771,6 +774,12 @@ Create-SecurityFilter
|
|||||||
run keyword if "${Application}"=="QUIC" and "${i}"=="SNI" run keywords sleep ${sleep}
|
run keyword if "${Application}"=="QUIC" and "${i}"=="SNI" run keywords sleep ${sleep}
|
||||||
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[1]
|
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[1]
|
||||||
... AND Create-Object-Search ${QUICSNIname} ${i}
|
... AND Create-Object-Search ${QUICSNIname} ${i}
|
||||||
|
run keyword if "${Application}"=="SIP" and "${i}"=="From" run keywords sleep ${sleep}
|
||||||
|
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[1]
|
||||||
|
... AND Create-Object-Search ${Fromname} ${i}
|
||||||
|
run keyword if "${Application}"=="SIP" and "${i}"=="To" run keywords sleep ${sleep}
|
||||||
|
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[2]
|
||||||
|
... AND Create-Object-Search ${Toname} ${i}
|
||||||
END
|
END
|
||||||
Create-ProxyFilter
|
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 ${URLname}=null ${Request Headername}=null ${Response Headername}=null ${Request Contentname}=null
|
||||||
@@ -2112,3 +2121,10 @@ Proxy-Policies-OK
|
|||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
click element id=proxyManipulationSuccess
|
click element id=proxyManipulationSuccess
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
|
|
||||||
|
PoliciesDelete
|
||||||
|
sleep ${sleep}
|
||||||
|
click element id=appDel
|
||||||
|
sleep ${sleep}
|
||||||
|
click element xpath=/html/body/div/div/div[3]/button[2]
|
||||||
|
sleep ${sleep}
|
||||||
|
|||||||
Reference in New Issue
Block a user