提交安全策略用例优化和关键字维护

This commit is contained in:
lyf
2021-04-01 17:36:19 +08:00
parent f4f83023d0
commit 7c4f611ba6
11 changed files with 52 additions and 32 deletions

View File

@@ -777,13 +777,13 @@ Create-SecurityFilter
... AND Create-Object-Search ${Response Contentname} ${i}
run keyword if "${Application}"=="SSL" 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 ${SSLSNIname} ${i}
... AND Create-Object-Search ${SSLSNIname} ${i} ${Hosttype}
run keyword if "${Application}"=="SSL" and "${i}"=="CN" run keywords sleep ${sleep}
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[2]
... AND Create-Object-Search ${CNname} ${i}
... AND Create-Object-Search ${CNname} ${i} ${Hosttype}
run keyword if "${Application}"=="SSL" and "${i}"=="SAN" run keywords sleep ${sleep}
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[3]
... AND Create-Object-Search ${SANname} ${i}
... AND Create-Object-Search ${SANname} ${i} ${Hosttype}
run keyword if "${Application}"=="DNS" and "${i}"=="QNAME" run keywords sleep ${sleep}
... AND click element xpath=//*[@id="condistions_protocol"]/div/div[1]/div/div/div/ul/li[1]
... AND Create-Object-Search ${QNAMEname} ${i}
@@ -819,7 +819,7 @@ Create-SecurityFilter
... AND Create-Object-Search ${FTPAccountname} ${i}
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}
... AND Create-Object-Search ${QUICSNIname} ${i} ${Hosttype}
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}
@@ -1071,26 +1071,26 @@ Deny-Redirect
... 新建Redirect
run keyword if "${QType}"=="A" run keywords sleep ${sleep}
... AND input text id=A00 ${Avalue}
... AND input text id=A001 ${Avalue}
... AND sleep ${sleep}
... AND input text id=ttl00 ${Attl}
... AND input text id=ttl001 ${Attl}
... AND sleep ${sleep}
... AND click element id=interceptionadd_addForm
... AND sleep ${sleep}
... AND input text id=Cname01 ${CNAMEvalue}
... AND input text id=Cname011 ${CNAMEvalue}
... AND sleep ${sleep}
... AND input text id=ttl01 ${CNAMEttl}
... AND input text id=ttl011 ${CNAMEttl}
run keyword if "${QType}"=="AAAA" run keywords sleep ${sleep}
... AND click element id=dns_qtype_radio01
... AND input text id=AAAA00 ${Avalue}
... AND input text id=AAAA001 ${Avalue}
... AND sleep ${sleep}
... AND input text id=ttl00 ${Attl}
... AND input text id=ttl001 ${Attl}
... AND sleep ${sleep}
... AND click element id=interceptionadd_addForm
... AND sleep ${sleep}
... AND input text id=Cname01 ${CNAMEvalue}
... AND input text id=Cname011 ${CNAMEvalue}
... AND sleep ${sleep}
... AND input text id=ttl01 ${CNAMEttl}
... AND input text id=ttl011 ${CNAMEttl}
sleep ${sleep}
click element id=interceptionadd_shezhidns
@@ -1422,7 +1422,7 @@ LogSession
[Documentation] 调用次关键字前需要添加必填参数:
... ${LogSession}:填入clcos或其他
run keyword if "${LogSession}"=="close" run keywords sleep ${sleep}
... AND click element id=addlabel_labels_log
... AND click element xpath=//*[@id="policy_paper_left"]/div[16]/label[contains(text(), "Log Session")]/following-sibling::div/div
... ELSE log 开启日志
Enabled
[Arguments] ${Enabled}