修改封装关键字,新增删除策略关键字
This commit is contained in:
@@ -80,11 +80,11 @@ UIAddPolicies
|
||||
|
||||
UIPolicy.Create-Application-Button ${PolicyType} ${ApplicationSearchV} ${PolicyAction}
|
||||
#编辑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}
|
||||
Run Keyword If "${PolicyType}"=="Security Policy" and "${PolicyAction}"=="deny" run keywords sleep ${sleep}
|
||||
... 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}
|
||||
Run Keyword If "${PolicyType}"=="Proxy Policy" and "${PolicyAction}"=="deny" run keywords sleep ${sleep}
|
||||
... AND Proxy-Deny ${ProxyDenyadd}
|
||||
@@ -339,8 +339,8 @@ CreateSource
|
||||
${ObjectName} Run Keyword If "${return}"=="FAIL" or "${ObjectName}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${ObjectName}
|
||||
${return} ${Name} Run Keyword And Ignore Error Get From Dictionary ${AddDict} Name
|
||||
${Type1} Run Keyword If "${return}"=="FAIL" or "${Type1}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${Type1}
|
||||
${Name} Run Keyword If "${return}"=="FAIL" or "${Name}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${Name}
|
||||
${return} ${Ipclienttext1} Run Keyword And Ignore Error Get From Dictionary ${AddDict} Ipclienttext1
|
||||
${Ipclienttext1} Run Keyword If "${return}"=="FAIL" or "${Ipclienttext1}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${Ipclienttext1}
|
||||
@@ -373,7 +373,7 @@ CreateSource
|
||||
... ELSE set variable ${Limits}
|
||||
${return} ${Keywordtext} Run Keyword And Ignore Error Get From Dictionary ${AddDict} Keywordtext
|
||||
${Keywordtext} Run Keyword If "${return}"=="FAIL" or "${Keywordtext}"=="${EMPTY}" set variable null
|
||||
... ELSE set variable ${Keywordtext}
|
||||
... ELSE set variable ${Keywordtext}
|
||||
run keyword if "${Type1}"=="Ip" run keywords sleep ${sleep}
|
||||
... AND click element xpath=${typepath}/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[1]
|
||||
... AND sleep ${sleep}
|
||||
@@ -576,6 +576,9 @@ SecurityApplicationSearch
|
||||
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]
|
||||
sleep ${sleep}
|
||||
click element id=check_list_allcancelobject
|
||||
sleep ${sleep}
|
||||
|
||||
ProxyApplicationSearch
|
||||
[Arguments] ${Action} ${HttpOrDoh}
|
||||
[Documentation] 调用次关键字前需要添加必填参数:
|
||||
@@ -603,7 +606,7 @@ Create-Filter-SecurityOrProxy
|
||||
[Arguments] ${PolicyType} ${Application} ${addFilter}
|
||||
[Documentation] 点击Application的加号
|
||||
${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}
|
||||
${return} ${Hostname} Run Keyword And Ignore Error Get From Dictionary ${addFilter} Hostname
|
||||
${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}
|
||||
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[1]
|
||||
... 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
|
||||
Create-ProxyFilter
|
||||
[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}
|
||||
click element id=proxyManipulationSuccess
|
||||
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