TSG-2827修改时间,通过效率,修改标签,用例描述更加准确

This commit is contained in:
jwc
2020-08-10 19:07:01 +08:00
parent 17e4deab39
commit 7afa152d2a
85 changed files with 684 additions and 2319 deletions

View File

@@ -9,7 +9,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Allow-Http-00001
[Tags] fqdn
[Tags] fqdn右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*clintonairport.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -21,7 +21,7 @@ SecurityPolicy-Allow-Http-00001
insert_policyId_to_file1 allow_http_policyId ${policyId}
SecurityPolicy-Allow-Http-00002
[Tags] cat
[Tags] cat完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=$www.airpano.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -30,4 +30,4 @@ SecurityPolicy-Allow-Http-00002
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 allow_http_objectId ${objectId}
insert_policyId_to_file1 allow_http_policyId ${policyId}
insert_policyId_to_file1 allow_http_policyId ${policyId}

View File

@@ -9,7 +9,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Allow-Ssl-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$homebank.kz
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -21,7 +21,7 @@ SecurityPolicy-Allow-Ssl-00001
insert_policyId_to_file1 allow_ssl_policyId ${policyId}
SecurityPolicy-Allow-Ssl-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*youtube.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -9,7 +9,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
Proxy-Policy-allow-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$mp.pipix.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -26,7 +26,7 @@ Proxy-Policy-allow-00001
insert_policyId_to_file1 allow_policyId ${policyId2}
Proxy-Policy-allow-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*feishu.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -43,7 +43,7 @@ Proxy-Policy-allow-00002
insert_policyId_to_file1 allow_policyId1 ${policyId2}
Proxy-Policy-allow-00003
[Tags] url
[Tags] url4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*smzdm.com,*bilibili.com,*cheapair.com,*surfline.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -64,7 +64,7 @@ Proxy-Policy-allow-00003
insert_policyId_to_file1 allow_policyId2 ${policyId2}
Proxy-Policy-allow-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*expeditionportal.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -89,7 +89,7 @@ Proxy-Policy-allow-00004
insert_policyId_to_file1 allow_policyId3 ${policyId2}
Proxy-Policy-allow-00005
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$boutiquehotel.me
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -114,7 +114,7 @@ Proxy-Policy-allow-00005
insert_policyId_to_file1 allow_policyId4 ${policyId2}
Proxy-Policy-allow-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.choicehotels.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -139,7 +139,7 @@ Proxy-Policy-allow-00006
insert_policyId_to_file1 allow_policyId5 ${policyId2}
Proxy-Policy-allow-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.clubmed.us
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -164,7 +164,7 @@ Proxy-Policy-allow-00007
insert_policyId_to_file1 allow_policyId6 ${policyId2}
Proxy-Policy-allow-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*sse.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -189,7 +189,7 @@ Proxy-Policy-allow-00008
insert_policyId_to_file1 allow_policyId7 ${policyId2}
Proxy-Policy-allow-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*szse.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -214,7 +214,7 @@ Proxy-Policy-allow-00009
insert_policyId_to_file1 allow_policyId8 ${policyId2}
Proxy-Policy-allow-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*gf.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -239,7 +239,7 @@ Proxy-Policy-allow-00010
insert_policyId_to_file1 allow_policyId9 ${policyId2}
Proxy-Policy-allow-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*chinastock.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -264,7 +264,7 @@ Proxy-Policy-allow-00011
insert_policyId_to_file1 allow_policyId10 ${policyId2}
Proxy-Policy-allow-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.virtuoso.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -289,7 +289,7 @@ Proxy-Policy-allow-00012
insert_policyId_to_file1 allow_policyId11 ${policyId2}
Proxy-Policy-allow-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$russia.payu.com,*925mm.com,*qunar.com,$www.vitalsource.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -310,7 +310,7 @@ Proxy-Policy-allow-00013
insert_policyId_to_file1 allow_policyId12 ${policyId2}
Proxy-Policy-allow-00014
[Tags] 最大组合1
[Tags] 最大组合
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.orbitz.com
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}

View File

@@ -10,7 +10,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Deny-Dns-00001
[Tags] fqdn
[Tags] fqdn完整和右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.facebook.com,*rutube.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -22,7 +22,7 @@ SecurityPolicy-Deny-Dns-00001
insert_policyId_to_file1 deny_dns_policyId ${policyId}
SecurityPolicy-Deny-Dns-00002
[Tags] cat
[Tags] cat右和完整匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*yhd.com,$www.vk.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -34,7 +34,7 @@ SecurityPolicy-Deny-Dns-00002
insert_policyId_to_file1 deny_dns_policyId1 ${policyId}
SecurityPolicy-Deny-Dns-00003
[Tags] cat
[Tags] cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*ya.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -46,7 +46,7 @@ SecurityPolicy-Deny-Dns-00003
insert_policyId_to_file1 deny_dns_policyId2 ${policyId}
SecurityPolicy-Deny-Dns-00004
[Tags] 最大重定向
[Tags] fqdn右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*twitch.tv
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -13,7 +13,7 @@ ${url} /v1/policy/profile/responsepages
*** Test Cases ***
SecurityPolicy-Deny-Http-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$webalta.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -25,7 +25,7 @@ SecurityPolicy-Deny-Http-00001
insert_policyId_to_file1 deny_http_policyId ${policyId}
SecurityPolicy-Deny-Http-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*nymbler.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -37,7 +37,7 @@ SecurityPolicy-Deny-Http-00002
insert_policyId_to_file1 deny_http_policyId1 ${policyId}
SecurityPolicy-Deny-Http-00003
[Tags] url
[Tags] url4种匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*/news/,$www.icbc.com.cn/icbc/,www.gotohoroscope*,indexv
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -53,7 +53,7 @@ SecurityPolicy-Deny-Http-00003
insert_policyId_to_file1 deny_http_profiledId ${profiledId}
SecurityPolicy-Deny-Http-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -69,7 +69,7 @@ SecurityPolicy-Deny-Http-00004
insert_policyId_to_file1 deny_http_policyId3 ${policyId}
SecurityPolicy-Deny-Http-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -85,7 +85,7 @@ SecurityPolicy-Deny-Http-00005
insert_policyId_to_file1 deny_http_policyId4 ${policyId}
SecurityPolicy-Deny-Http-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=AppleWebKit|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -101,7 +101,7 @@ SecurityPolicy-Deny-Http-00006
insert_policyId_to_file1 deny_http_policyId5 ${policyId}
SecurityPolicy-Deny-Http-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -121,7 +121,7 @@ SecurityPolicy-Deny-Http-00007
insert_policyId_to_file1 deny_http_profiledId1 ${profiledId}
SecurityPolicy-Deny-Http-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*index.aspx
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -137,7 +137,7 @@ SecurityPolicy-Deny-Http-00008
insert_policyId_to_file1 deny_http_policyId7 ${policyId}
SecurityPolicy-Deny-Http-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.skycn.com
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -153,7 +153,7 @@ SecurityPolicy-Deny-Http-00009
insert_policyId_to_file1 deny_http_policyId8 ${policyId}
SecurityPolicy-Deny-Http-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.avaxsearch.com
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -169,7 +169,7 @@ SecurityPolicy-Deny-Http-00010
insert_policyId_to_file1 deny_http_policyId9 ${policyId}
SecurityPolicy-Deny-Http-00011
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=finestquotes.com
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -185,7 +185,7 @@ SecurityPolicy-Deny-Http-00011
insert_policyId_to_file1 deny_http_policyId10 ${policyId}
SecurityPolicy-Deny-Http-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -197,7 +197,7 @@ SecurityPolicy-Deny-Http-00012
insert_policyId_to_file1 deny_http_policyId11 ${policyId}
SecurityPolicy-Deny-Http-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建set-cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=CURRENT_CITY_CODE*|Set-Cookie,*domain=.xiaozhu.com|Set-Cookie,PHPSESSID|Set-Cookie,oKD0_802a*|Set-Cookie
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -209,7 +209,7 @@ SecurityPolicy-Deny-Http-00013
insert_policyId_to_file1 deny_http_policyId12 ${policyId}
SecurityPolicy-Deny-Http-00014
[Tags] 请求体
[Tags] 请求体字串匹配
Comment 创建请求体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -221,7 +221,7 @@ SecurityPolicy-Deny-Http-00014
insert_policyId_to_file1 deny_http_policyId13 ${policyId}
SecurityPolicy-Deny-Http-00015
[Tags] 应答体
[Tags] 应答体字串匹配
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=华彤公司
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -289,7 +289,7 @@ SecurityPolicy-Deny-Http-00017
insert_policyId_to_file1 deny_http_policyId16 ${policyId}
SecurityPolicy-Deny-Http-00018
[Tags] 多ip对象
[Tags] 多ip对象
Comment 创建第二个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=192.168.50.18-192.168.50.18 port=0-0 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}

View File

@@ -10,7 +10,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Deny-Mail-00001
[Tags] content
[Tags] content字串匹配
Comment 创建Content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=стопо
${rescode} ${object_Content_Id} AddObject2 ${1} ${objectDict}
@@ -21,7 +21,7 @@ SecurityPolicy-Deny-Mail-00001
insert_policyId_to_file1 deny_mail_policyId ${policyId}
SecurityPolicy-Deny-Mail-00002
[Tags] att_cont
[Tags] att_cont字串匹配
Comment 创建ATT_CONT
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Простопорно
${rescode} ${object_ATT_CONT_Id} AddObject2 ${1} ${objectDict}
@@ -32,7 +32,7 @@ SecurityPolicy-Deny-Mail-00002
insert_policyId_to_file1 deny_mail_policyId1 ${policyId}
SecurityPolicy-Deny-Mail-00003
[Tags] subject from
[Tags] from右匹配 subject右匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*ОВИДЕО
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -47,7 +47,7 @@ SecurityPolicy-Deny-Mail-00003
insert_policyId_to_file1 deny_mail_policyId2 ${policyId}
SecurityPolicy-Deny-Mail-00004
[Tags] subject from
[Tags] from完整匹配 subject完整匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$明天周末
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -62,7 +62,7 @@ SecurityPolicy-Deny-Mail-00004
insert_policyId_to_file1 deny_mail_policyId3 ${policyId}
SecurityPolicy-Deny-Mail-00005
[Tags] subject from
[Tags] subject字串匹配 from字串匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=12345678
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -77,7 +77,7 @@ SecurityPolicy-Deny-Mail-00005
insert_policyId_to_file1 deny_mail_policyId4 ${policyId}
SecurityPolicy-Deny-Mail-00006
[Tags] subject from
[Tags] subject左匹配 from左匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=afte*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -92,7 +92,7 @@ SecurityPolicy-Deny-Mail-00006
insert_policyId_to_file1 deny_mail_policyId5 ${policyId}
SecurityPolicy-Deny-Mail-00007
[Tags] to subject
[Tags] to右匹配 subject左匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*ыонлай
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -107,7 +107,7 @@ SecurityPolicy-Deny-Mail-00007
insert_policyId_to_file1 deny_mail_policyId6 ${policyId}
SecurityPolicy-Deny-Mail-00008
[Tags] to subject
[Tags] to完整匹配 subject完整匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$zxcvbnm
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -122,7 +122,7 @@ SecurityPolicy-Deny-Mail-00008
insert_policyId_to_file1 deny_mail_policyId7 ${policyId}
SecurityPolicy-Deny-Mail-00009
[Tags] to subject
[Tags] to字串匹配 subject字串匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=新的一天
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -137,7 +137,7 @@ SecurityPolicy-Deny-Mail-00009
insert_policyId_to_file1 deny_mail_policyId8 ${policyId}
SecurityPolicy-Deny-Mail-00010
[Tags] to subject
[Tags] subject左匹配 to左匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=tomor*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -152,7 +152,7 @@ SecurityPolicy-Deny-Mail-00010
insert_policyId_to_file1 deny_mail_policyId9 ${policyId}
SecurityPolicy-Deny-Mail-00011
[Tags] account subject
[Tags] subject右匹配 account右匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*发送失败
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -167,7 +167,7 @@ SecurityPolicy-Deny-Mail-00011
insert_policyId_to_file1 deny_mail_policyId10 ${policyId}
SecurityPolicy-Deny-Mail-00012
[Tags] account subject
[Tags] subject完整匹配 account完整匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$Онлайнфильмывхоро
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -182,7 +182,7 @@ SecurityPolicy-Deny-Mail-00012
insert_policyId_to_file1 deny_mail_policyId11 ${policyId}
SecurityPolicy-Deny-Mail-00013
[Tags] account subject
[Tags] subject字串匹配 account字串匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=asdfg
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -197,7 +197,7 @@ SecurityPolicy-Deny-Mail-00013
insert_policyId_to_file1 deny_mail_policyId12 ${policyId}
SecurityPolicy-Deny-Mail-00014
[Tags] account subject
[Tags] subject左匹配 account左匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=马上就要*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}

View File

@@ -10,7 +10,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Deny-Ssl-00001
[Tags] sni fqdn
[Tags] sni fqdn完整和右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.cxwl.com,*freestockimages.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -22,7 +22,7 @@ SecurityPolicy-Deny-Ssl-00001
insert_policyId_to_file1 deny_ssl_policyId ${policyId}
SecurityPolicy-Deny-Ssl-00002
[Tags] cn cat
[Tags] cn cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*vip.com,*berkeleygroup.co.uk
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -34,7 +34,7 @@ SecurityPolicy-Deny-Ssl-00002
insert_policyId_to_file1 deny_ssl_policyId1 ${policyId}
SecurityPolicy-Deny-Ssl-00003
[Tags] san cat
[Tags] san cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*pulitzer.org,*nastol.com.ua
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -12,7 +12,7 @@ ${url} /v1/policy/profile/responsepages
*** Test Cases ***
Proxy-Policy-deny-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$newsela.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -29,7 +29,7 @@ Proxy-Policy-deny-00001
insert_policyId_to_file1 deny_policyId ${policyId2}
Proxy-Policy-deny-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*villaday.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -50,7 +50,7 @@ Proxy-Policy-deny-00002
insert_policyId_to_file1 deny_policyId1 ${policyId2}
Proxy-Policy-deny-00003
[Tags] url
[Tags] url4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*wmtransfer.com,*banbaowang.com,*qidian.com,*rolandberger.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -75,7 +75,7 @@ Proxy-Policy-deny-00003
insert_policyId_to_file1 deny_policyId2 ${policyId2}
Proxy-Policy-deny-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*usdebtclock.org
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -100,7 +100,7 @@ Proxy-Policy-deny-00004
insert_policyId_to_file1 deny_policyId3 ${policyId2}
Proxy-Policy-deny-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$americantesol.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -125,7 +125,7 @@ Proxy-Policy-deny-00005
insert_policyId_to_file1 deny_policyId4 ${policyId2}
Proxy-Policy-deny-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.playgroundsessions.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -150,7 +150,7 @@ Proxy-Policy-deny-00006
insert_policyId_to_file1 deny_policyId5 ${policyId2}
Proxy-Policy-deny-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$peoplestalkradio.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -175,7 +175,7 @@ Proxy-Policy-deny-00007
insert_policyId_to_file1 deny_policyId6 ${policyId2}
Proxy-Policy-deny-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*6renyou.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -204,7 +204,7 @@ Proxy-Policy-deny-00008
insert_policyId_to_file1 deny_policyId7 ${policyId2}
Proxy-Policy-deny-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*ljale.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -233,7 +233,7 @@ Proxy-Policy-deny-00009
insert_policyId_to_file1 deny_policyId8 ${policyId2}
Proxy-Policy-deny-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*duckduckmoose.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -262,7 +262,7 @@ Proxy-Policy-deny-00010
insert_policyId_to_file1 deny_policyId9 ${policyId2}
Proxy-Policy-deny-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*tutcandy.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -291,7 +291,7 @@ Proxy-Policy-deny-00011
insert_policyId_to_file1 deny_policyId10 ${policyId2}
Proxy-Policy-deny-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.youqulu.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -316,7 +316,7 @@ Proxy-Policy-deny-00012
insert_policyId_to_file1 deny_policyId11 ${policyId2}
Proxy-Policy-deny-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.nypl.org,*thailand.com.co,*ke.com,$nationalbank.kz
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -341,7 +341,7 @@ Proxy-Policy-deny-00013
insert_policyId_to_file1 deny_policyId12 ${policyId2}
Proxy-Policy-deny-00014
[Tags] 请求体
[Tags] 请求体字串匹配
Comment 创建请求体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=1234567
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -362,7 +362,7 @@ Proxy-Policy-deny-00014
insert_policyId_to_file1 deny_policyId13 ${policyId2}
Proxy-Policy-deny-00015
[Tags] 应答体
[Tags] 应答体字串匹配
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ASDFG
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -374,6 +374,35 @@ Proxy-Policy-deny-00015
insert_policyId_to_file1 deny_policyId14 ${policyId2}
Proxy-Policy-deny-00016
[Tags] Sub Objects层级
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.stewart.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*art.com/en.html
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${addItemList} Create List ${objectId1}
${objectDict1} Create Dictionary objectType=url isValid=${1} subObjectIds=${addItemList}
${rescode} ${objectId2} AddObjects ${1} ${objectDict1}
Comment #创建引用文件
${response} CreatePolicyFile2 ${url} ${responsePageFiles} 404china.html resPages
${profiledId} Get From Dictionary ${response} profileId
Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-deny policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建deny策略
${policyDict} Create Dictionary policyName=Proxy-Policy-deny-00003 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","html_profile":${profiledId},"code":404,"protocol":"HTTP"} filterList=${objectId2}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 deny_profileId6 ${profiledId}
insert_policyId_to_file1 deny_objectId47 ${objectId}
insert_policyId_to_file1 deny_objectId48 ${objectId1}
insert_policyId_to_file1 deny_objectId49 ${objectId2}
insert_policyId_to_file1 intercept_deny_policyId15 ${policyId1}
insert_policyId_to_file1 deny_policyId17 ${policyId2}
Proxy-Policy-deny-00017
[Tags] 最大组合1
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
@@ -401,7 +430,7 @@ Proxy-Policy-deny-00016
insert_policyId_to_file1 deny_objectId40 ${object_body_Id}
insert_policyId_to_file1 deny_policyId15 ${policyId2}
Proxy-Policy-deny-00017
Proxy-Policy-deny-00018
[Tags] 最大组合2
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.umusicpub.com
@@ -433,27 +462,3 @@ Proxy-Policy-deny-00017
insert_policyId_to_file1 deny_objectId45 ${object_body_Id}
insert_policyId_to_file1 intercept_deny_policyId14 ${policyId1}
insert_policyId_to_file1 deny_policyId16 ${policyId2}
Proxy-Policy-deny-00018
[Tags] Sub Objects
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$newsela.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
${addItemList} Create List ${objectId}
${objectDict1} Create Dictionary objectType=url isValid=${1} subObjectIds=${addItemList}
${rescode} ${objectId1} AddObjects ${1} ${objectDict1}
log ${objectId1}
Comment #创建引用文件
${response} CreatePolicyFile2 ${url} ${responsePageFiles} 404china.html resPages
${profiledId} Get From Dictionary ${response} profileId
#Comment Comment 创建拦截策略
#${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-deny policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
#log ${policyDict}
#${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建deny策略
${policyDict} Create Dictionary policyName=Proxy-Policy-deny-00003 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","html_profile":${profiledId},"code":404,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 deny_profileId1 ${profiledId}
insert_policyId_to_file1 deny_objectId2 ${objectId}
insert_policyId_to_file1 deny_policyId2 ${policyId2}

View File

@@ -15,12 +15,22 @@ wan_nat-dnat-00001
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=${addItemLists}
${rescode} ${objectId} AddObjects ${1} ${objectDict}
${objectIds} Set Variable ${objectId}
Comment #添加vpn
${wan_vpn_dict} Create Dictionary username=jwc-vpn password=jwc-vpn iconColor=#dddddd
${wan_vpn_list} Create List ${wan_vpn_dict}
${a} AddWanVpn ${wan_vpn_list}
Comment 创建dnat策略
${policyDict} Create Dictionary policyName=wan_nat_dnat-00001 policyType=wannat policyDesc=autotest action=wannat userRegion={"method":"dnat","dnat_vpn_user_account":"jwc-vpn","dnat_destination_port":80,"dnat_when_vpn_offline":"drop"} isValid=${1} source=${objectId}|TSG_SECURITY_SOURCE_ADDR
${policyDict} Create Dictionary policyName=wan_nat_dnat-00001 policyType=wannat policyDesc=autotest action=wannat userRegion={"method":"dnat","dnat_vpn_user_account":"jwc-vpn","dnat_destination_port":80,"dnat_when_vpn_offline":"drop"} isValid=${1} destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 dnat_objectId ${objectId}
insert_policyId_to_file1 dnat_policyId ${policyId2}
wan_nat-dnat-00002
Comment 创建IP
${addItemList1} Create Dictionary isSession=endpoint ip=99.99.99.99-99.99.99.99 port=0-0 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip isValid=${1} addItemList=${addItemLists}
${rescode} ${objectId} AddObjects ${1} ${objectDict}
Comment 创建dnat策略
${policyDict} Create Dictionary policyName=wan_nat_dnat-00002 policyType=wannat policyDesc=autotest action=wannat userRegion={"method":"dnat","dnat_vpn_user_account":"jwc-vpn","dnat_destination_port":80,"dnat_when_vpn_offline":"forward"} isValid=${1} destination=${objectId}|TSG_SECURITY_DESTINATION_ADDR
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 dnat_objectId1 ${objectId}
insert_policyId_to_file1 dnat_policyId1 ${policyId2}

View File

@@ -12,7 +12,7 @@ ${url} /v1/policy/profile/hijackfiles
*** Test Cases ***
Proxy-Policy-hijack-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$vator.tv
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -37,7 +37,7 @@ Proxy-Policy-hijack-00001
insert_policyId_to_file1 hijack_policyId ${policyId2}
Proxy-Policy-hijack-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*cruisecritic.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -62,7 +62,7 @@ Proxy-Policy-hijack-00002
insert_policyId_to_file1 hijack_policyId1 ${policyId2}
Proxy-Policy-hijack-00003
[Tags] url
[Tags] url4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*vegas.com,*bytedance.com,*toutiao.com,*douyin.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -87,7 +87,7 @@ Proxy-Policy-hijack-00003
insert_policyId_to_file1 hijack_policyId2 ${policyId2}
Proxy-Policy-hijack-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*huoshan.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -116,7 +116,7 @@ Proxy-Policy-hijack-00004
insert_policyId_to_file1 hijack_policyId3 ${policyId2}
Proxy-Policy-hijack-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.ixigua.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -145,7 +145,7 @@ Proxy-Policy-hijack-00005
insert_policyId_to_file1 hijack_policyId4 ${policyId2}
Proxy-Policy-hijack-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.dcdapp.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -174,7 +174,7 @@ Proxy-Policy-hijack-00006
insert_policyId_to_file1 hijack_policyId5 ${policyId2}
Proxy-Policy-hijack-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.gogokid.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -203,7 +203,7 @@ Proxy-Policy-hijack-00007
insert_policyId_to_file1 hijack_policyId6 ${policyId2}
Proxy-Policy-hijack-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*mafengwo.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -232,7 +232,7 @@ Proxy-Policy-hijack-00008
insert_policyId_to_file1 hijack_policyId7 ${policyId2}
Proxy-Policy-hijack-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*hexun.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -261,7 +261,7 @@ Proxy-Policy-hijack-00009
insert_policyId_to_file1 hijack_policyId8 ${policyId2}
Proxy-Policy-hijack-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*tianya.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -290,7 +290,7 @@ Proxy-Policy-hijack-00010
insert_policyId_to_file1 hijack_policyId9 ${policyId2}
Proxy-Policy-hijack-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*mydrivers.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -319,7 +319,7 @@ Proxy-Policy-hijack-00011
insert_policyId_to_file1 hijack_policyId10 ${policyId2}
Proxy-Policy-hijack-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.reval.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -348,7 +348,7 @@ Proxy-Policy-hijack-00012
insert_policyId_to_file1 hijack_policyId11 ${policyId2}
Proxy-Policy-hijack-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$nsscreencast.com,*edreams.net,*boutiquehotel.me,$www.united.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -377,7 +377,7 @@ Proxy-Policy-hijack-00013
insert_policyId_to_file1 hijack_policyId12 ${policyId2}
Proxy-Policy-hijack-00014
[Tags] 最大组合1
[Tags] 最大组合
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.travelzoo.com
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}

View File

@@ -12,7 +12,7 @@ ${url} /v1/policy/profile/insertscripts
*** Test Cases ***
Proxy-Policy-insert-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.costcotravel.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -37,7 +37,7 @@ Proxy-Policy-insert-00001
insert_policyId_to_file1 insert_policyId ${policyId2}
Proxy-Policy-insert-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*cruisingpower.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -62,7 +62,7 @@ Proxy-Policy-insert-00002
insert_policyId_to_file1 insert_policyId1 ${policyId2}
Proxy-Policy-insert-00003
[Tags] url
[Tags] url4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*uncorneredmarket.com,*alltrails.com,*atlasobscura.com,*anguilla-beaches.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -87,7 +87,7 @@ Proxy-Policy-insert-00003
insert_policyId_to_file1 insert_policyId2 ${policyId2}
Proxy-Policy-insert-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*viator.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -116,7 +116,7 @@ Proxy-Policy-insert-00004
insert_policyId_to_file1 insert_policyId3 ${policyId2}
Proxy-Policy-insert-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$matadornetwork.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -145,7 +145,7 @@ Proxy-Policy-insert-00005
insert_policyId_to_file1 insert_policyId4 ${policyId2}
Proxy-Policy-insert-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.farecompare.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -174,7 +174,7 @@ Proxy-Policy-insert-00006
insert_policyId_to_file1 insert_policyId5 ${policyId2}
Proxy-Policy-insert-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.tripit.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -203,7 +203,7 @@ Proxy-Policy-insert-00007
insert_policyId_to_file1 insert_policyId6 ${policyId2}
Proxy-Policy-insert-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*waikikibeachwalk.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -232,7 +232,7 @@ Proxy-Policy-insert-00008
insert_policyId_to_file1 insert_policyId7 ${policyId2}
Proxy-Policy-insert-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*guides.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -261,7 +261,7 @@ Proxy-Policy-insert-00009
insert_policyId_to_file1 insert_policyId8 ${policyId2}
Proxy-Policy-insert-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*cnstock.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -290,7 +290,7 @@ Proxy-Policy-insert-00010
insert_policyId_to_file1 insert_policyId9 ${policyId2}
Proxy-Policy-insert-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*newone.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -319,7 +319,7 @@ Proxy-Policy-insert-00011
insert_policyId_to_file1 insert_policyId10 ${policyId2}
Proxy-Policy-insert-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.eastbay.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -348,7 +348,7 @@ Proxy-Policy-insert-00012
insert_policyId_to_file1 insert_policyId11 ${policyId2}
Proxy-Policy-insert-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.shermanstravel.com,*wyndhamhotels.com,*travelnow.com,$www.smithsonianjourneys.org
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -377,7 +377,7 @@ Proxy-Policy-insert-00013
insert_policyId_to_file1 insert_policyId12 ${policyId2}
Proxy-Policy-insert-00014
[Tags] 最大组合1
[Tags] 最大组合
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*intervalworld.com
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}

View File

@@ -12,7 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Intercept-Http-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.mydrivers.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -24,7 +24,7 @@ SecurityPolicy-Intercept-Http-00001
insert_policyId_to_file1 intercept_http_policyId ${policyId}
SecurityPolicy-Intercept-Http-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*sunnylands.org
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -12,7 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Intercept-Ssl-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.reviewpro.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -24,7 +24,7 @@ SecurityPolicy-Intercept-Ssl-00001
insert_policyId_to_file1 intercept_ssl_policyId ${policyId}
SecurityPolicy-Intercept-Ssl-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*momondo.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -10,7 +10,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Monitor-Dns-00001
[Tags] fqdn
[Tags] fqdn完整和右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$travelgam.com,*flyaurora.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -22,7 +22,7 @@ SecurityPolicy-Monitor-Dns-00001
insert_policyId_to_file1 monitor_dns_policyId ${policyId}
SecurityPolicy-Monitor-Dns-00002
[Tags] cat
[Tags] cat右和完整匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*vip.com,$ostrovok.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -12,7 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Monitor-Http-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$nerdreactor.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -24,7 +24,7 @@ SecurityPolicy-Monitor-Http-00001
insert_policyId_to_file1 monitor_http_policyId ${policyId}
SecurityPolicy-Monitor-Http-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*jc.jd.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -36,7 +36,7 @@ SecurityPolicy-Monitor-Http-00002
insert_policyId_to_file1 monitor_http_policyId1 ${policyId}
SecurityPolicy-Monitor-Http-00003
[Tags] url
[Tags] url4种匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*portal/zh_CN/home/index.html,$www.universalmusic.ru/artists,www.nuk-baby.ru/ru_ru*,crosswordheaven
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -48,7 +48,7 @@ SecurityPolicy-Monitor-Http-00003
insert_policyId_to_file1 monitor_http_policyId2 ${policyId}
SecurityPolicy-Monitor-Http-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -64,7 +64,7 @@ SecurityPolicy-Monitor-Http-00004
insert_policyId_to_file1 monitor_http_policyId3 ${policyId}
SecurityPolicy-Monitor-Http-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -80,7 +80,7 @@ SecurityPolicy-Monitor-Http-00005
insert_policyId_to_file1 monitor_http_policyId4 ${policyId}
SecurityPolicy-Monitor-Http-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=AppleWebKit/537.36|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -96,7 +96,7 @@ SecurityPolicy-Monitor-Http-00006
insert_policyId_to_file1 monitor_http_policyId5 ${policyId}
SecurityPolicy-Monitor-Http-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -112,7 +112,7 @@ SecurityPolicy-Monitor-Http-00007
insert_policyId_to_file1 monitor_http_policyId6 ${policyId}
SecurityPolicy-Monitor-Http-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*index.shtml
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -128,7 +128,7 @@ SecurityPolicy-Monitor-Http-00008
insert_policyId_to_file1 monitor_http_policyId7 ${policyId}
SecurityPolicy-Monitor-Http-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*org/facts
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -144,7 +144,7 @@ SecurityPolicy-Monitor-Http-00009
insert_policyId_to_file1 monitor_http_policyId8 ${policyId}
SecurityPolicy-Monitor-Http-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*crime-files/
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -160,7 +160,7 @@ SecurityPolicy-Monitor-Http-00010
insert_policyId_to_file1 monitor_http_policyId9 ${policyId}
SecurityPolicy-Monitor-Http-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=ors.com/about/
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
@@ -176,7 +176,7 @@ SecurityPolicy-Monitor-Http-00011
insert_policyId_to_file1 monitor_http_policyId10 ${policyId}
SecurityPolicy-Monitor-Http-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=wingsofprey|Cookie
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -188,7 +188,7 @@ SecurityPolicy-Monitor-Http-00012
insert_policyId_to_file1 monitor_http_policyId11 ${policyId}
SecurityPolicy-Monitor-Http-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建set-cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$tplVer=06-18|Set-Cookie,*domain=bing.com|Set-Cookie,domain=www.spore.com|Set-Cookie,cye=beijing*|Set-Cookie
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -200,7 +200,7 @@ SecurityPolicy-Monitor-Http-00013
insert_policyId_to_file1 monitor_http_policyId12 ${policyId}
SecurityPolicy-Monitor-Http-00014
[Tags] 请求体
[Tags] 请求体字串匹配
Comment 创建请求体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=zxcvb
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -212,7 +212,7 @@ SecurityPolicy-Monitor-Http-00014
insert_policyId_to_file1 monitor_http_policyId13 ${policyId}
SecurityPolicy-Monitor-Http-00015
[Tags] 应答体
[Tags] 应答体字串匹配
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=this
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -10,7 +10,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Monitor-Mail-00001
[Tags] content
[Tags] content字串匹配
Comment 创建Content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=zzzzz
${rescode} ${object_Content_Id} AddObject2 ${1} ${objectDict}
@@ -21,7 +21,7 @@ SecurityPolicy-Monitor-Mail-00001
insert_policyId_to_file1 monitor_mail_policyId ${policyId}
SecurityPolicy-Monitor-Mail-00002
[Tags] att_cont
[Tags] att_cont字串匹配
Comment 创建ATT_CONT
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=朱明明测试文件
${rescode} ${object_ATT_CONT_Id} AddObject2 ${1} ${objectDict}
@@ -32,7 +32,7 @@ SecurityPolicy-Monitor-Mail-00002
insert_policyId_to_file1 monitor_mail_policyId1 ${policyId}
SecurityPolicy-Monitor-Mail-00003
[Tags] subject from
[Tags] subject右匹配 from右匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*асятся
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -47,7 +47,7 @@ SecurityPolicy-Monitor-Mail-00003
insert_policyId_to_file1 monitor_mail_policyId2 ${policyId}
SecurityPolicy-Monitor-Mail-00004
[Tags] subject from
[Tags] subject完整匹配 from完整匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$后天周末
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -62,7 +62,7 @@ SecurityPolicy-Monitor-Mail-00004
insert_policyId_to_file1 monitor_mail_policyId3 ${policyId}
SecurityPolicy-Monitor-Mail-00005
[Tags] subject from
[Tags] subject字串匹配 from字串匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=210zxcv
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -77,7 +77,7 @@ SecurityPolicy-Monitor-Mail-00005
insert_policyId_to_file1 monitor_mail_policyId4 ${policyId}
SecurityPolicy-Monitor-Mail-00006
[Tags] subject from
[Tags] subject左匹配 from左匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Tomor*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -92,7 +92,7 @@ SecurityPolicy-Monitor-Mail-00006
insert_policyId_to_file1 monitor_mail_policyId5 ${policyId}
SecurityPolicy-Monitor-Mail-00007
[Tags] to subject
[Tags] to右匹配 subject右匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*ируете
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -107,7 +107,7 @@ SecurityPolicy-Monitor-Mail-00007
insert_policyId_to_file1 monitor_mail_policyId6 ${policyId}
SecurityPolicy-Monitor-Mail-00008
[Tags] to subject
[Tags] to完整匹配 subject完整匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$asdf741852
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -122,7 +122,7 @@ SecurityPolicy-Monitor-Mail-00008
insert_policyId_to_file1 monitor_mail_policyId7 ${policyId}
SecurityPolicy-Monitor-Mail-00009
[Tags] to subject
[Tags] to字串匹配 subject字串匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=又过一天
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -137,7 +137,7 @@ SecurityPolicy-Monitor-Mail-00009
insert_policyId_to_file1 monitor_mail_policyId8 ${policyId}
SecurityPolicy-Monitor-Mail-00010
[Tags] to subject
[Tags] to右匹配 subject右匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=weeke*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -152,7 +152,7 @@ SecurityPolicy-Monitor-Mail-00010
insert_policyId_to_file1 monitor_mail_policyId9 ${policyId}
SecurityPolicy-Monitor-Mail-00011
[Tags] account subject
[Tags] account右匹配 subject右匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*发送成功
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -167,7 +167,7 @@ SecurityPolicy-Monitor-Mail-00011
insert_policyId_to_file1 monitor_mail_policyId10 ${policyId}
SecurityPolicy-Monitor-Mail-00012
[Tags] account subject
[Tags] account完整匹配 subject完整匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$ограничительным
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -182,7 +182,7 @@ SecurityPolicy-Monitor-Mail-00012
insert_policyId_to_file1 monitor_mail_policyId11 ${policyId}
SecurityPolicy-Monitor-Mail-00013
[Tags] account subject
[Tags] account字串匹配 subject字串匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=258zxc
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
@@ -197,7 +197,7 @@ SecurityPolicy-Monitor-Mail-00013
insert_policyId_to_file1 monitor_mail_policyId12 ${policyId}
SecurityPolicy-Monitor-Mail-00014
[Tags] account subject
[Tags] account左匹配 subject左匹配
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=一小时一天*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}

View File

@@ -10,7 +10,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
SecurityPolicy-Monitor-Ssl-00001
[Tags] sni fqdn
[Tags] sni fqdn完整和右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.wego.cn,*freecountry.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -22,7 +22,7 @@ SecurityPolicy-Monitor-Ssl-00001
insert_policyId_to_file1 monitor_ssl_policyId ${policyId}
SecurityPolicy-Monitor-Ssl-00002
[Tags] cn cat
[Tags] cn cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*huya.com,*artistdirect.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -34,7 +34,7 @@ SecurityPolicy-Monitor-Ssl-00002
insert_policyId_to_file1 monitor_ssl_policyId1 ${policyId}
SecurityPolicy-Monitor-Ssl-00003
[Tags] san cat
[Tags] san cat右匹配
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*lyrics.com,*.melody.su
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -11,7 +11,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
Proxy-Policy-monitor-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$newsela.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -28,7 +28,7 @@ Proxy-Policy-monitor-00001
insert_policyId_to_file1 monitor_policyId ${policyId2}
Proxy-Policy-monitor-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*villaday.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -45,7 +45,7 @@ Proxy-Policy-monitor-00002
insert_policyId_to_file1 monitor_policyId1 ${policyId2}
Proxy-Policy-monitor-00003
[Tags] url
[Tags] url4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*wmtransfer.com,*banbaowang.com,*qidian.com,*rolandberger.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -66,7 +66,7 @@ Proxy-Policy-monitor-00003
insert_policyId_to_file1 monitor_policyId2 ${policyId2}
Proxy-Policy-monitor-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*usdebtclock.org
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -91,7 +91,7 @@ Proxy-Policy-monitor-00004
insert_policyId_to_file1 monitor_policyId3 ${policyId2}
Proxy-Policy-monitor-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$americantesol.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -116,7 +116,7 @@ Proxy-Policy-monitor-00005
insert_policyId_to_file1 monitor_policyId4 ${policyId2}
Proxy-Policy-monitor-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.playgroundsessions.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -141,7 +141,7 @@ Proxy-Policy-monitor-00006
insert_policyId_to_file1 monitor_policyId5 ${policyId2}
Proxy-Policy-monitor-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$peoplestalkradio.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -166,7 +166,7 @@ Proxy-Policy-monitor-00007
insert_policyId_to_file1 monitor_policyId6 ${policyId2}
Proxy-Policy-monitor-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*6renyou.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -191,7 +191,7 @@ Proxy-Policy-monitor-00008
insert_policyId_to_file1 monitor_policyId7 ${policyId2}
Proxy-Policy-monitor-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*ljale.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -216,7 +216,7 @@ Proxy-Policy-monitor-00009
insert_policyId_to_file1 monitor_policyId8 ${policyId2}
Proxy-Policy-monitor-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*duckduckmoose.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -241,7 +241,7 @@ Proxy-Policy-monitor-00010
insert_policyId_to_file1 monitor_policyId9 ${policyId2}
Proxy-Policy-monitor-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*tutcandy.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -266,7 +266,7 @@ Proxy-Policy-monitor-00011
insert_policyId_to_file1 monitor_policyId10 ${policyId2}
Proxy-Policy-monitor-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.youqulu.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -291,7 +291,7 @@ Proxy-Policy-monitor-00012
insert_policyId_to_file1 monitor_policyId11 ${policyId2}
Proxy-Policy-monitor-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.nypl.org,*thailand.com.co,*ke.com,$nationalbank.kz
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -312,7 +312,7 @@ Proxy-Policy-monitor-00013
insert_policyId_to_file1 monitor_policyId12 ${policyId2}
Proxy-Policy-monitor-00014
[Tags] 请求体
[Tags] 请求体字串匹配
Comment 创建请求体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=1234567
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -333,7 +333,7 @@ Proxy-Policy-monitor-00014
insert_policyId_to_file1 monitor_policyId13 ${policyId2}
Proxy-Policy-monitor-00015
[Tags] 应答体
[Tags] 应答体字串匹配
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ASDFG
${rescode} ${objectId} AddObject2 ${1} ${objectDict}

View File

@@ -9,19 +9,19 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
Proxy-Policy-redirect-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.abercrombiekent.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$quote.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=abercrombiekent
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=home-insurance/
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-redirect policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00001 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST,${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00001 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST,${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId ${objectId}
@@ -30,19 +30,19 @@ Proxy-Policy-redirect-00001
insert_policyId_to_file1 redirect_policyId ${policyId2}
Proxy-Policy-redirect-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*summitpost.org
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*vystarcu.org
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=summitpost
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=Protection/Auto-Recreational-Loans
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-redirect policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00002 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST,${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00002 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST,${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId1 ${objectId}
@@ -51,19 +51,19 @@ Proxy-Policy-redirect-00002
insert_policyId_to_file1 redirect_policyId1 ${policyId2}
Proxy-Policy-redirect-00003
[Tags] url
[Tags] url4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*gobackpacking.com,*visitguam.com,*skift.com,*eviivo.com
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*secure.uwcu.org,*cit.com,*alaskausa.org,*tradingtechnologies.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=gobackpacking.com/planning*,$wwww.visitguam.com/travel-trade/itineraries/,*ift.com/news/,/products/
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=secure.uwcu.org/Branch*,$www.cit.com/cit-bank/,*org/investment/,tradingtechnologies
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-redirect policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00003 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00003 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId2 ${objectId}
@@ -72,12 +72,12 @@ Proxy-Policy-redirect-00003
insert_policyId_to_file1 redirect_policyId2 ${policyId2}
Proxy-Policy-redirect-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*dealbase.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*merrilledge.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=flights-search
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=investing/online-trading
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
@@ -87,7 +87,7 @@ Proxy-Policy-redirect-00004
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00004 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00004 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId4 ${objectId}
@@ -97,12 +97,12 @@ Proxy-Policy-redirect-00004
insert_policyId_to_file1 redirect_policyId3 ${policyId2}
Proxy-Policy-redirect-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.portofstockton.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.marketscreener.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=docs-pdfs/
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=stock-analyses/
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36|User-Agent
@@ -112,7 +112,7 @@ Proxy-Policy-redirect-00005
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00005 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00005 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId7 ${objectId}
@@ -122,12 +122,12 @@ Proxy-Policy-redirect-00005
insert_policyId_to_file1 redirect_policyId4 ${policyId2}
Proxy-Policy-redirect-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.marriottvacationclub.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.uwcu.org
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=timeshare-ownership/about/
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=about-us/become-a-member/
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=AppleWebKit|User-Agent
@@ -147,12 +147,12 @@ Proxy-Policy-redirect-00006
insert_policyId_to_file1 redirect_policyId5 ${policyId2}
Proxy-Policy-redirect-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.bulgarihotels.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.ufcu.org
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=bulgarihotels.com/zh_CN/
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=personal/insurance/
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
@@ -172,7 +172,7 @@ Proxy-Policy-redirect-00007
insert_policyId_to_file1 redirect_policyId6 ${policyId2}
Proxy-Policy-redirect-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*essence.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -197,7 +197,7 @@ Proxy-Policy-redirect-00008
insert_policyId_to_file1 redirect_policyId7 ${policyId2}
Proxy-Policy-redirect-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*west95582.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -222,7 +222,7 @@ Proxy-Policy-redirect-00009
insert_policyId_to_file1 redirect_policyId8 ${policyId2}
Proxy-Policy-redirect-00010
[Tags] 应答头
[Tags] 应答头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*dyhjw.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -237,7 +237,7 @@ Proxy-Policy-redirect-00010
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00010 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00010 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId22 ${objectId}
@@ -247,7 +247,7 @@ Proxy-Policy-redirect-00010
insert_policyId_to_file1 redirect_policyId9 ${policyId2}
Proxy-Policy-redirect-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*cs.ecitic.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -262,7 +262,7 @@ Proxy-Policy-redirect-00011
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00011 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00011 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId25 ${objectId}
@@ -272,12 +272,12 @@ Proxy-Policy-redirect-00011
insert_policyId_to_file1 redirect_policyId10 ${policyId2}
Proxy-Policy-redirect-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.polb.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.investors-trust.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=environment/shore-power#shore-power-program-details
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=products/product-type/
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=saltkey|Cookie
@@ -287,7 +287,7 @@ Proxy-Policy-redirect-00012
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00012 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00012 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId28 ${objectId}
@@ -297,22 +297,22 @@ Proxy-Policy-redirect-00012
insert_policyId_to_file1 redirect_policyId11 ${policyId2}
Proxy-Policy-redirect-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.travelmath.com,*egencia.com,*expediapartnersolutions.com,$www.concur.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.travelmath.com,*monticello.org,*expediapartnersolutions.com,*tripadvisor.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建set-cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=mobile=2*|Set-Cookie,*domain=.egencia.com; HttpOnly|Set-Cookie,domain=.expediapartnersolutions.com|Set-Cookie,AKA_A2=A*|Set-Cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=mobile=2*|Set-Cookie,PHPSESSID|Set-Cookie,SameSite=None; Secure|Set-Cookie,TASession*|Set-Cookie
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.travelmath.com,egencia.com,expediapartnersolutions.com,www.concur.com
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.travelmath.com,monticello.org,expediapartnersolutions.com,tripadvisor.com
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-redirect policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00013 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_RES_HDR,${objectId2}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00013 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_RES_HDR,${objectId2}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId31 ${objectId}
@@ -322,7 +322,7 @@ Proxy-Policy-redirect-00013
insert_policyId_to_file1 redirect_policyId12 ${policyId2}
Proxy-Policy-redirect-00014
[Tags] 请求体
[Tags] 请求体字串匹配
Comment 创建请求体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=lksdf
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -333,11 +333,11 @@ Proxy-Policy-redirect-00014
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=action
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-redirect policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId1}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-redirect policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00014 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_CONTENT,${objectId2}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00014 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_CONTENT,${objectId2}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId33 ${objectId}
@@ -364,7 +364,7 @@ Proxy-Policy-redirect-00015
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=tyuiop
${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00015 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_body_Id}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00015 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_body_Id}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId35 ${object_fqdn_Id}
@@ -377,23 +377,23 @@ Proxy-Policy-redirect-00015
Proxy-Policy-redirect-00016
[Tags] 最大组合2
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.uptake.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.equifax.com
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*industry-solutions/energy
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*personal/
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=saltkey|Cookie
${rescode} ${object_qq_Id} AddObject2 ${1} ${objectDict}
Comment 创建set-cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=SameSite=Lax|Set-Cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=GUEST_LANGUAGE_ID|Set-Cookie
${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-redirect policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${object_fqdn_Id}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建redirect策略
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00016 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"https://deseretbook.com/t/ebooks/biography-autobiography","code":302,"protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=Proxy-Policy-redirect-00016 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 redirect_objectId40 ${object_fqdn_Id}

View File

@@ -9,7 +9,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
*** Test Cases ***
Proxy-Policy-replace-00001
[Tags] fqdn
[Tags] fqdn完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$destidotcom.wordpress.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -30,7 +30,7 @@ Proxy-Policy-replace-00001
insert_policyId_to_file1 replace_policyId ${policyId2}
Proxy-Policy-replace-00002
[Tags] cat
[Tags] cat右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*trip.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -51,7 +51,7 @@ Proxy-Policy-replace-00002
insert_policyId_to_file1 replace_policyId1 ${policyId2}
Proxy-Policy-replace-00003
[Tags] url
[Tags] url4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*smartertravel.com,*chinese.hostelworld.com,*truelinkfinancial.com,*nycgo.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -72,7 +72,7 @@ Proxy-Policy-replace-00003
insert_policyId_to_file1 replace_policyId2 ${policyId2}
Proxy-Policy-replace-00004
[Tags] 请求头
[Tags] 请求头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*ino.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -97,7 +97,7 @@ Proxy-Policy-replace-00004
insert_policyId_to_file1 replace_policyId3 ${policyId2}
Proxy-Policy-replace-00005
[Tags] 请求头
[Tags] 请求头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.bestwestern.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -122,7 +122,7 @@ Proxy-Policy-replace-00005
insert_policyId_to_file1 replace_policyId4 ${policyId2}
Proxy-Policy-replace-00006
[Tags] 请求头
[Tags] 请求头字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.quickenloans.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -147,7 +147,7 @@ Proxy-Policy-replace-00006
insert_policyId_to_file1 replace_policyId5 ${policyId2}
Proxy-Policy-replace-00007
[Tags] 请求头
[Tags] 请求头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.gobank.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -172,7 +172,7 @@ Proxy-Policy-replace-00007
insert_policyId_to_file1 replace_policyId6 ${policyId2}
Proxy-Policy-replace-00008
[Tags] 应答头
[Tags] 应答头右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*www.ghzq.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -197,7 +197,7 @@ Proxy-Policy-replace-00008
insert_policyId_to_file1 replace_policyId7 ${policyId2}
Proxy-Policy-replace-00009
[Tags] 应答头
[Tags] 应答头完整匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*zts.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -222,7 +222,7 @@ Proxy-Policy-replace-00009
insert_policyId_to_file1 replace_policyId8 ${policyId2}
Proxy-Policy-replace-00010
[Tags] 替换请求体
[Tags] fqdn右匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -243,7 +243,7 @@ Proxy-Policy-replace-00010
insert_policyId_to_file1 replace_policyId9 ${policyId2}
Proxy-Policy-replace-00011
[Tags] 应答头
[Tags] 应答头左匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*shfe.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -268,7 +268,7 @@ Proxy-Policy-replace-00011
insert_policyId_to_file1 replace_policyId10 ${policyId2}
Proxy-Policy-replace-00012
[Tags] cookie
[Tags] cookie字串匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.national-park.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -293,7 +293,7 @@ Proxy-Policy-replace-00012
insert_policyId_to_file1 replace_policyId11 ${policyId2}
Proxy-Policy-replace-00013
[Tags] set-cookie
[Tags] set-cookie4种匹配
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.classicvacations.com,*expediacruises.com,*expediagroup.com,$www.expedia.co.uk
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -318,7 +318,7 @@ Proxy-Policy-replace-00013
insert_policyId_to_file1 replace_policyId12 ${policyId2}
Proxy-Policy-replace-00014
[Tags] 最大组合1
[Tags] 最大组合
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*hotelplanner.com
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}

View File

@@ -8,29 +8,17 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Allow-Http-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_HTTP_00001.bat
... ELSE set variable curl \ http://clintonairport.com/airlines-flights/covid/
${stringlist} run keyword if '${systemType}'=='Windows' Create List COVID
... ELSE Create List COVID
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_http_starttime ${starttime} allow_http_endtime ${endtime}
SecurityPolicy-Allow-Http-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_HTTP_00002.bat
... ELSE set variable curl http://www.airpano.com/360photo_list.php
${stringlist} run keyword if '${systemType}'=='Windows' Create List 360° Photo
... ELSE Create List 360° Photo
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_http_starttime1 ${starttime} allow_http_endtime1 ${endtime}

View File

@@ -8,29 +8,17 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Allow-Ssl-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00001.bat
... ELSE set variable curl https://homebank.kz/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Виртуальная
... ELSE Create List Виртуальная
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_ssl_starttime ${starttime} allow_ssl_endtime ${endtime}
SecurityPolicy-Allow-Ssl-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00002.bat
... ELSE set variable curl https://www.youtube.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List youtube
... ELSE Create List youtube
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_ssl_starttime1 ${starttime} allow_ssl_endtime1 ${endtime}

View File

@@ -8,263 +8,149 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
Proxy-Policy-allow-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00001.bat
... ELSE set variable curl -kv https://mp.pipix.com/extra/user_agreement
${stringlist} run keyword if '${systemType}'=='Windows' Create List 皮皮虾下载 Tango Secure Gateway CA
... ELSE Create List 皮皮虾下载 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime ${starttime} allow_endtime ${endtime}
Proxy-Policy-allow-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00002.bat
... ELSE set variable curl -kv https://www.feishu.cn/solutions/scenarios/remote-work
${stringlist} run keyword if '${systemType}'=='Windows' Create List 远程协同解决方案 Tango Secure Gateway CA
... ELSE Create List 远程协同解决方案 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime1 ${starttime} allow_endtime1 ${endtime}
Proxy-Policy-allow-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003.bat
... ELSE set variable curl -kv \ https://www.smzdm.com/jingxuan/
${stringlist} run keyword if '${systemType}'=='Windows' Create List PC所有AB测试集合 Tango Secure Gateway CA
... ELSE Create List PC所有AB测试集合 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime2 ${starttime} allow_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_1.bat
... ELSE set variable curl -kv \ https://passport.bilibili.com/login
${stringlist} run keyword if '${systemType}'=='Windows' Create List 哔哩哔哩弹幕视频网 Tango Secure Gateway CA
... ELSE Create List 哔哩哔哩弹幕视频网 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime3 ${starttime} allow_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_2.bat
... ELSE set variable curl -kv \ https://www.cheapair.com/hotels/
${stringlist} run keyword if '${systemType}'=='Windows' Create List search cheap hotels Tango Secure Gateway CA
... ELSE Create List search cheap hotels Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime4 ${starttime} allow_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_3.bat
... ELSE set variable curl -kv https://www.surfline.com/category/premium
${stringlist} run keyword if '${systemType}'=='Windows' Create List premium journalism. Get breaking news in all things surf Tango Secure Gateway CA
... ELSE Create List premium journalism. Get breaking news in all things surf Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime5 ${starttime} allow_endtime5 ${endtime}
Proxy-Policy-allow-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://expeditionportal.com/4wd/
${stringlist} run keyword if '${systemType}'=='Windows' Create List as images are available in the DOM Tango Secure Gateway CA
... ELSE Create List as images are available in the DOM Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime6 ${starttime} allow_endtime6 ${endtime}
Proxy-Policy-allow-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://boutiquehotel.me/paris/
${stringlist} run keyword if '${systemType}'=='Windows' Create List helps you find the best boutique hotels around the Tango Secure Gateway CA
... ELSE Create List helps you find the best boutique hotels around the Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime7 ${starttime} allow_endtime7 ${endtime}
Proxy-Policy-allow-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.choicehotels.com/quality-inn
${stringlist} run keyword if '${systemType}'=='Windows' Create List stores locale settings for multiple country sites Tango Secure Gateway CA
... ELSE Create List stores locale settings for multiple country sites Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime8 ${starttime} allow_endtime8 ${endtime}
Proxy-Policy-allow-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.clubmed.us/r/Sandpiper-Bay/y
${stringlist} run keyword if '${systemType}'=='Windows' Create List per night per adult based Tango Secure Gateway CA
... ELSE Create List per night per adult based Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime9 ${starttime} allow_endtime9 ${endtime}
Proxy-Policy-allow-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00008.bat
... ELSE set variable curl http://www.sse.com.cn/market/overview/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 上海证券交易所
... ELSE Create List 上海证券交易所
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime10 ${starttime} allow_endtime10 ${endtime}
Proxy-Policy-allow-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00009.bat
... ELSE set variable curl http://www.szse.cn/lawrules/index.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 党的建设
... ELSE Create List 党的建设
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime11 ${starttime} allow_endtime11 ${endtime}
Proxy-Policy-allow-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00010.bat
... ELSE set variable curl http://www.gf.com.cn/about/intro
${stringlist} run keyword if '${systemType}'=='Windows' Create List 广发证券官方网站
... ELSE Create List 广发证券官方网站
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime12 ${starttime} allow_endtime12 ${endtime}
Proxy-Policy-allow-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00011.bat
... ELSE set variable curl http://www.chinastock.com.cn/yhwz/investbank/index.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 中国银河证券
... ELSE Create List 中国银河证券
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime13 ${starttime} allow_endtime13 ${endtime}
Proxy-Policy-allow-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00012.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.virtuoso.com/destinations
${stringlist} run keyword if '${systemType}'=='Windows' Create List Object moved to Tango Secure Gateway CA
... ELSE Create List Object moved to Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime14 ${starttime} allow_endtime14 ${endtime}
Proxy-Policy-allow-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013.bat
... ELSE set variable curl -kv https://russia.payu.com/orange-data/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Интернет Tango Secure Gateway CA
... ELSE Create List Интернет Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime15 ${starttime} allow_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_1.bat
... ELSE set variable curl -kv https://tytbz.925mm.com/page/about.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 贴壁纸联盟 Tango Secure Gateway CA
... ELSE Create List 贴壁纸联盟 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime16 ${starttime} allow_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_2.bat
... ELSE set variable curl -kv https://dujia.qunar.com/?ex_track=auto_52b3f121
${stringlist} run keyword if '${systemType}'=='Windows' Create List 去哪儿旅游 Tango Secure Gateway CA
... ELSE Create List 去哪儿旅游 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime17 ${starttime} allow_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_3.bat
... ELSE set variable curl -kv https://www.vitalsource.com/textbooks
${stringlist} run keyword if '${systemType}'=='Windows' Create List VitalSource Technologies Inc Tango Secure Gateway CA
... ELSE Create List VitalSource Technologies Inc Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime18 ${starttime} allow_endtime18 ${endtime}
Proxy-Policy-allow-00014
[Tags] 最大组合
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00014.bat
... ELSE set variable curl -kv \ --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" \ --cookie "__cfduid=d5c21129d57e7124b729fd86dc82abdcd1596020306; __stripe_sid=2940d4d5-6822-4daf-8b38-9cd18d745beb; __stripe_mid=dd118cd8-845c-4b6e-98ce-81e8d5bdd52c" --referer 'https://www.baidu.com/' \ https://www.orbitz.com/Flights
${stringlist} run keyword if '${systemType}'=='Windows' Create List plenty of cheap airfare and flights to choose from Tango Secure Gateway CA
... ELSE Create List plenty of cheap airfare and flights to choose from Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 allow_starttime19 ${starttime} allow_endtime19 ${endtime}

View File

@@ -8,94 +8,57 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Deny-Dns-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.facebook.com
... ELSE set variable nslookup www.facebook.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 超时
... ELSE Create List canonical name = www.facebook.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime ${starttime} deny_dns_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d rutube.ru
... ELSE set variable nslookup -d rutube.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List 超时
... ELSE Create List canonical name = rutube.ru
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime1 ${starttime} deny_dns_endtime1 ${endtime}
SecurityPolicy-Deny-Dns-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.yhd.com
... ELSE set variable nslookup -debug -query=A \ www.yhd.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.41.186 www.jd.com ttl = 500
... ELSE Create List 192.168.41.186 www.jd.com ttl = 500
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime2 ${starttime} deny_dns_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.vk.com
... ELSE set variable nslookup -debug -query=A \ www.vk.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.41.186 www.jd.com ttl = 500
... ELSE Create List 192.168.41.186 www.jd.com ttl = 500
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime3 ${starttime} deny_dns_endtime3 ${endtime}
SecurityPolicy-Deny-Dns-00003
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ya.ru
... ELSE set variable nslookup -debug -query=AAAA ya.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List fc00::2:11 www.taobao.com ttl = 400
... ELSE Create List fc00::2:11 www.taobao.com ttl = 400
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime4 ${starttime} deny_dns_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ya.ru
... ELSE set variable nslookup -debug -query=AAAA ya.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List fc00::2:11 www.taobao.com ttl = 400
... ELSE Create List fc00::2:11 www.taobao.com ttl = 400
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime5 ${starttime} deny_dns_endtime5 ${endtime}
SecurityPolicy-Deny-Dns-00004
[Tags] 最大重定向
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.twitch.tv
... ELSE set variable nslookup -debug -query=A www.twitch.tv
${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.40.110 www.facebook.com ttl = 400 www.ok.ru fc00::2:22
... ELSE Create List 192.168.40.110 www.ok.ru ttl = 400
${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.twitch.tv
... ELSE set variable nslookup -debug -query=AAAA www.twitch.tv
${stringlist} run keyword if '${systemType}'=='Windows' Create List fc00::2:22 www.facebook.com ttl = 400 www.ok.ru 192.168.40.110
... ELSE Create List ttl = 400 www.facebook.com fc00::2:22
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime6 ${starttime} deny_dns_endtime6 ${endtime}

View File

@@ -9,45 +9,21 @@ Library Custometest
*** Test Cases ***
SecurityPolicy-Deny-Ftp-00001
[Tags] 子串匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/123456.txt -u"ftp_user:qazXSW@edc" 123456789
should contain ${FTP} ftp_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ftp_starttime ${starttime} deny_ftp_endtime ${endtime}
SecurityPolicy-Deny-Ftp-00002
[Tags] 右匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/test.txt -u"ftp_user:qazXSW@edc" 中文test
should contain ${FTP} ftp_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ftp_starttime1 ${starttime} deny_ftp_endtime1 ${endtime}
SecurityPolicy-Deny-Ftp-00003
[Tags] 完整匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/wlcsy.txt -u"ftp_user:qazXSW@edc" 中文文件内容
should contain ${FTP} ftp_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ftp_starttime2 ${starttime} deny_ftp_endtime2 ${endtime}
SecurityPolicy-Deny-Ftp-00004
[Tags] 左匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/aewn.txt -u"ftp_user:qazXSW@edc" завезенными
should contain ${FTP} ftp_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ftp_starttime3 ${starttime} deny_ftp_endtime3 ${endtime}

View File

@@ -8,319 +8,181 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Deny-Http-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00001.bat
... ELSE set variable curl http://webalta.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime ${starttime} deny_http_endtime ${endtime}
SecurityPolicy-Deny-Http-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00002.bat
... ELSE set variable curl http://www.nymbler.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime1 ${starttime} deny_http_endtime1 ${endtime}
SecurityPolicy-Deny-Http-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003.bat
... ELSE set variable curl http://www.icbc.com.cn/icbc/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime2 ${starttime} deny_http_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003_1.bat
... ELSE set variable curl http://www.ccb.com/cn/home/indexv3.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime3 ${starttime} deny_http_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003_2.bat
... ELSE set variable curl http://www.gotohoroscope.com/daily-horoscope.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime4 ${starttime} deny_http_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003_3.bat
... ELSE set variable curl http://government.ru/news/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime5 ${starttime} deny_http_endtime5 ${endtime}
SecurityPolicy-Deny-Http-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.tsutmb.ru/sveden
${stringlist} run keyword if '${systemType}'=='Windows' Create List yyyyy
... ELSE Create List yyyyy
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime6 ${starttime} deny_http_endtime6 ${endtime}
SecurityPolicy-Deny-Http-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.abchina.com/cn/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime7 ${starttime} deny_http_endtime7 ${endtime}
SecurityPolicy-Deny-Http-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' \http://egypt.travel/ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List 网站被阻断
... ELSE Create List 网站被阻断
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime8 ${starttime} deny_http_endtime8 ${endtime}
SecurityPolicy-Deny-Http-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.destination360.com/travel/destinations
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime9 ${starttime} deny_http_endtime9 ${endtime}
SecurityPolicy-Deny-Http-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00008.bat
... ELSE set variable curl http://www.cmbchina.com/CmbQuesInfo/index.aspx
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime10 ${starttime} deny_http_endtime10 ${endtime}
SecurityPolicy-Deny-Http-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00009.bat
... ELSE set variable curl http://www.skycn.com/soft/bangongruanjian.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime11 ${starttime} deny_http_endtime11 ${endtime}
SecurityPolicy-Deny-Http-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00010.bat
... ELSE set variable curl http://www.avaxsearch.com/tangkas/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime12 ${starttime} deny_http_endtime12 ${endtime}
SecurityPolicy-Deny-Http-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00011.bat
... ELSE set variable curl http://www.finestquotes.com/quotesbyauthors.php
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime13 ${starttime} deny_http_endtime13 ${endtime}
SecurityPolicy-Deny-Http-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00012.bat
... ELSE set variable curl -kv --cookie "*_ga=GA1.2.721078436.1587543528; _gid=GA1.2.916148851.1587543528; _gat=1; _ym_uid=1587543532244912958; _ym_d=1587543532; _ym_isad=2" --referer 'http://www.baidu.com/' \ http://www.universalmusic.ru/#about
${stringlist} run keyword if '${systemType}'=='Windows' Create List 马上到周末
... ELSE Create List 马上到周末
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime14 ${starttime} deny_http_endtime14 ${endtime}
SecurityPolicy-Deny-Http-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013.bat
... ELSE set variable curl http://www.ziroom.com/life/index
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime15 ${starttime} deny_http_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_1.bat
... ELSE set variable curl http://www.xiaozhu.com/#ongo
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime16 ${starttime} deny_http_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_2.bat
... ELSE set variable curl http://www.sinovision.net/portal.php?mod=center
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime17 ${starttime} deny_http_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_3.bat
... ELSE set variable curl http://nlr.ru/nlr_visit/RA549/novosti
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime18 ${starttime} deny_http_endtime18 ${endtime}
SecurityPolicy-Deny-Http-00014
[Tags] 请求体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00014.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=test&setCookie=12345678&contentType=content-type&resBody=Response Body" http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime19 ${starttime} deny_http_endtime19 ${endtime}
SecurityPolicy-Deny-Http-00015
[Tags] 应答体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00015.bat
... ELSE set variable curl http://www.huatonggs.com/about.html#gsjj
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime20 ${starttime} deny_http_endtime20 ${endtime}
SecurityPolicy-Deny-Http-00016
[Tags] 最大组合1
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00016.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=qazxs&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime21 ${starttime} deny_http_endtime21 ${endtime}
SecurityPolicy-Deny-Http-00017
[Tags] 最大组合2
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00017.bat
... ELSE set variable curl -kv --cookie "*_ga=GA1.2.721078436.1587543528; _gid=GA1.2.916148851.1587543528; _gat=1; _ym_uid=1587543532244912958; _ym_d=1587543532; _ym_isad=2" --referer 'http://www.baidu.com/' \ http://smspunch.net/send-free-sms.aspx
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime22 ${starttime} deny_http_endtime22 ${endtime}
SecurityPolicy-Deny-Http-00018
[Tags] 多ip对象
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00018.bat
... ELSE set variable curl http://www.hebbank.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_http_starttime23 ${starttime} deny_http_endtime23 ${endtime}

View File

@@ -9,10 +9,7 @@ Resource ../../../02-Keyword/tsg_common/StmpHandle.robot
*** Test Cases ***
SecurityPolicy-Deny-Mail-00001
[Tags] content
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -27,15 +24,9 @@ SecurityPolicy-Deny-Mail-00001
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime ${starttime} deny_mail_endtime ${endtime}
SecurityPolicy-Deny-Mail-00002
[Tags] att_cont
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -50,15 +41,9 @@ SecurityPolicy-Deny-Mail-00002
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime1 ${starttime} deny_mail_endtime1 ${endtime}
SecurityPolicy-Deny-Mail-00003
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -73,15 +58,9 @@ SecurityPolicy-Deny-Mail-00003
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime2 ${starttime} deny_mail_endtime2 ${endtime}
SecurityPolicy-Deny-Mail-00004
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -96,15 +75,9 @@ SecurityPolicy-Deny-Mail-00004
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime3 ${starttime} deny_mail_endtime3 ${endtime}
SecurityPolicy-Deny-Mail-00005
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -119,15 +92,9 @@ SecurityPolicy-Deny-Mail-00005
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime4 ${starttime} deny_mail_endtime4 ${endtime}
SecurityPolicy-Deny-Mail-00006
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -142,15 +109,9 @@ SecurityPolicy-Deny-Mail-00006
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime5 ${starttime} deny_mail_endtime5 ${endtime}
SecurityPolicy-Deny-Mail-00007
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -165,15 +126,9 @@ SecurityPolicy-Deny-Mail-00007
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime6 ${starttime} deny_mail_endtime6 ${endtime}
SecurityPolicy-Deny-Mail-00008
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -188,15 +143,9 @@ SecurityPolicy-Deny-Mail-00008
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime7 ${starttime} deny_mail_endtime7 ${endtime}
SecurityPolicy-Deny-Mail-00009
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -211,15 +160,9 @@ SecurityPolicy-Deny-Mail-00009
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime8 ${starttime} deny_mail_endtime8 ${endtime}
SecurityPolicy-Deny-Mail-00010
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -234,15 +177,9 @@ SecurityPolicy-Deny-Mail-00010
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime9 ${starttime} deny_mail_endtime9 ${endtime}
SecurityPolicy-Deny-Mail-00011
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -257,15 +194,9 @@ SecurityPolicy-Deny-Mail-00011
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime10 ${starttime} deny_mail_endtime10 ${endtime}
SecurityPolicy-Deny-Mail-00012
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -280,15 +211,9 @@ SecurityPolicy-Deny-Mail-00012
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime11 ${starttime} deny_mail_endtime11 ${endtime}
SecurityPolicy-Deny-Mail-00013
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -303,15 +228,9 @@ SecurityPolicy-Deny-Mail-00013
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime12 ${starttime} deny_mail_endtime12 ${endtime}
SecurityPolicy-Deny-Mail-00014
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -326,15 +245,9 @@ SecurityPolicy-Deny-Mail-00014
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime13 ${starttime} deny_mail_endtime13 ${endtime}
SecurityPolicy-Deny-Mail-00015
[Tags] 最大组合
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -349,6 +262,3 @@ SecurityPolicy-Deny-Mail-00015
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime14 ${starttime} deny_mail_endtime14 ${endtime}

View File

@@ -8,90 +8,51 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Deny-Ssl-00001
[Tags] sni
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00001.bat
... ELSE set variable curl https://www.freestockimages.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ssl_starttime ${starttime} deny_ssl_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00001_1.bat
... ELSE set variable curl \ \ \ https://www.cxwl.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ssl_starttime1 ${starttime} deny_ssl_endtime1 ${endtime}
SecurityPolicy-Deny-Ssl-00002
[Tags] cn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00002.bat
... ELSE set variable curl https://www.berkeleygroup.co.uk/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ssl_starttime2 ${starttime} deny_ssl_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00002_2.bat
... ELSE set variable curl https://www.vip.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ssl_starttime3 ${starttime} deny_ssl_endtime3 ${endtime}
SecurityPolicy-Deny-Ssl-00003
[Tags] san
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00003.bat
... ELSE set variable curl https://www.nastol.com.ua/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ssl_starttime4 ${starttime} deny_ssl_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00003_3.bat
... ELSE set variable curl https://www.pulitzer.org/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ssl_starttime5 ${starttime} deny_ssl_endtime5 ${endtime}
SecurityPolicy-Deny-Ssl-00004
[Tags] 最大组合
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00004.bat
... ELSE set variable curl https://www.prlib.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Operation timed out
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_ssl_starttime6 ${starttime} deny_ssl_endtime6 ${endtime}

View File

@@ -8,305 +8,181 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
Proxy-Policy-deny-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00001.bat
... ELSE set variable curl -kv \ https://newsela.com/about/content/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 重新开始 Tango Secure Gateway CA
... ELSE Create List 重新开始 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime ${starttime} deny_endtime ${endtime}
Proxy-Policy-deny-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00002.bat
... ELSE set variable curl -kv \ \ https://www.villaday.com/villageList
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable Tango Secure Gateway CA
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime1 ${starttime} deny_endtime1 ${endtime}
Proxy-Policy-deny-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003.bat
... ELSE set variable curl -kv \ https://www.wmtransfer.com/eng/business/accept-payments/online-shop/widget.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime2 ${starttime} deny_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003_1.bat
... ELSE set variable curl -kv \ https://www.banbaowang.com/shouchaobao/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime3 ${starttime} deny_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003_2.bat
... ELSE set variable curl -kv \ https://www.qidian.com/rank
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime4 ${starttime} deny_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003_3.bat
... ELSE set variable curl -kv \ https://www.rolandberger.com/ru/?country=RU
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime5 ${starttime} deny_endtime5 ${endtime}
Proxy-Policy-deny-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.usdebtclock.org/state-debt-clocks/state-of-california-debt-clock.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List qwertyuiop Tango Secure Gateway CA
... ELSE Create List qwertyuiop Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime6 ${starttime} deny_endtime6 ${endtime}
Proxy-Policy-deny-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://americantesol.com/tesol-register.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List онлайн фильмы Tango Secure Gateway CA
... ELSE Create List онлайн фильмы Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime7 ${starttime} deny_endtime7 ${endtime}
Proxy-Policy-deny-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.playgroundsessions.com/about/software-features
${stringlist} run keyword if '${systemType}'=='Windows' Create List 明天大涨 Tango Secure Gateway CA
... ELSE Create List 明天大涨 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime8 ${starttime} deny_endtime8 ${endtime}
Proxy-Policy-deny-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://peoplestalkradio.com/forums/register.php
${stringlist} run keyword if '${systemType}'=='Windows' Create List 今天中奖 Tango Secure Gateway CA
... ELSE Create List 今天中奖 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime9 ${starttime} deny_endtime9 ${endtime}
Proxy-Policy-deny-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00008.bat
... ELSE set variable curl http://www.6renyou.com/user_comment/index
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime10 ${starttime} deny_endtime10 ${endtime}
Proxy-Policy-deny-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00009.bat
... ELSE set variable curl http://www.ljale.com/home/webdir.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime11 ${starttime} deny_endtime11 ${endtime}
Proxy-Policy-deny-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00010.bat
... ELSE set variable curl http://www.duckduckmoose.com/learn/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime12 ${starttime} deny_endtime12 ${endtime}
Proxy-Policy-deny-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00011.bat
... ELSE set variable curl http://tutcandy.com/2009/04/ai-sketch-to-vector-tutorial
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime13 ${starttime} deny_endtime13 ${endtime}
Proxy-Policy-deny-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00012.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.youqulu.com/category/zixun
${stringlist} run keyword if '${systemType}'=='Windows' Create List 123456789 Tango Secure Gateway CA
... ELSE Create List 123456789 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime14 ${starttime} deny_endtime14 ${endtime}
Proxy-Policy-deny-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013.bat
... ELSE set variable curl -kv \ https://www.nypl.org/books-music-movies
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime15 ${starttime} deny_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013_1.bat
... ELSE set variable curl -kv https://www.thailand.com.co/category-207-b0.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime16 ${starttime} deny_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013_2.bat
... ELSE set variable curl -kv \ https://bj.zu.ke.com/zufang
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime17 ${starttime} deny_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013_3.bat
... ELSE set variable curl -kv \ https://nationalbank.kz/?switch=kazakh
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime18 ${starttime} deny_endtime18 ${endtime}
Proxy-Policy-deny-00014
[Tags] 请求体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00014.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=1234567&setCookie=12345678&contentType=content-type&resBody=Response Body" http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime19 ${starttime} deny_endtime19 ${endtime}
Proxy-Policy-deny-00015
[Tags] 应答体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00015.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=lkjh&setCookie=12345678&contentType=content-type&resBody=ASDFG" http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime20 ${starttime} deny_endtime20 ${endtime}
Proxy-Policy-deny-00016
[Tags] 最大组合1
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00018.bat
... ELSE set variable curl -kv https://www.stewart.com/en.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-deny-00017
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00016.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=mnbv&setCookie=asdf&contentType=content-type&resBody=adzx" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List 涨涨涨涨
... ELSE Create List 涨涨涨涨
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime21 ${starttime} deny_endtime21 ${endtime}
Proxy-Policy-deny-00017
[Tags] 最大组合2
Proxy-Policy-deny-00018
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00017.bat
... ELSE set variable curl -kv --cookie "test%20cookie=null; timezoneoffset=-480; ASP.NET_SessionId=sta2b3gxpxzqei3by1ka3qsa; visid_incap_1010467=Iu/pLzeoTnGn2VDjWdP9GpoBGF8AAAAAQUIPAAAAAADzSLZtZ1tZ/Rbjfct3Nq69" --referer 'https://www.baidu.com/' \ https://www.umusicpub.com/au/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset Tango Secure Gateway CA
... ELSE Create List Connection reset by peer Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_starttime22 ${starttime} deny_endtime22 ${endtime}

View File

@@ -0,0 +1 @@
*** Test Cases ***

View File

@@ -8,263 +8,149 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
Proxy-Policy-hijack-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00001.bat
... ELSE set variable curl -kv https://vator.tv/news
${stringlist} run keyword if '${systemType}'=='Windows' Create List 6b72:f91d:6f81:bfcd:5b0f:e81d:f827:e075 Tango Secure Gateway CA
... ELSE Create List 6b72:f91d:6f81:bfcd:5b0f:e81d:f827:e075 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime ${starttime} hijack_endtime ${endtime}
Proxy-Policy-hijack-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00002.bat
... ELSE set variable curl -kv https://www.cruisecritic.com/cruiseto/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 控制小蛇在地图范围内移动 Tango Secure Gateway CA
... ELSE Create List 控制小蛇在地图范围内移动 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime1 ${starttime} hijack_endtime1 ${endtime}
Proxy-Policy-hijack-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00003.bat
... ELSE set variable curl -kv https://www.vegas.com/lasvegastraveldeals/
${stringlist} run keyword if '${systemType}'=='Windows' Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
... ELSE Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime2 ${starttime} hijack_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00003_1.bat
... ELSE set variable curl -kv https://job.bytedance.com/society/product
${stringlist} run keyword if '${systemType}'=='Windows' Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
... ELSE Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime3 ${starttime} hijack_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00003_2.bat
... ELSE set variable curl -kv https://www.toutiao.com/ch/news_hot/
${stringlist} run keyword if '${systemType}'=='Windows' Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
... ELSE Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime4 ${starttime} hijack_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00003_3.bat
... ELSE set variable curl -kv https://e.douyin.com/site/
${stringlist} run keyword if '${systemType}'=='Windows' Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
... ELSE Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime5 ${starttime} hijack_endtime5 ${endtime}
Proxy-Policy-hijack-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.huoshan.com/greenlive/union_hall/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 控制小蛇在地图范围内移动 Tango Secure Gateway CA
... ELSE Create List 控制小蛇在地图范围内移动 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime6 ${starttime} hijack_endtime6 ${endtime}
Proxy-Policy-hijack-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://www.ixigua.com/channel/dianying/
${stringlist} run keyword if '${systemType}'=='Windows' Create List bFiles-test-5.png Tango Secure Gateway CA
... ELSE Create List bFiles-test-5.png Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime7 ${starttime} hijack_endtime7 ${endtime}
Proxy-Policy-hijack-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.dcdapp.com/?zt=dongchediapp
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-4.jpeg Tango Secure Gateway CA
... ELSE Create List test-4.jpeg Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime8 ${starttime} hijack_endtime8 ${endtime}
Proxy-Policy-hijack-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.gogokid.com.cn/teacher
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-2.gif Tango Secure Gateway CA
... ELSE Create List test-2.gif Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime9 ${starttime} hijack_endtime9 ${endtime}
Proxy-Policy-hijack-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00008.bat
... ELSE set variable curl http://www.mafengwo.cn/mdd/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 控制小蛇在地图范围内移动
... ELSE Create List 控制小蛇在地图范围内移动
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime10 ${starttime} hijack_endtime10 ${endtime}
Proxy-Policy-hijack-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00009.bat
... ELSE set variable curl -kv http://quote.hexun.com/default.htm#forex
${stringlist} run keyword if '${systemType}'=='Windows' Create List 控制小蛇在地图范围内移动
... ELSE Create List 控制小蛇在地图范围内移动
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime11 ${starttime} hijack_endtime11 ${endtime}
Proxy-Policy-hijack-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00010.bat
... ELSE set variable curl http://bbs.tianya.cn/list-39-1.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 控制小蛇在地图范围内移动
... ELSE Create List 控制小蛇在地图范围内移动
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime12 ${starttime} hijack_endtime12 ${endtime}
Proxy-Policy-hijack-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00011.bat
... ELSE set variable curl http://hardware.mydrivers.com/class/801/
${stringlist} run keyword if '${systemType}'=='Windows' Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac
... ELSE Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime13 ${starttime} hijack_endtime13 ${endtime}
Proxy-Policy-hijack-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00012.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.reval.com/corporates/
${stringlist} run keyword if '${systemType}'=='Windows' Create List bFiles-test-5.png Tango Secure Gateway CA
... ELSE Create List bFiles-test-5.png Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime14 ${starttime} hijack_endtime14 ${endtime}
Proxy-Policy-hijack-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00013.bat
... ELSE set variable curl -kv https://nsscreencast.com/episodes
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-4.jpeg Tango Secure Gateway CA
... ELSE Create List test-4.jpeg Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime15 ${starttime} hijack_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00013_1.bat
... ELSE set variable curl -kv https://www.edreams.net/merch/trends/
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-4.jpeg Tango Secure Gateway CA
... ELSE Create List test-4.jpeg Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime16 ${starttime} hijack_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00013_2.bat
... ELSE set variable curl -kv https://boutiquehotel.me/paris/
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-4.jpeg Tango Secure Gateway CA
... ELSE Create List test-4.jpeg Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime17 ${starttime} hijack_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00013_3.bat
... ELSE set variable curl -kv https://www.united.com/zh-hans/cn
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-4.jpeg Tango Secure Gateway CA
... ELSE Create List test-4.jpeg Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime18 ${starttime} hijack_endtime18 ${endtime}
Proxy-Policy-hijack-00014
[Tags] 最大组合
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00014.bat
... ELSE set variable curl -kv \ --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" \ --cookie "__cfduid=d5c21129d57e7124b729fd86dc82abdcd1596020306; __stripe_sid=2940d4d5-6822-4daf-8b38-9cd18d745beb; __stripe_mid=dd118cd8-845c-4b6e-98ce-81e8d5bdd52c" --referer 'https://www.baidu.com/' \ https://www.travelzoo.com/cn/collections/hotels/ihg-group-meta/
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-2.gif Tango Secure Gateway CA
... ELSE Create List test-2.gif Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 hijack_starttime19 ${starttime} hijack_endtime19 ${endtime}

View File

@@ -8,263 +8,149 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
Proxy-Policy-insert-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00001.bat
... ELSE set variable curl -kv https://www.costcotravel.com/Vacation-Packages
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime ${starttime} insert_endtime ${endtime}
Proxy-Policy-insert-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00002.bat
... ELSE set variable curl -kv https://secure.cruisingpower.com/public/registration/choose.do
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime1 ${starttime} insert_endtime1 ${endtime}
Proxy-Policy-insert-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003.bat
... ELSE set variable curl -kv https://uncorneredmarket.com/work-with-us/tourism-strategy/
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime2 ${starttime} insert_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_1.bat
... ELSE set variable curl -kv https://www.alltrails.com/signup?ref=header
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime3 ${starttime} insert_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_2.bat
... ELSE set variable curl -kv https://www.atlasobscura.com/experiences
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime4 ${starttime} insert_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_3.bat
... ELSE set variable curl -kv https://www.anguilla-beaches.com/anguilla-villas.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime5 ${starttime} insert_endtime5 ${endtime}
Proxy-Policy-insert-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.viator.com/login?login_redirect=%2Faccount%2Fbookings
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime6 ${starttime} insert_endtime6 ${endtime}
Proxy-Policy-insert-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://matadornetwork.com/destinations/north-america/united-states/
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime7 ${starttime} insert_endtime7 ${endtime}
Proxy-Policy-insert-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.farecompare.com/hotels/
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime8 ${starttime} insert_endtime8 ${endtime}
Proxy-Policy-insert-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.tripit.com/web
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime9 ${starttime} insert_endtime9 ${endtime}
Proxy-Policy-insert-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00008.bat
... ELSE set variable curl http://www.waikikibeachwalk.com/Shops.htm
... ELSE set variable curl -kv http://www.waikikibeachwalk.com/Shops.htm
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe
... ELSE Create List X-TG-Construct-By: tfe
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime10 ${starttime} insert_endtime10 ${endtime}
Proxy-Policy-insert-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00009.bat
... ELSE set variable curl http://www.world-guides.com/north-america/usa/nevada/las-vegas/
... ELSE set variable curl -kv \ http://www.world-guides.com/north-america/usa/nevada/las-vegas/
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe
... ELSE Create List X-TG-Construct-By: tfe
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime11 ${starttime} insert_endtime11 ${endtime}
Proxy-Policy-insert-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00010.bat
... ELSE set variable curl http://news.cnstock.com/kcb
... ELSE set variable curl -kv http://news.cnstock.com/kcb
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe
... ELSE Create List X-TG-Construct-By: tfe
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime12 ${starttime} insert_endtime12 ${endtime}
Proxy-Policy-insert-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00011.bat
... ELSE set variable curl http://otc.newone.com.cn/cwyw
... ELSE set variable curl -kv http://otc.newone.com.cn/cwyw
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe
... ELSE Create List X-TG-Construct-By: tfe
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime13 ${starttime} insert_endtime13 ${endtime}
Proxy-Policy-insert-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00012.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.eastbay.com/category/womens.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime14 ${starttime} insert_endtime14 ${endtime}
Proxy-Policy-insert-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013.bat
... ELSE set variable curl -kv https://www.shermanstravel.com/interests/deals-now-travel-later-1
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime15 ${starttime} insert_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013_1.bat
... ELSE set variable curl -kv https://www.wyndhamhotels.com/laquinta
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime16 ${starttime} insert_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013_2.bat
... ELSE set variable curl -kv https://us.travelnow.com/profile/findbookings.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime17 ${starttime} insert_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00013_3.bat
... ELSE set variable curl -kv https://www.smithsonianjourneys.org/tours/tripfinder/
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime18 ${starttime} insert_endtime18 ${endtime}
Proxy-Policy-insert-00014
[Tags] 最大组合2
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00017.bat
... ELSE set variable curl -kv \ --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" \ --cookie "__cfduid=d5c21129d57e7124b729fd86dc82abdcd1596020306; __stripe_sid=2940d4d5-6822-4daf-8b38-9cd18d745beb; __stripe_mid=dd118cd8-845c-4b6e-98ce-81e8d5bdd52c" --referer 'https://www.baidu.com/' \ https://www.intervalworld.com/web/my/home
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 insert_starttime19 ${starttime} insert_endtime19 ${endtime}

View File

@@ -8,29 +8,17 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Intercept-Http-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_HTTP_00001.bat
... ELSE set variable curl http://www.mydrivers.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 硬件发烧友
... ELSE Create List 硬件发烧友
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 intercept_http_starttime ${starttime} intercept_http_endtime ${endtime}
SecurityPolicy-Intercept-Http-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_HTTP_00002.bat
... ELSE set variable curl http://sunnylands.org/
${stringlist} run keyword if '${systemType}'=='Windows' Create List history
... ELSE Create List history
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 intercept_http_starttime1 ${starttime} intercept_http_endtime1 ${endtime}

View File

@@ -8,29 +8,17 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Intercept-Ssl-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00001.bat
... ELSE set variable curl -kv https://www.reviewpro.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Before Tango Secure Gateway CA
... ELSE Create List Before Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 intercept_ssl_starttime ${starttime} intercept_ssl_endtime ${endtime}
SecurityPolicy-Intercept-Ssl-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002.bat
... ELSE set variable curl -kv https://www.momondo.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Дешевые ави Tango Secure Gateway CA
... ELSE Create List Дешевые ави Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 intercept_ssl_starttime1 ${starttime} intercept_ssl_endtime1 ${endtime}

View File

@@ -8,51 +8,29 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Monitor-Dns-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d travelgam.com
... ELSE set variable nslookup travelgam.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List travelgam.com
... ELSE Create List travelgam.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${stringlist} run keyword if '${systemType}'=='Windows' Create List travelgam.com
... ELSE Create List travelgam.com
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime ${starttime} monitor_dns_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d flyaurora.ru
... ELSE set variable nslookup -d flyaurora.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List flyaurora.ru
... ELSE Create List flyaurora.ru
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime1 ${starttime} monitor_dns_endtime1 ${endtime}
SecurityPolicy-Monitor-Dns-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ostrovok.ru
... ELSE set variable nslookup -d ostrovok.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List ostrovok.ru
... ELSE Create List ostrovok.ru
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime2 ${starttime} monitor_dns_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.vip.com
... ELSE set variable nslookup -d www.vip.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List canonical name = www.vip.com
... ELSE Create List canonical name = www.vip.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime3 ${starttime} monitor_dns_endtime3 ${endtime}

View File

@@ -9,45 +9,21 @@ Library Custometest
*** Test Cases ***
SecurityPolicy-Monitor-Ftp-00001
[Tags] 子串匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/123zxcvbnm.txt -u"ftp_user:qazXSW@edc" crfvtgbyhnuj
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime ${starttime} monitor_ftp_endtime ${endtime}
SecurityPolicy-Monitor-Ftp-00002
[Tags] 右匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/stamp.txt -u"ftp_user:qazXSW@edc" Shandong Province
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime1 ${starttime} monitor_ftp_endtime1 ${endtime}
SecurityPolicy-Monitor-Ftp-00003
[Tags] 完整匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/qwert.txt -u"ftp_user:qazXSW@edc" 花好听的名字
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime2 ${starttime} monitor_ftp_endtime2 ${endtime}
SecurityPolicy-Monitor-Ftp-00004
[Tags] 左匹配
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/asdfg.txt -u"ftp_user:qazXSW@edc" апартаментов
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime3 ${starttime} monitor_ftp_endtime3 ${endtime}

View File

@@ -8,305 +8,173 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Monitor-Http-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00001.bat
... ELSE set variable curl http://nerdreactor.com/latest-posts/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Latest Posts
... ELSE Create List Latest Posts
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime ${starttime} monitor_http_endtime ${endtime}
SecurityPolicy-Monitor-Http-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00002.bat
... ELSE set variable curl http://jzjc.jd.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 装修一站式购齐
... ELSE Create List 装修一站式购齐
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime1 ${starttime} monitor_http_endtime1 ${endtime}
SecurityPolicy-Monitor-Http-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003.bat
... ELSE set variable curl http://www.hkbchina.com/portal/zh_CN/home/index.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 汉口银行
... ELSE Create List 汉口银行
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime2 ${starttime} monitor_http_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003_1.bat
... ELSE set variable curl http://www.nuk-baby.ru/ru_ru/kollekcii/disney-mickey-mouse.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Поиск
... ELSE Create List Поиск
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime3 ${starttime} monitor_http_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003_2.bat
... ELSE set variable curl http://www.universalmusic.ru/artists
${stringlist} run keyword if '${systemType}'=='Windows' Create List Артисты
... ELSE Create List Артисты
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime4 ${starttime} monitor_http_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003_3.bat
... ELSE set variable curl http://crosswordheaven.com/search
${stringlist} run keyword if '${systemType}'=='Windows' Create List Search
... ELSE Create List Search
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime5 ${starttime} monitor_http_endtime5 ${endtime}
SecurityPolicy-Monitor-Http-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.inspirational-quotes.info/motivational-quotes.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Motivational
... ELSE Create List Motivational
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime6 ${starttime} monitor_http_endtime6 ${endtime}
SecurityPolicy-Monitor-Http-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.chinahr.com/home/bj/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 搜索工作机会
... ELSE Create List 搜索工作机会
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime7 ${starttime} monitor_http_endtime7 ${endtime}
SecurityPolicy-Monitor-Http-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' \http://car.bitauto.com/weixingche/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 禁止下线
... ELSE Create List 禁止下线
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime8 ${starttime} monitor_http_endtime8 ${endtime}
SecurityPolicy-Monitor-Http-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.herocraft.com/games/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Games
... ELSE Create List Games
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime9 ${starttime} monitor_http_endtime9 ${endtime}
SecurityPolicy-Monitor-Http-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00008.bat
... ELSE set variable curl http://www.tccb.com.cn/grjr/index.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 产品信息公告
... ELSE Create List 产品信息公告
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime10 ${starttime} monitor_http_endtime10 ${endtime}
SecurityPolicy-Monitor-Http-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00009.bat
... ELSE set variable curl http://www.athinline.org/facts
${stringlist} run keyword if '${systemType}'=='Windows' Create List Things
... ELSE Create List Things
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime11 ${starttime} monitor_http_endtime11 ${endtime}
SecurityPolicy-Monitor-Http-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00010.bat
... ELSE set variable curl http://1001guru.ru/hidden-investigation-3-crime-files/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Hidden
... ELSE Create List Hidden
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime12 ${starttime} monitor_http_endtime12 ${endtime}
SecurityPolicy-Monitor-Http-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00011.bat
... ELSE set variable curl http://emi-ors.com/about/
${stringlist} run keyword if '${systemType}'=='Windows' Create List gastroenterologist
... ELSE Create List gastroenterologist
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime13 ${starttime} monitor_http_endtime13 ${endtime}
SecurityPolicy-Monitor-Http-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00012.bat
... ELSE set variable curl -kv --cookie "*wingsofprey=jkmg7dm2dqjhf4514u0ehjde45; __utma=1.780132397.1593856991.1593856991.1593856991.1; __utmc=1; __utmz=1.1593856991.1.1.utmcsr=lvse.cn" --referer 'http://www.baidu.com/' \ http://www.titter.com/en/games/jack-stone.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Scooby Doo Adventure 3
... ELSE Create List Scooby Doo Adventure 3
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime14 ${starttime} monitor_http_endtime14 ${endtime}
SecurityPolicy-Monitor-Http-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013.bat
... ELSE set variable curl http://www.spore.com/what
${stringlist} run keyword if '${systemType}'=='Windows' Create List www.spore.com
... ELSE Create List www.spore.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime15 ${starttime} monitor_http_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013_1.bat
... ELSE set variable curl http://www.dianping.com/beijing
${stringlist} run keyword if '${systemType}'=='Windows' Create List 小吃快餐
... ELSE Create List 小吃快餐
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime16 ${starttime} monitor_http_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013_2.bat
... ELSE set variable curl http://cn.bing.com/translator
${stringlist} run keyword if '${systemType}'=='Windows' Create List 快速翻译单词
... ELSE Create List 快速翻译单词
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime17 ${starttime} monitor_http_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013_3.bat
... ELSE set variable curl http://virtualflowers.ru/en/
${stringlist} run keyword if '${systemType}'=='Windows' Create List virtualflowers
... ELSE Create List virtualflowers
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime18 ${starttime} monitor_http_endtime18 ${endtime}
SecurityPolicy-Monitor-Http-00014
[Tags] 请求体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00014.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=test&setCookie=12345678&contentType=content-type&resBody=Response Body" http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List zxcvb
... ELSE Create List zxcvb
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime19 ${starttime} monitor_http_endtime19 ${endtime}
SecurityPolicy-Monitor-Http-00015
[Tags] 应答体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00015.bat
... ELSE set variable curl http://motionmathgames.com/contact/
${stringlist} run keyword if '${systemType}'=='Windows' Create List We'd love to hear from you!
... ELSE Create List We'd love to hear from you!
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime20 ${starttime} monitor_http_endtime20 ${endtime}
SecurityPolicy-Monitor-Http-00016
[Tags] 最大组合1
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00016.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=mkiolp&setCookie=12345678&contentType=content-type&resBody=Response Body" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List mkiolp
... ELSE Create List mkiolp
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime21 ${starttime} monitor_http_endtime21 ${endtime}
SecurityPolicy-Monitor-Http-00017
[Tags] 最大组合2
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00017.bat
... ELSE set variable curl -kv --cookie "*wingsofprey=jkmg7dm2dqjhf4514u0ehjde45; __utma=1.780132397.1593856991.1593856991.1593856991.1; __utmc=1; __utmz=1.1593856991.1.1.utmcsr=lvse.cn" --referer 'http://www.baidu.com/' \ http://www.airwargame.com/eng/start/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Last news
... ELSE Create List Last news
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime22 ${starttime} monitor_http_endtime22 ${endtime}

View File

@@ -9,10 +9,7 @@ Resource ../../../02-Keyword/tsg_common/StmpHandle.robot
*** Test Cases ***
SecurityPolicy-Momitor-Mail-00001
[Tags] content
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -27,15 +24,9 @@ SecurityPolicy-Momitor-Mail-00001
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime ${starttime} monitor_mail_endtime ${endtime}
SecurityPolicy-Momitor-Mail-00002
[Tags] att_cont
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -50,15 +41,9 @@ SecurityPolicy-Momitor-Mail-00002
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime1 ${starttime} monitor_mail_endtime1 ${endtime}
SecurityPolicy-Momitor-Mail-00003
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -73,15 +58,9 @@ SecurityPolicy-Momitor-Mail-00003
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime2 ${starttime} monitor_mail_endtime2 ${endtime}
SecurityPolicy-Momitor-Mail-00004
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -96,15 +75,9 @@ SecurityPolicy-Momitor-Mail-00004
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime3 ${starttime} monitor_mail_endtime3 ${endtime}
SecurityPolicy-Momitor-Mail-00005
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -119,15 +92,9 @@ SecurityPolicy-Momitor-Mail-00005
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime4 ${starttime} monitor_mail_endtime4 ${endtime}
SecurityPolicy-Momitor-Mail-00006
[Tags] subject from
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -142,15 +109,9 @@ SecurityPolicy-Momitor-Mail-00006
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime5 ${starttime} monitor_mail_endtime5 ${endtime}
SecurityPolicy-Momitor-Mail-00007
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -165,15 +126,9 @@ SecurityPolicy-Momitor-Mail-00007
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime6 ${starttime} monitor_mail_endtime6 ${endtime}
SecurityPolicy-Momitor-Mail-00008
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -188,15 +143,9 @@ SecurityPolicy-Momitor-Mail-00008
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime7 ${starttime} monitor_mail_endtime7 ${endtime}
SecurityPolicy-Momitor-Mail-00009
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -211,15 +160,9 @@ SecurityPolicy-Momitor-Mail-00009
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime8 ${starttime} monitor_mail_endtime8 ${endtime}
SecurityPolicy-Momitor-Mail-00010
[Tags] to subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -234,15 +177,9 @@ SecurityPolicy-Momitor-Mail-00010
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime9 ${starttime} monitor_mail_endtime9 ${endtime}
SecurityPolicy-Momitor-Mail-00011
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -257,15 +194,9 @@ SecurityPolicy-Momitor-Mail-00011
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime10 ${starttime} monitor_mail_endtime10 ${endtime}
SecurityPolicy-Momitor-Mail-00012
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -280,15 +211,9 @@ SecurityPolicy-Momitor-Mail-00012
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime11 ${starttime} monitor_mail_endtime11 ${endtime}
SecurityPolicy-Momitor-Mail-00013
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -303,15 +228,9 @@ SecurityPolicy-Momitor-Mail-00013
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime12 ${starttime} monitor_mail_endtime12 ${endtime}
SecurityPolicy-Momitor-Mail-00014
[Tags] account subject
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -326,15 +245,9 @@ SecurityPolicy-Momitor-Mail-00014
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime13 ${starttime} monitor_mail_endtime13 ${endtime}
SecurityPolicy-Momitor-Mail-00015
[Tags] 最大组合
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${Smtp服务器} Set Variable Smtp.163.com
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable 13103304145@163.com
@@ -349,6 +262,3 @@ SecurityPolicy-Momitor-Mail-00015
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_mail_starttime14 ${starttime} monitor_mail_endtime14 ${endtime}

View File

@@ -8,90 +8,52 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
SecurityPolicy-Monitor-Ssl-00001
[Tags] sni
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00001.bat
... ELSE set variable curl https://www.wego.cn/
${stringlist} run keyword if '${systemType}'=='Windows' Create List WebComponents
... ELSE Create List WebComponents
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime ${starttime} monitor_ssl_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00001_1.bat
... ELSE set variable curl \ https://freecountry.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Twitter Icon
... ELSE Create List Twitter Icon
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime1 ${starttime} monitor_ssl_endtime1 ${endtime}
SecurityPolicy-Monitor-Ssl-00002
[Tags] cn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00002.bat
... ELSE set variable curl https://www.huya.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 用户2亿
... ELSE Create List 用户2亿
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime2 ${starttime} monitor_ssl_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00002_2.bat
... ELSE set variable curl https://www.artistdirect.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Language
... ELSE Create List Language
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime3 ${starttime} monitor_ssl_endtime3 ${endtime}
SecurityPolicy-Monitor-Ssl-00003
[Tags] san
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00003.bat
... ELSE set variable curl https://www.lyrics.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List you can find all the
... ELSE Create List you can find all the
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime4 ${starttime} monitor_ssl_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00003_3.bat
... ELSE set variable curl https://melody.su/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Пахмутовой
... ELSE Create List Пахмутовой
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime5 ${starttime} monitor_ssl_endtime5 ${endtime}
SecurityPolicy-Monitor-Ssl-00004
[Tags] 最大组合
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00004.bat
... ELSE set variable curl https://www.iqiyi.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 今日焦点
... ELSE Create List 今日焦点
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime6 ${starttime} monitor_ssl_endtime6 ${endtime}

View File

@@ -8,305 +8,173 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
Proxy-Policy-monitor-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00001.bat
... ELSE set variable curl -kv \ https://newsela.com/about/content/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 重新开始 Tango Secure Gateway CA
... ELSE Create List 重新开始 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime ${starttime} monitor_endtime ${endtime}
Proxy-Policy-monitor-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00002.bat
... ELSE set variable curl -kv \ \ https://www.villaday.com/villageList
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable Tango Secure Gateway CA
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime1 ${starttime} monitor_endtime1 ${endtime}
Proxy-Policy-monitor-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003.bat
... ELSE set variable curl -kv \ https://www.wmtransfer.com/eng/business/accept-payments/online-shop/widget.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime2 ${starttime} monitor_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003_1.bat
... ELSE set variable curl -kv \ https://www.banbaowang.com/shouchaobao/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime3 ${starttime} monitor_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003_2.bat
... ELSE set variable curl -kv \ https://www.qidian.com/rank
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime4 ${starttime} monitor_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003_3.bat
... ELSE set variable curl -kv \ https://www.rolandberger.com/ru/?country=RU
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime5 ${starttime} monitor_endtime5 ${endtime}
Proxy-Policy-monitor-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.usdebtclock.org/state-debt-clocks/state-of-california-debt-clock.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List qwertyuiop Tango Secure Gateway CA
... ELSE Create List qwertyuiop Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime6 ${starttime} monitor_endtime6 ${endtime}
Proxy-Policy-monitor-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://americantesol.com/tesol-register.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List онлайн фильмы Tango Secure Gateway CA
... ELSE Create List онлайн фильмы Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime7 ${starttime} monitor_endtime7 ${endtime}
Proxy-Policy-monitor-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.playgroundsessions.com/about/software-features
${stringlist} run keyword if '${systemType}'=='Windows' Create List 明天大涨 Tango Secure Gateway CA
... ELSE Create List 明天大涨 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime8 ${starttime} monitor_endtime8 ${endtime}
Proxy-Policy-monitor-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://peoplestalkradio.com/forums/register.php
${stringlist} run keyword if '${systemType}'=='Windows' Create List 今天中奖 Tango Secure Gateway CA
... ELSE Create List 今天中奖 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime9 ${starttime} monitor_endtime9 ${endtime}
Proxy-Policy-monitor-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00008.bat
... ELSE set variable curl http://www.6renyou.com/user_comment/index
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime10 ${starttime} monitor_endtime10 ${endtime}
Proxy-Policy-monitor-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00009.bat
... ELSE set variable curl http://www.ljale.com/home/webdir.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime11 ${starttime} monitor_endtime11 ${endtime}
Proxy-Policy-monitor-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00010.bat
... ELSE set variable curl http://www.duckduckmoose.com/learn/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime12 ${starttime} monitor_endtime12 ${endtime}
Proxy-Policy-monitor-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00011.bat
... ELSE set variable curl http://tutcandy.com/2009/04/ai-sketch-to-vector-tutorial
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime13 ${starttime} monitor_endtime13 ${endtime}
Proxy-Policy-monitor-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00012.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.youqulu.com/category/zixun
${stringlist} run keyword if '${systemType}'=='Windows' Create List 123456789 Tango Secure Gateway CA
... ELSE Create List 123456789 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime14 ${starttime} monitor_endtime14 ${endtime}
Proxy-Policy-monitor-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013.bat
... ELSE set variable curl -kv \ https://www.nypl.org/books-music-movies
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime15 ${starttime} monitor_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013_1.bat
... ELSE set variable curl -kv https://www.thailand.com.co/category-207-b0.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime16 ${starttime} monitor_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013_2.bat
... ELSE set variable curl -kv \ https://bj.zu.ke.com/zufang
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime17 ${starttime} monitor_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00013_3.bat
... ELSE set variable curl -kv \ https://nationalbank.kz/?switch=kazakh
${stringlist} run keyword if '${systemType}'=='Windows' Create List 一直相信 Tango Secure Gateway CA
... ELSE Create List 一直相信 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime18 ${starttime} monitor_endtime18 ${endtime}
Proxy-Policy-monitor-00014
[Tags] 请求体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00014.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=1234567&setCookie=12345678&contentType=content-type&resBody=Response Body" http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime19 ${starttime} monitor_endtime19 ${endtime}
Proxy-Policy-monitor-00015
[Tags] 应答体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00015.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=lkjh&setCookie=12345678&contentType=content-type&resBody=ASDFG" http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime20 ${starttime} monitor_endtime20 ${endtime}
Proxy-Policy-monitor-00016
[Tags] 最大组合1
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00016.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=mnbv&setCookie=asdf&contentType=content-type&resBody=adzx" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List 涨涨涨涨
... ELSE Create List 涨涨涨涨
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime21 ${starttime} monitor_endtime21 ${endtime}
Proxy-Policy-monitor-00017
[Tags] 最大组合2
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00017.bat
... ELSE set variable curl -kv --cookie "test%20cookie=null; timezoneoffset=-480; ASP.NET_SessionId=sta2b3gxpxzqei3by1ka3qsa; visid_incap_1010467=Iu/pLzeoTnGn2VDjWdP9GpoBGF8AAAAAQUIPAAAAAADzSLZtZ1tZ/Rbjfct3Nq69" --referer 'https://www.baidu.com/' \ https://www.umusicpub.com/au/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset Tango Secure Gateway CA
... ELSE Create List Connection reset by peer Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_starttime22 ${starttime} monitor_endtime22 ${endtime}

View File

@@ -8,291 +8,165 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
Proxy-Policy-redirect-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00001.bat
... ELSE set variable curl -kv https://www.abercrombiekent.com/travel-destinations
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://quote.com/home-insurance/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime ${starttime} redirect_endtime ${endtime}
Proxy-Policy-redirect-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00002.bat
... ELSE set variable curl -kv https://www.summitpost.org/mountain/rock/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://www.vystarcu.org/Products-Services/Lending-Loan-Protection/Auto-Recreational-Loans
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime1 ${starttime} redirect_endtime1 ${endtime}
Proxy-Policy-redirect-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00003.bat
... ELSE set variable curl -kv https://gobackpacking.com/planning/accommodations/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://secure.uwcu.org/Branch-ATM-Locations/Home/Search
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime2 ${starttime} redirect_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00003_1.bat
... ELSE set variable curl -kv https://www.visitguam.com/travel-trade/itineraries/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://www.cit.com/cit-bank/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime3 ${starttime} redirect_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00003_2.bat
... ELSE set variable curl -kv https://skift.com/news/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://www.alaskausa.org/investment/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime4 ${starttime} redirect_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00003_3.bat
... ELSE set variable curl -kv https://eviivo.com/products/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://www.tradingtechnologies.com/infrastructure/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime5 ${starttime} redirect_endtime5 ${endtime}
Proxy-Policy-redirect-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.dealbase.com/#flights-search
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.merrilledge.com/investing/online-trading
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime6 ${starttime} redirect_endtime6 ${endtime}
Proxy-Policy-redirect-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://www.portofstockton.com/docs-pdfs/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://www.marketscreener.com/stock-analyses/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime7 ${starttime} redirect_endtime7 ${endtime}
Proxy-Policy-redirect-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.marriottvacationclub.com/timeshare-ownership/about/
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.uwcu.org/about-us/become-a-member/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://yhd.com Tango Secure Gateway CA
... ELSE Create List https://yhd.com Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime8 ${starttime} redirect_endtime8 ${endtime}
Proxy-Policy-redirect-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.bulgarihotels.com/zh_CN/
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.ufcu.org/personal/insurance/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://yhd.com Tango Secure Gateway CA
... ELSE Create List https://yhd.com Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime9 ${starttime} redirect_endtime9 ${endtime}
Proxy-Policy-redirect-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00008.bat
... ELSE set variable curl -kv http://www.essence.com.cn/business/fixed
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://yhd.com
... ELSE Create List https://yhd.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime10 ${starttime} redirect_endtime10 ${endtime}
Proxy-Policy-redirect-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00009.bat
... ELSE set variable curl -kv http://www.west95582.com/jdw/index.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://yhd.com
... ELSE Create List https://yhd.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime11 ${starttime} redirect_endtime11 ${endtime}
Proxy-Policy-redirect-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00010.bat
... ELSE set variable curl -kv http://www.dyhjw.com/quotes/choicelists
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/
... ELSE Create List http://www.iceo.com.cn/renwu2013/
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime12 ${starttime} redirect_endtime12 ${endtime}
Proxy-Policy-redirect-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00011.bat
... ELSE set variable curl -kv http://www.cs.ecitic.com/newsite/business/bank/tzyh_ywjs/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/
... ELSE Create List http://www.iceo.com.cn/renwu2013/
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime13 ${starttime} redirect_endtime13 ${endtime}
Proxy-Policy-redirect-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00012.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.polb.com/environment/shore-power#shore-power-program-details
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.investors-trust.com/products/product-type/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime14 ${starttime} redirect_endtime14 ${endtime}
Proxy-Policy-redirect-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00013.bat
... ELSE set variable curl -kv https://www.travelmath.com/drive-distance/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime15 ${starttime} redirect_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00013_1.bat
... ELSE set variable curl -kv https://www.egencia.com/public/us/
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://www.monticello.org/visit/tickets-tours/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime16 ${starttime} redirect_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00013_2.bat
... ELSE set variable curl -kv https://expediapartnersolutions.com/about/our-supply
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime17 ${starttime} redirect_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00013_3.bat
... ELSE set variable curl -kv https://www.concur.com/en-us/concur-hipmunk-faq
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
... ELSE set variable curl -kv https://www.tripadvisor.com/Attractions-g60763-Activities-New_York_City_New_York.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime18 ${starttime} redirect_endtime18 ${endtime}
Proxy-Policy-redirect-00014
[Tags] 请求体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00017.bat
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00014.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=lksdf&setCookie=kjhsxbn&contentType=content-type&resBody=opijn" -kv \ http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/
... ELSE Create List http://www.iceo.com.cn/renwu2013/
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime19 ${starttime} redirect_endtime19 ${endtime}
Proxy-Policy-redirect-00015
[Tags] 最大组合1
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00017.bat
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00015.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=tyuiop&setCookie=asdf&contentType=content-type&resBody=adzx" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/
... ELSE Create List http://www.iceo.com.cn/renwu2013/
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime20 ${starttime} redirect_endtime20 ${endtime}
Proxy-Policy-redirect-00016
[Tags] 最大组合2
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00017.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.uptake.com/industry-solutions/energy
${stringlist} run keyword if '${systemType}'=='Windows' Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
... ELSE Create List https://deseretbook.com/t/ebooks/biography-autobiography Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00016.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.equifax.com/personal/
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
... ELSE Create List http://www.iceo.com.cn/renwu2013/ Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 redirect_starttime21 ${starttime} redirect_endtime21 ${endtime}

View File

@@ -8,263 +8,149 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
Proxy-Policy-replace-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00001.bat
... ELSE set variable curl -kv https://destidotcom.wordpress.com/contact/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 明天你好 Tango Secure Gateway CA
... ELSE Create List 明天你好 Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime ${starttime} replace_endtime ${endtime}
Proxy-Policy-replace-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00002.bat
... ELSE set variable curl -kv https://www.trip.com/trains/china/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Search Cars Tango Secure Gateway CA
... ELSE Create List Search Cars Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime1 ${starttime} replace_endtime1 ${endtime}
Proxy-Policy-replace-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003.bat
... ELSE set variable curl -kv https://www.smartertravel.com/privacy-policy/
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime2 ${starttime} replace_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_1.bat
... ELSE set variable curl -kv https://www.chinese.hostelworld.com/minsu
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime3 ${starttime} replace_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_2.bat
... ELSE set variable curl -kv https://www.truelinkfinancial.com/card/guardian-fiduciary/
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime4 ${starttime} replace_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_3.bat
... ELSE set variable curl -kv https://business.nycgo.com/press-and-media/
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime5 ${starttime} replace_endtime5 ${endtime}
Proxy-Policy-replace-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.ino.com/news/headlines/
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime6 ${starttime} replace_endtime6 ${endtime}
Proxy-Policy-replace-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://www.bestwestern.com/en_US.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime7 ${starttime} replace_endtime7 ${endtime}
Proxy-Policy-replace-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00006.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.quickenloans.com/mortgage-education/home-buyers-guide?qlsource=nav
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime8 ${starttime} replace_endtime8 ${endtime}
Proxy-Policy-replace-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00007.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.gobank.com/mobile-banking/mobile-app
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime9 ${starttime} replace_endtime9 ${endtime}
Proxy-Policy-replace-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00008.bat
... ELSE set variable curl -kv http://www.ghzq.com.cn/ghzq/index.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json
... ELSE Create List text/json
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime10 ${starttime} replace_endtime10 ${endtime}
Proxy-Policy-replace-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00009.bat
... ELSE set variable curl -kv http://www.zts.com.cn/consult/consult.aspx
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json
... ELSE Create List text/json
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime11 ${starttime} replace_endtime11 ${endtime}
Proxy-Policy-replace-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00010.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=hello&setCookie=hjbnm&contentType=text/html&resBody=05691" -kv \ http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List 111111
... ELSE Create List 111111
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime12 ${starttime} replace_endtime12 ${endtime}
Proxy-Policy-replace-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00011.bat
... ELSE set variable curl -kv http://www.shfe.com.cn/products/au/
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json
... ELSE Create List text/json
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime13 ${starttime} replace_endtime13 ${endtime}
Proxy-Policy-replace-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00012.bat
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.national-park.com/welcome-to-canyonlands-national-park/
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime14 ${starttime} replace_endtime14 ${endtime}
Proxy-Policy-replace-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013.bat
... ELSE set variable curl -kv https://www.expedia.co.uk/?pwaLob=wizard-hotel-pwa-v2
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime15 ${starttime} replace_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013_1.bat
... ELSE set variable curl -kv https://welcome.expediagroup.com/en?joinexpedia
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime16 ${starttime} replace_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013_2.bat
... ELSE set variable curl -kv https://www.expediacruises.com/en-US/corporate
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime17 ${starttime} replace_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00013_3.bat
... ELSE set variable curl -kv https://www.classicvacations.com/collections/all-inclusive
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime18 ${starttime} replace_endtime18 ${endtime}
Proxy-Policy-replace-00014
[Tags] 最大组合2
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00014.bat
... ELSE set variable curl -kv \ --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" \ --cookie "__cfduid=d5c21129d57e7124b729fd86dc82abdcd1596020306; __stripe_sid=2940d4d5-6822-4daf-8b38-9cd18d745beb; __stripe_mid=dd118cd8-845c-4b6e-98ce-81e8d5bdd52c" --referer 'https://www.baidu.com/' \ https://www.hotelplanner.com/Group-Rate/
${stringlist} run keyword if '${systemType}'=='Windows' Create List text/json Tango Secure Gateway CA
... ELSE Create List text/json Tango Secure Gateway CA
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 replace_starttime19 ${starttime} replace_endtime19 ${endtime}

View File

@@ -0,0 +1,13 @@
*** Settings ***
Force Tags tsg_adc_wp starttime
Library OperatingSystem
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
starttime
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
insert_time_to_file1 starttime ${starttime}

View File

@@ -0,0 +1,13 @@
*** Settings ***
Force Tags tsg_adc_wp endtime
Library OperatingSystem
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
*** Test Cases ***
endtime
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 endtime ${endtime}

View File

@@ -21,7 +21,7 @@ SecurityPolicy-Allow-Http-00001
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId}]}
${s} Convert to String ${allow_http_policyId}
GetLogList security_event_log ${allow_http_starttime} ${allow_http_endtime} ${testClentIP} ${s} http_host clintonairport.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host clintonairport.com
SecurityPolicy-Allow-Http-00002
[Tags] cat
@@ -30,4 +30,4 @@ SecurityPolicy-Allow-Http-00002
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId1}]}
${s} Convert to String ${allow_http_policyId1}
GetLogList security_event_log ${allow_http_starttime1} ${allow_http_endtime1} ${testClentIP} ${s} http_host www.airpano.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.airpano.com

View File

@@ -15,19 +15,17 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Allow-Ssl-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${allow_ssl_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_ssl_policyId}]}
${s} Convert to String ${allow_ssl_policyId}
GetLogList security_event_log ${allow_ssl_starttime} ${allow_ssl_endtime} ${testClentIP} ${s} ssl_sni homebank.kz
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni homebank.kz
SecurityPolicy-Allow-Ssl-00002
[Tags] cat
#删除对象
${objectids} set Variable ${allow_ssl_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_ssl_policyId1}]}
${s} Convert to String ${allow_ssl_policyId1}
GetLogList security_event_log ${allow_ssl_starttime1} ${allow_ssl_endtime1} ${testClentIP} ${s} ssl_sni youtube.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni youtube.com

View File

@@ -15,7 +15,6 @@ ${objectids} ${EMPTY}
*** Test Cases ***
Proxy-Policy-allow-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${allow_objectId}
#删除策略
@@ -23,10 +22,9 @@ Proxy-Policy-allow-00001
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId}
GetLogList proxy_event_log ${allow_starttime} ${allow_endtime} ${testClentIP} ${s} http_host mp.pipix.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host mp.pipix.com
Proxy-Policy-allow-00002
[Tags] cat
#删除对象
${objectids} set Variable ${allow_objectId1}
#删除策略
@@ -34,10 +32,9 @@ Proxy-Policy-allow-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId1}
GetLogList proxy_event_log ${allow_starttime1} ${allow_endtime1} ${testClentIP} ${s} http_host feishu.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host feishu.cn
Proxy-Policy-allow-00003
[Tags] url
#删除对象
${objectids} set Variable ${allow_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId3}
@@ -46,13 +43,12 @@ Proxy-Policy-allow-00003
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId2}
GetLogList proxy_event_log ${allow_starttime2} ${allow_endtime2} ${testClentIP} ${s} http_host smzdm.com
GetLogList proxy_event_log ${allow_starttime3} ${allow_endtime3} ${testClentIP} ${s} http_host bilibili.com
GetLogList proxy_event_log ${allow_starttime4} ${allow_endtime4} ${testClentIP} ${s} http_host cheapair.com
GetLogList proxy_event_log ${allow_starttime5} ${allow_endtime5} ${testClentIP} ${s} http_host surfline.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host smzdm.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bilibili.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cheapair.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host surfline.com
Proxy-Policy-allow-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${allow_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId5}
@@ -62,10 +58,9 @@ Proxy-Policy-allow-00004
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId3}
GetLogList proxy_event_log ${allow_starttime6} ${allow_endtime6} ${testClentIP} ${s} http_host expeditionportal.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host expeditionportal.com
Proxy-Policy-allow-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${allow_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId8}
@@ -75,10 +70,9 @@ Proxy-Policy-allow-00005
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId4}
GetLogList proxy_event_log ${allow_starttime7} ${allow_endtime7} ${testClentIP} ${s} http_host boutiquehotel.me
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host boutiquehotel.me
Proxy-Policy-allow-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${allow_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId11}
@@ -88,10 +82,9 @@ Proxy-Policy-allow-00006
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId5}
GetLogList proxy_event_log ${allow_starttime8} ${allow_endtime8} ${testClentIP} ${s} http_host www.choicehotels.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.choicehotels.com
Proxy-Policy-allow-00007
[Tags] 请求头
#删除对象
${objectids} set Variable ${allow_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId14}
@@ -101,10 +94,9 @@ Proxy-Policy-allow-00007
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId6}
GetLogList proxy_event_log ${allow_starttime9} ${allow_endtime9} ${testClentIP} ${s} http_host www.clubmed.us
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.clubmed.us
Proxy-Policy-allow-00008
[Tags] 应答头
#删除对象
${objectids} set Variable ${allow_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId17}
@@ -114,10 +106,9 @@ Proxy-Policy-allow-00008
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId7}
GetLogList proxy_event_log ${allow_starttime10} ${allow_endtime10} ${testClentIP} ${s} http_host sse.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host sse.com.cn
Proxy-Policy-allow-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${allow_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId20}
@@ -127,10 +118,9 @@ Proxy-Policy-allow-00009
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId8}
GetLogList proxy_event_log ${allow_starttime11} ${allow_endtime11} ${testClentIP} ${s} http_host szse.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host szse.cn
Proxy-Policy-allow-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${allow_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId23}
@@ -140,10 +130,9 @@ Proxy-Policy-allow-00010
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId9}
GetLogList proxy_event_log ${allow_starttime12} ${allow_endtime12} ${testClentIP} ${s} http_host gf.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host gf.com.cn
Proxy-Policy-allow-00011
[Tags] 应答头
#删除对象
${objectids} set Variable ${allow_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId26}
@@ -153,10 +142,9 @@ Proxy-Policy-allow-00011
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId10}
GetLogList proxy_event_log ${allow_starttime13} ${allow_endtime13} ${testClentIP} ${s} http_host chinastock.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host chinastock.com.cn
Proxy-Policy-allow-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${allow_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId29}
@@ -166,10 +154,9 @@ Proxy-Policy-allow-00012
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId11}
GetLogList proxy_event_log ${allow_starttime14} ${allow_endtime14} ${testClentIP} ${s} http_host www.virtuoso.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.virtuoso.com
Proxy-Policy-allow-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${allow_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId32}
@@ -178,13 +165,12 @@ Proxy-Policy-allow-00013
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId12}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId12}
GetLogList proxy_event_log ${allow_starttime15} ${allow_endtime15} ${testClentIP} ${s} http_host russia.payu.com
GetLogList proxy_event_log ${allow_starttime16} ${allow_endtime16} ${testClentIP} ${s} http_host tytbz.925mm.com
GetLogList proxy_event_log ${allow_starttime17} ${allow_endtime17} ${testClentIP} ${s} http_host dujia.qunar.com
GetLogList proxy_event_log ${allow_starttime18} ${allow_endtime18} ${testClentIP} ${s} http_host www.vitalsource.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host russia.payu.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tytbz.925mm.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host dujia.qunar.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.vitalsource.com
Proxy-Policy-allow-00014
[Tags] 最大组合
#删除对象
${objectids} set Variable ${allow_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId34}
@@ -197,4 +183,4 @@ Proxy-Policy-allow-00014
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId13}
GetLogList proxy_event_log ${allow_starttime19} ${allow_endtime19} ${testClentIP} ${s} http_host www.orbitz.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.orbitz.com

View File

@@ -15,39 +15,35 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Deny-Dns-00001
[Tags] sni
#删除对象
${objectids} set Variable ${deny_dns_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId}]}
${s} Convert to String ${deny_dns_policyId}
GetLogList security_event_log ${deny_dns_starttime} ${deny_dns_endtime} ${testClentIP} ${s} dns_qname facebook.com
GetLogList security_event_log ${deny_dns_starttime1} ${deny_dns_endtime1} ${testClentIP} ${s} dns_qname rutube.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname facebook.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname rutube.ru
SecurityPolicy-Deny-Dns-00002
[Tags] cn
#删除对象
${objectids} set Variable ${deny_dns_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId1}]}
${s} Convert to String ${deny_dns_policyId1}
GetLogList security_event_log ${deny_dns_starttime2} ${deny_dns_endtime2} ${testClentIP} ${s} dns_qname yhd.com
GetLogList security_event_log ${deny_dns_starttime3} ${deny_dns_endtime3} ${testClentIP} ${s} dns_qname vk.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname yhd.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname vk.com
SecurityPolicy-Deny-Dns-00003
[Tags] san
#删除对象
${objectids} set Variable ${deny_dns_objectId2}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId2}]}
${s} Convert to String ${deny_dns_policyId2}
GetLogList security_event_log ${deny_dns_starttime4} ${deny_dns_endtime4} ${testClentIP} ${s} dns_qname ya.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname ya.ru
SecurityPolicy-Deny-Dns-00004
[Tags] 最大组合
#删除对象
${objectids} set Variable ${deny_dns_objectId3}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId3}]}
${s} Convert to String ${deny_dns_policyId3}
GetLogList security_event_log ${deny_dns_starttime6} ${deny_dns_endtime6} ${testClentIP} ${s} dns_qname www.twitch.tv
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname www.twitch.tv

View File

@@ -15,7 +15,6 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Deny-ftp-00001
[Tags] 字串匹配
#删除对象
${objectids} set Variable ${deny_ftp_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId1}
@@ -23,10 +22,9 @@ SecurityPolicy-Deny-ftp-00001
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId}]}
${s} Convert to String ${deny_ftp_policyId}
GetLogList security_event_log ${deny_ftp_starttime} ${deny_ftp_endtime} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user
SecurityPolicy-Deny-ftp-00002
[Tags] 右匹配
#删除对象
${objectids} set Variable ${deny_ftp_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId4}
@@ -34,10 +32,9 @@ SecurityPolicy-Deny-ftp-00002
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId1}]}
${s} Convert to String ${deny_ftp_policyId1}
GetLogList security_event_log ${deny_ftp_starttime1} ${deny_ftp_endtime1} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user
SecurityPolicy-Deny-ftp-00003
[Tags] 完整匹配
#删除对象
${objectids} set Variable ${deny_ftp_objectId6}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId7}
@@ -45,10 +42,9 @@ SecurityPolicy-Deny-ftp-00003
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId2}]}
${s} Convert to String ${deny_ftp_policyId2}
GetLogList security_event_log ${deny_ftp_starttime2} ${deny_ftp_endtime2} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user
SecurityPolicy-Deny-ftp-00004
[Tags] 左匹配
#删除对象
${objectids} set Variable ${deny_ftp_objectId9}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_ftp_objectId10}
@@ -56,4 +52,4 @@ SecurityPolicy-Deny-ftp-00004
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ftp_policyId3}]}
${s} Convert to String ${deny_ftp_policyId3}
GetLogList security_event_log ${deny_ftp_starttime3} ${deny_ftp_endtime3} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user

View File

@@ -17,25 +17,22 @@ ${profiledId} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Deny-Http-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${deny_http_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId}]}
${s} Convert to String ${deny_http_policyId}
GetLogList security_event_log ${deny_http_starttime} ${deny_http_endtime} ${testClentIP} ${s} http_host webalta.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host webalta.ru
SecurityPolicy-Deny-Http-00002
[Tags] cat
#删除对象
${objectids} set Variable ${deny_http_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId1}]}
${s} Convert to String ${deny_http_policyId1}
GetLogList security_event_log ${deny_http_starttime1} ${deny_http_endtime1} ${testClentIP} ${s} http_host nymbler.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nymbler.com
SecurityPolicy-Deny-Http-00003
[Tags] url
#删除文件
${profiledId} set Variable ${deny_http_profiledId}
#删除对象
@@ -43,43 +40,39 @@ SecurityPolicy-Deny-Http-00003
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId2}]}
${s} Convert to String ${deny_http_policyId2}
GetLogList security_event_log ${deny_http_starttime2} ${deny_http_endtime2} ${testClentIP} ${s} http_host www.icbc.com.cn
GetLogList security_event_log ${deny_http_starttime3} ${deny_http_endtime3} ${testClentIP} ${s} http_host ccb.com
GetLogList security_event_log ${deny_http_starttime4} ${deny_http_endtime4} ${testClentIP} ${s} http_host gotohoroscope.com
GetLogList security_event_log ${deny_http_starttime5} ${deny_http_endtime5} ${testClentIP} ${s} http_host government.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.icbc.com.cn
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host ccb.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host gotohoroscope.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host government.ru
SecurityPolicy-Deny-Http-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${deny_http_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId4}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId3}]}
${s} Convert to String ${deny_http_policyId3}
GetLogList security_event_log ${deny_http_starttime6} ${deny_http_endtime6} ${testClentIP} ${s} http_host tsutmb.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tsutmb.ru
SecurityPolicy-Deny-Http-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${deny_http_objectId5}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId6}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId4}]}
${s} Convert to String ${deny_http_policyId4}
GetLogList security_event_log ${deny_http_starttime7} ${deny_http_endtime7} ${testClentIP} ${s} http_host abchina.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host abchina.com
SecurityPolicy-Deny-Http-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${deny_http_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId8}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId5}]}
${s} Convert to String ${deny_http_policyId5}
GetLogList security_event_log ${deny_http_starttime8} ${deny_http_endtime8} ${testClentIP} ${s} http_host egypt.travel
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host egypt.travel
SecurityPolicy-Deny-Http-00007
[Tags] 请求头
#删除文件
${profiledId} set Variable ${deny_http_profiledId1}
#删除对象
@@ -88,89 +81,80 @@ SecurityPolicy-Deny-Http-00007
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId6}]}
${s} Convert to String ${deny_http_policyId6}
GetLogList security_event_log ${deny_http_starttime9} ${deny_http_endtime9} ${testClentIP} ${s} http_host destination360.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host destination360.com
SecurityPolicy-Deny-Http-00008
[Tags] 应答头
#删除对象
${objectids} set Variable ${deny_http_objectId11}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId12}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId7}]}
${s} Convert to String ${deny_http_policyId7}
GetLogList security_event_log ${deny_http_starttime10} ${deny_http_endtime10} ${testClentIP} ${s} http_host cmbchina.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cmbchina.com
SecurityPolicy-Deny-Http-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${deny_http_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId14}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId8}]}
${s} Convert to String ${deny_http_policyId8}
GetLogList security_event_log ${deny_http_starttime11} ${deny_http_endtime11} ${testClentIP} ${s} http_host www.skycn.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.skycn.com
SecurityPolicy-Deny-Http-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${deny_http_objectId15}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId16}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId9}]}
${s} Convert to String ${deny_http_policyId9}
GetLogList security_event_log ${deny_http_starttime12} ${deny_http_endtime12} ${testClentIP} ${s} http_host www.avaxsearch.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.avaxsearch.com
SecurityPolicy-Deny-Http-00011
[Tags] 应答头
#删除对象
${objectids} set Variable ${deny_http_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId18}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId10}]}
${s} Convert to String ${deny_http_policyId10}
GetLogList security_event_log ${deny_http_starttime13} ${deny_http_endtime13} ${testClentIP} ${s} http_host www.finestquotes.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.finestquotes.com
SecurityPolicy-Deny-Http-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${deny_http_objectId19}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId11}]}
${s} Convert to String ${deny_http_policyId11}
GetLogList security_event_log ${deny_http_starttime14} ${deny_http_endtime14} ${testClentIP} ${s} http_host www.universalmusic.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.universalmusic.ru
SecurityPolicy-Deny-Http-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${deny_http_objectId20}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId12}]}
${s} Convert to String ${deny_http_policyId12}
GetLogList security_event_log ${deny_http_starttime15} ${deny_http_endtime15} ${testClentIP} ${s} http_host ziroom.com
GetLogList security_event_log ${deny_http_starttime16} ${deny_http_endtime16} ${testClentIP} ${s} http_host xiaozhu.com
GetLogList security_event_log ${deny_http_starttime17} ${deny_http_endtime17} ${testClentIP} ${s} http_host sinovision.net
GetLogList security_event_log ${deny_http_starttime18} ${deny_http_endtime18} ${testClentIP} ${s} http_host nlr.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host ziroom.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host xiaozhu.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host sinovision.net
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nlr.ru
SecurityPolicy-Deny-Http-00014
[Tags] 请求体
#删除对象
${objectids} set Variable ${deny_http_objectId21}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId13}]}
${s} Convert to String ${deny_http_policyId13}
GetLogList security_event_log ${deny_http_starttime19} ${deny_http_endtime19} ${testClentIP} ${s} http_host open.node.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
SecurityPolicy-Deny-Http-00015
[Tags] 应答体
#删除对象
${objectids} set Variable ${deny_http_objectId22}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId14}]}
${s} Convert to String ${deny_http_policyId14}
GetLogList security_event_log ${deny_http_starttime20} ${deny_http_endtime20} ${testClentIP} ${s} http_host huatonggs.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host huatonggs.com
SecurityPolicy-Deny-Http-00016
[Tags] 最大组合1
#删除对象
${objectids} set Variable ${deny_http_objectId23}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId24}
@@ -180,10 +164,9 @@ SecurityPolicy-Deny-Http-00016
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId15}]}
${s} Convert to String ${deny_http_policyId15}
GetLogList security_event_log ${deny_http_starttime21} ${deny_http_endtime21} ${testClentIP} ${s} http_host open.node.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
SecurityPolicy-Deny-Http-00017
[Tags] 最大组合2
#删除对象
${objectids} set Variable ${deny_http_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId29}
@@ -193,14 +176,13 @@ SecurityPolicy-Deny-Http-00017
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId16}]}
${s} Convert to String ${deny_http_policyId16}
GetLogList security_event_log ${deny_http_starttime22} ${deny_http_endtime22} ${testClentIP} ${s} http_host smspunch.net
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host smspunch.net
SecurityPolicy-Deny-Http-00018
[Tags] 多ip对象
#删除对象
${objectids} set Variable ${deny_http_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId34}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId17}]}
${s} Convert to String ${deny_http_policyId17}
GetLogList security_event_log ${deny_http_starttime23} ${deny_http_endtime23} ${testClentIP} ${s} http_host www.hebbank.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.hebbank.com

View File

@@ -15,145 +15,130 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Deny-Mail-00001
[Tags] content
#删除对象
${objectids} set Variable ${deny_mail_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId}]}
${s} Convert to String ${deny_mail_policyId}
GetLogList security_event_log ${deny_mail_starttime} ${deny_mail_endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00002
[Tags] att_cont
#删除对象
${objectids} set Variable ${deny_mail_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId1}]}
${s} Convert to String ${deny_mail_policyId1}
GetLogList security_event_log ${deny_mail_starttime1} ${deny_mail_endtime1} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00003
[Tags] subject from
#删除对象
${objectids} set Variable ${deny_mail_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId3}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId2}]}
${s} Convert to String ${deny_mail_policyId2}
GetLogList security_event_log ${deny_mail_starttime2} ${deny_mail_endtime2} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00004
[Tags] subject from
#删除对象
${objectids} set Variable ${deny_mail_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId5}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId3}]}
${s} Convert to String ${deny_mail_policyId3}
GetLogList security_event_log ${deny_mail_starttime3} ${deny_mail_endtime3} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00005
[Tags] subject from
#删除对象
${objectids} set Variable ${deny_mail_objectId6}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId7}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId4}]}
${s} Convert to String ${deny_mail_policyId4}
GetLogList security_event_log ${deny_mail_starttime4} ${deny_mail_endtime4} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00006
[Tags] subject from
#删除对象
${objectids} set Variable ${deny_mail_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId9}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId5}]}
${s} Convert to String ${deny_mail_policyId5}
GetLogList security_event_log ${deny_mail_starttime5} ${deny_mail_endtime5} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00007
[Tags] subject to
#删除对象
${objectids} set Variable ${deny_mail_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId11}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId6}]}
${s} Convert to String ${deny_mail_policyId6}
GetLogList security_event_log ${deny_mail_starttime6} ${deny_mail_endtime6} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00008
[Tags] subject to
#删除对象
${objectids} set Variable ${deny_mail_objectId12}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId13}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId7}]}
${s} Convert to String ${deny_mail_policyId7}
GetLogList security_event_log ${deny_mail_starttime7} ${deny_mail_endtime7} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00009
[Tags] subject to
#删除对象
${objectids} set Variable ${deny_mail_objectId14}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId15}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId8}]}
${s} Convert to String ${deny_mail_policyId8}
GetLogList security_event_log ${deny_mail_starttime8} ${deny_mail_endtime8} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00010
[Tags] subject to
#删除对象
${objectids} set Variable ${deny_mail_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId17}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId9}]}
${s} Convert to String ${deny_mail_policyId9}
GetLogList security_event_log ${deny_mail_starttime9} ${deny_mail_endtime9} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00011
[Tags] account subject
#删除对象
${objectids} set Variable ${deny_mail_objectId18}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId19}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId10}]}
${s} Convert to String ${deny_mail_policyId10}
GetLogList security_event_log ${deny_mail_starttime10} ${deny_mail_endtime10} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00012
[Tags] account subject
#删除对象
${objectids} set Variable ${deny_mail_objectId20}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId21}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId11}]}
${s} Convert to String ${deny_mail_policyId11}
GetLogList security_event_log ${deny_mail_starttime11} ${deny_mail_endtime11} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00013
[Tags] account subject
#删除对象
${objectids} set Variable ${deny_mail_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId23}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId12}]}
${s} Convert to String ${deny_mail_policyId12}
GetLogList security_event_log ${deny_mail_starttime12} ${deny_mail_endtime12} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00014
[Tags] account subject
#删除对象
${objectids} set Variable ${deny_mail_objectId24}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId25}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId13}]}
${s} Convert to String ${deny_mail_policyId13}
GetLogList security_event_log ${deny_mail_starttime13} ${deny_mail_endtime13} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Deny-Mail-00015
[Tags] 最大组合
#删除对象
${objectids} set Variable ${deny_mail_objectId26}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_mail_objectId27}
@@ -164,4 +149,4 @@ SecurityPolicy-Deny-Mail-00015
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_mail_policyId14}]}
${s} Convert to String ${deny_mail_policyId14}
GetLogList security_event_log ${deny_mail_starttime14} ${deny_mail_endtime14} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com

View File

@@ -15,40 +15,36 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Deny-Ssl-00001
[Tags] sni
#删除对象
${objectids} set Variable ${deny_ssl_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId}]}
${s} Convert to String ${deny_ssl_policyId}
GetLogList security_event_log ${deny_ssl_starttime} ${deny_ssl_endtime} ${testClentIP} ${s} ssl_sni freestockimages.ru
GetLogList security_event_log ${deny_ssl_starttime1} ${deny_ssl_endtime1} ${testClentIP} ${s} ssl_sni cxwl.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni freestockimages.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni cxwl.com
SecurityPolicy-Deny-Ssl-00002
[Tags] cn
#删除对象
${objectids} set Variable ${deny_ssl_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId1}]}
${s} Convert to String ${deny_ssl_policyId1}
GetLogList security_event_log ${deny_ssl_starttime2} ${deny_ssl_endtime2} ${testClentIP} ${s} ssl_sni berkeleygroup.co.uk
GetLogList security_event_log ${deny_ssl_starttime3} ${deny_ssl_endtime3} ${testClentIP} ${s} ssl_sni vip.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni berkeleygroup.co.uk
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni vip.com
SecurityPolicy-Deny-Ssl-00003
[Tags] san
#删除对象
${objectids} set Variable ${deny_ssl_objectId2}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId2}]}
${s} Convert to String ${deny_ssl_policyId2}
GetLogList security_event_log ${deny_ssl_starttime4} ${deny_ssl_endtime4} ${testClentIP} ${s} ssl_sni nastol.com.ua
GetLogList security_event_log ${deny_ssl_starttime5} ${deny_ssl_endtime5} ${testClentIP} ${s} ssl_sni pulitzer.org
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni nastol.com.ua
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni pulitzer.org
SecurityPolicy-Deny-Ssl-00004
[Tags] 最大组合
#删除对象
${objectids} set Variable ${deny_ssl_objectId3}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_ssl_policyId3}]}
${s} Convert to String ${deny_ssl_policyId3}
GetLogList security_event_log ${deny_ssl_starttime6} ${deny_ssl_endtime6} ${testClentIP} ${s} ssl_sni www.prlib.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.prlib.ru

View File

@@ -17,7 +17,6 @@ ${profiledId} ${EMPTY}
*** Test Cases ***
Proxy-Policy-deny-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${deny_objectId}
#删除策略
@@ -25,10 +24,9 @@ Proxy-Policy-deny-00001
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId}
GetLogList proxy_event_log ${deny_starttime} ${deny_endtime} ${testClentIP} ${s} http_host newsela.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host newsela.com
Proxy-Policy-deny-00002
[Tags] cat
#删除文件
${profiledId} set Variable ${deny_profileId}
#删除对象
@@ -38,10 +36,9 @@ Proxy-Policy-deny-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId1}
GetLogList proxy_event_log ${deny_starttime1} ${deny_endtime1} ${testClentIP} ${s} http_host villaday.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host villaday.com
Proxy-Policy-deny-00003
[Tags] url
#删除文件
${profiledId} set Variable ${deny_profileId1}
#删除对象
@@ -52,13 +49,12 @@ Proxy-Policy-deny-00003
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId2}
GetLogList proxy_event_log ${deny_starttime2} ${deny_endtime2} ${testClentIP} ${s} http_host www.wmtransfer.com
GetLogList proxy_event_log ${deny_starttime3} ${deny_endtime3} ${testClentIP} ${s} http_host www.banbaowang.com
GetLogList proxy_event_log ${deny_starttime4} ${deny_endtime4} ${testClentIP} ${s} http_host www.qidian.com
GetLogList proxy_event_log ${deny_starttime5} ${deny_endtime5} ${testClentIP} ${s} http_host www.rolandberger.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.wmtransfer.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.banbaowang.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.qidian.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.rolandberger.com
Proxy-Policy-deny-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${deny_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId5}
@@ -68,10 +64,9 @@ Proxy-Policy-deny-00004
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId3}
GetLogList proxy_event_log ${deny_starttime6} ${deny_endtime6} ${testClentIP} ${s} http_host www.usdebtclock.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.usdebtclock.org
Proxy-Policy-deny-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${deny_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId8}
@@ -81,10 +76,9 @@ Proxy-Policy-deny-00005
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId4}
GetLogList proxy_event_log ${deny_starttime7} ${deny_endtime7} ${testClentIP} ${s} http_host americantesol.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host americantesol.com
Proxy-Policy-deny-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${deny_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId11}
@@ -94,10 +88,9 @@ Proxy-Policy-deny-00006
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId5}
GetLogList proxy_event_log ${deny_starttime8} ${deny_endtime8} ${testClentIP} ${s} http_host www.playgroundsessions.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.playgroundsessions.com
Proxy-Policy-deny-00007
[Tags] 请求头
#删除对象
${objectids} set Variable ${deny_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId14}
@@ -107,10 +100,9 @@ Proxy-Policy-deny-00007
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId6}
GetLogList proxy_event_log ${deny_starttime9} ${deny_endtime9} ${testClentIP} ${s} http_host peoplestalkradio.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host peoplestalkradio.com
Proxy-Policy-deny-00008
[Tags] 应答头
#删除文件
${profiledId} set Variable ${deny_profileId2}
#删除对象
@@ -122,10 +114,9 @@ Proxy-Policy-deny-00008
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId7}
GetLogList proxy_event_log ${deny_starttime10} ${deny_endtime10} ${testClentIP} ${s} http_host www.6renyou.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.6renyou.com
Proxy-Policy-deny-00009
[Tags] 应答头
#删除文件
${profiledId} set Variable ${deny_profileId3}
#删除对象
@@ -137,10 +128,9 @@ Proxy-Policy-deny-00009
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId8}
GetLogList proxy_event_log ${deny_starttime11} ${deny_endtime11} ${testClentIP} ${s} http_host www.ljale.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ljale.com
Proxy-Policy-deny-00010
[Tags] 应答头
#删除文件
${profiledId} set Variable ${deny_profileId4}
#删除对象
@@ -152,10 +142,9 @@ Proxy-Policy-deny-00010
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId9}
GetLogList proxy_event_log ${deny_starttime12} ${deny_endtime12} ${testClentIP} ${s} http_host www.duckduckmoose.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.duckduckmoose.com
Proxy-Policy-deny-00011
[Tags] 应答头
#删除文件
${profiledId} set Variable ${deny_profileId5}
#删除对象
@@ -167,10 +156,9 @@ Proxy-Policy-deny-00011
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId10}
GetLogList proxy_event_log ${deny_starttime13} ${deny_endtime13} ${testClentIP} ${s} http_host tutcandy.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tutcandy.com
Proxy-Policy-deny-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${deny_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId29}
@@ -180,10 +168,9 @@ Proxy-Policy-deny-00012
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId11}
GetLogList proxy_event_log ${deny_starttime14} ${deny_endtime14} ${testClentIP} ${s} http_host www.youqulu.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.youqulu.com
Proxy-Policy-deny-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${deny_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId32}
@@ -193,13 +180,12 @@ Proxy-Policy-deny-00013
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId12}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId12}
GetLogList proxy_event_log ${deny_starttime15} ${deny_endtime15} ${testClentIP} ${s} http_host www.nypl.org
GetLogList proxy_event_log ${deny_starttime16} ${deny_endtime16} ${testClentIP} ${s} http_host www.thailand.com.co
GetLogList proxy_event_log ${deny_starttime17} ${deny_endtime17} ${testClentIP} ${s} http_host bj.zu.ke.com
GetLogList proxy_event_log ${deny_starttime18} ${deny_endtime18} ${testClentIP} ${s} http_host nationalbank.kz
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.nypl.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.thailand.com.co
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bj.zu.ke.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nationalbank.kz
Proxy-Policy-deny-00014
[Tags] 请求体
#删除对象
${objectids} set Variable ${deny_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId34}
@@ -208,32 +194,43 @@ Proxy-Policy-deny-00014
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId13}
GetLogList proxy_event_log ${deny_starttime19} ${deny_endtime19} ${testClentIP} ${s} http_host open.node.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-deny-00015
[Tags] 应答体
#删除对象
${objectids} set Variable ${deny_objectId35}
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${deny_policyId14}]}
${s} Convert to String ${deny_policyId14}
GetLogList proxy_event_log ${deny_starttime20} ${deny_endtime20} ${testClentIP} ${s} http_host open.node.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-deny-00016
[Tags] 最大组合1
#删除文件
${profiledId} set Variable ${deny_profileId5}
#删除对象
${objectids} set Variable ${deny_objectId49}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId47}
#删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId15}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId17}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId17}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.stewart.com
Proxy-Policy-deny-00017
#删除对象
${objectids} set Variable ${deny_objectId36}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId37}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId38}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId39}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId40}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId48}
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${deny_policyId15}]}
${s} Convert to String ${deny_policyId15}
GetLogList proxy_event_log ${deny_starttime21} ${deny_endtime21} ${testClentIP} ${s} http_host open.node.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-deny-00017
[Tags] 最大组合2
Proxy-Policy-deny-00018
#删除对象
${objectids} set Variable ${deny_objectId41}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId42}
@@ -245,4 +242,4 @@ Proxy-Policy-deny-00017
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId16}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId16}
GetLogList proxy_event_log ${deny_starttime22} ${deny_endtime22} ${testClentIP} ${s} http_host www.umusicpub.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.umusicpub.com

View File

@@ -0,0 +1,27 @@
*** Settings ***
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
Force Tags tsg_adc_wp adc_log proxy_policy
Library OperatingSystem
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
Resource ../../../05-Other/AllFlowCaseVariable.txt
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
Resource ../../../05-Other/AllFlowCaseVariable1.txt
*** Variables ***
${policyIds} ${EMPTY}
${objectids} ${EMPTY}
*** Test Cases ***
wan_nat-dnat-00001
#删除对象
${objectids} set Variable ${dnat_objectId}
#删除策略
${policyIds} Create List {"policyType":"wannat","policyIds":[${dnat_policyId}]}
wan_nat-dnat-00002
#删除对象
${objectids} set Variable ${dnat_objectId1}
#删除策略
${policyIds} Create List {"policyType":"wannat","policyIds":[${dnat_policyId1}]}

View File

@@ -17,7 +17,6 @@ ${profiledId} ${EMPTY}
*** Test Cases ***
Proxy-Policy-hijack-00001
[Tags] fqdn
#删除文件
${profiledId} set Variable ${hijack_profileId}
#删除对象
@@ -28,10 +27,9 @@ Proxy-Policy-hijack-00001
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId}
GetLogList proxy_event_log ${hijack_starttime} ${hijack_endtime} ${testClentIP} ${s} http_host vator.tv
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host vator.tv
Proxy-Policy-hijack-00002
[Tags] cat
#删除文件
${profiledId} set Variable ${hijack_profileId1}
#删除对象
@@ -42,10 +40,9 @@ Proxy-Policy-hijack-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId1}
GetLogList proxy_event_log ${hijack_starttime1} ${hijack_endtime1} ${testClentIP} ${s} http_host cruisecritic.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cruisecritic.com
Proxy-Policy-hijack-00003
[Tags] url
#删除文件
${profiledId} set Variable ${hijack_profileId2}
#删除对象
@@ -56,13 +53,12 @@ Proxy-Policy-hijack-00003
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId2}
GetLogList proxy_event_log ${hijack_starttime2} ${hijack_endtime2} ${testClentIP} ${s} http_host vegas.com
GetLogList proxy_event_log ${hijack_starttime3} ${hijack_endtime3} ${testClentIP} ${s} http_host bytedance.com
GetLogList proxy_event_log ${hijack_starttime4} ${hijack_endtime4} ${testClentIP} ${s} http_host toutiao.com
GetLogList proxy_event_log ${hijack_starttime5} ${hijack_endtime5} ${testClentIP} ${s} http_host douyin.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host vegas.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bytedance.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host toutiao.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host douyin.com
Proxy-Policy-hijack-00004
[Tags] 请求头
#删除文件
${profiledId} set Variable ${hijack_profileId3}
#删除对象
@@ -74,10 +70,9 @@ Proxy-Policy-hijack-00004
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId3}
GetLogList proxy_event_log ${hijack_starttime6} ${hijack_endtime6} ${testClentIP} ${s} http_host huoshan.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host huoshan.com
Proxy-Policy-hijack-00005
[Tags] 请求头
#删除文件
${profiledId} set Variable ${hijack_profileId4}
#删除对象
@@ -89,10 +84,9 @@ Proxy-Policy-hijack-00005
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId4}
GetLogList proxy_event_log ${hijack_starttime7} ${hijack_endtime7} ${testClentIP} ${s} http_host www.ixigua.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ixigua.com
Proxy-Policy-hijack-00006
[Tags] 请求头
#删除文件
${profiledId} set Variable ${hijack_profileId5}
#删除对象
@@ -104,10 +98,9 @@ Proxy-Policy-hijack-00006
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId5}
GetLogList proxy_event_log ${hijack_starttime8} ${hijack_endtime8} ${testClentIP} ${s} http_host www.dcdapp.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.dcdapp.com
Proxy-Policy-hijack-00007
[Tags] 请求头
#删除文件
${profiledId} set Variable ${hijack_profileId6}
#删除对象
@@ -119,10 +112,9 @@ Proxy-Policy-hijack-00007
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId6}
GetLogList proxy_event_log ${hijack_starttime9} ${hijack_endtime9} ${testClentIP} ${s} http_host www.gogokid.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.gogokid.com.cn
Proxy-Policy-hijack-00008
[Tags] 应答头
#删除文件
${profiledId} set Variable ${hijack_profileId7}
#删除对象
@@ -134,10 +126,9 @@ Proxy-Policy-hijack-00008
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId7}
GetLogList proxy_event_log ${hijack_starttime10} ${hijack_endtime10} ${testClentIP} ${s} http_host mafengwo.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host mafengwo.cn
Proxy-Policy-hijack-00009
[Tags] 应答头
#删除文件
${profiledId} set Variable ${hijack_profileId8}
#删除对象
@@ -149,10 +140,9 @@ Proxy-Policy-hijack-00009
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId8}
GetLogList proxy_event_log ${hijack_starttime11} ${hijack_endtime11} ${testClentIP} ${s} http_host quote.hexun.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host quote.hexun.com
Proxy-Policy-hijack-00010
[Tags] 应答头
#删除文件
${profiledId} set Variable ${hijack_profileId9}
#删除对象
@@ -164,10 +154,9 @@ Proxy-Policy-hijack-00010
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId9}
GetLogList proxy_event_log ${hijack_starttime12} ${hijack_endtime12} ${testClentIP} ${s} http_host tianya.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tianya.cn
Proxy-Policy-hijack-00011
[Tags] 应答头
#删除文件
${profiledId} set Variable ${hijack_profileId10}
#删除对象
@@ -179,10 +168,9 @@ Proxy-Policy-hijack-00011
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId10}
GetLogList proxy_event_log ${hijack_starttime13} ${hijack_endtime13} ${testClentIP} ${s} http_host mydrivers.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host mydrivers.com
Proxy-Policy-hijack-00012
[Tags] cookie
#删除文件
${profiledId} set Variable ${hijack_profileId11}
#删除对象
@@ -194,10 +182,9 @@ Proxy-Policy-hijack-00012
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId11}
GetLogList proxy_event_log ${hijack_starttime14} ${hijack_endtime14} ${testClentIP} ${s} http_host www.reval.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.reval.com
Proxy-Policy-hijack-00013
[Tags] set-cookie
#删除文件
${profiledId} set Variable ${hijack_profileId12}
#删除对象
@@ -209,13 +196,12 @@ Proxy-Policy-hijack-00013
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId12}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId12}
GetLogList proxy_event_log ${hijack_starttime15} ${hijack_endtime15} ${testClentIP} ${s} http_host nsscreencast.com
GetLogList proxy_event_log ${hijack_starttime16} ${hijack_endtime16} ${testClentIP} ${s} http_host www.edreams.net
GetLogList proxy_event_log ${hijack_starttime17} ${hijack_endtime17} ${testClentIP} ${s} http_host boutiquehotel.me
GetLogList proxy_event_log ${hijack_starttime18} ${hijack_endtime18} ${testClentIP} ${s} http_host www.united.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nsscreencast.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.edreams.net
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host boutiquehotel.me
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.united.com
Proxy-Policy-hijack-00014
[Tags] 最大组合
#删除文件
${profiledId} set Variable ${hijack_profileId13}
#删除对象
@@ -230,4 +216,4 @@ Proxy-Policy-hijack-00014
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${hijack_policyId13}
GetLogList proxy_event_log ${hijack_starttime19} ${hijack_endtime19} ${testClentIP} ${s} http_host www.travelzoo.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.travelzoo.com

View File

@@ -17,7 +17,6 @@ ${profiledId} ${EMPTY}
*** Test Cases ***
Proxy-Policy-insert-00001
[Tags] fqdn
#删除文件
${profiledId} set Variable ${insert_profileId}
#删除对象
@@ -28,10 +27,9 @@ Proxy-Policy-insert-00001
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId}
GetLogList proxy_event_log ${insert_starttime} ${insert_endtime} ${testClentIP} ${s} http_host www.costcotravel.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.costcotravel.com
Proxy-Policy-insert-00002
[Tags] cat
#删除文件
${profiledId} set Variable ${insert_profileId1}
#删除对象
@@ -42,10 +40,9 @@ Proxy-Policy-insert-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId1}
GetLogList proxy_event_log ${insert_starttime1} ${insert_endtime1} ${testClentIP} ${s} http_host cruisingpower.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cruisingpower.com
Proxy-Policy-insert-00003
[Tags] url
#删除文件
${profiledId} set Variable ${insert_profileId2}
#删除对象
@@ -56,13 +53,12 @@ Proxy-Policy-insert-00003
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId2}
GetLogList proxy_event_log ${insert_starttime2} ${insert_endtime2} ${testClentIP} ${s} http_host uncorneredmarket.com
GetLogList proxy_event_log ${insert_starttime3} ${insert_endtime3} ${testClentIP} ${s} http_host alltrails.com
GetLogList proxy_event_log ${insert_starttime4} ${insert_endtime4} ${testClentIP} ${s} http_host atlasobscura.com
GetLogList proxy_event_log ${insert_starttime5} ${insert_endtime5} ${testClentIP} ${s} http_host anguilla-beaches.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host uncorneredmarket.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host alltrails.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host atlasobscura.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host anguilla-beaches.com
Proxy-Policy-insert-00004
[Tags] 请求头
#删除文件
${profiledId} set Variable ${insert_profileId3}
#删除对象
@@ -74,10 +70,9 @@ Proxy-Policy-insert-00004
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId3}
GetLogList proxy_event_log ${insert_starttime6} ${insert_endtime6} ${testClentIP} ${s} http_host viator.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host viator.com
Proxy-Policy-insert-00005
[Tags] 请求头
#删除文件
${profiledId} set Variable ${insert_profileId4}
#删除对象
@@ -89,10 +84,9 @@ Proxy-Policy-insert-00005
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId4}
GetLogList proxy_event_log ${insert_starttime7} ${insert_endtime7} ${testClentIP} ${s} http_host matadornetwork.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host matadornetwork.com
Proxy-Policy-insert-00006
[Tags] 请求头
#删除文件
${profiledId} set Variable ${insert_profileId5}
#删除对象
@@ -104,10 +98,9 @@ Proxy-Policy-insert-00006
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId5}
GetLogList proxy_event_log ${insert_starttime8} ${insert_endtime8} ${testClentIP} ${s} http_host www.farecompare.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.farecompare.com
Proxy-Policy-insert-00007
[Tags] 请求头
#删除文件
${profiledId} set Variable ${insert_profileId6}
#删除对象
@@ -119,10 +112,9 @@ Proxy-Policy-insert-00007
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId6}
GetLogList proxy_event_log ${insert_starttime9} ${insert_endtime9} ${testClentIP} ${s} http_host www.tripit.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.tripit.com
Proxy-Policy-insert-00008
[Tags] 应答头
#删除文件
${profiledId} set Variable ${insert_profileId7}
#删除对象
@@ -134,10 +126,9 @@ Proxy-Policy-insert-00008
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId7}
GetLogList proxy_event_log ${insert_starttime10} ${insert_endtime10} ${testClentIP} ${s} http_host waikikibeachwalk.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host waikikibeachwalk.com
Proxy-Policy-insert-00009
[Tags] 应答头
#删除文件
${profiledId} set Variable ${insert_profileId8}
#删除对象
@@ -149,10 +140,9 @@ Proxy-Policy-insert-00009
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId8}
GetLogList proxy_event_log ${insert_starttime11} ${insert_endtime11} ${testClentIP} ${s} http_host guides.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host guides.com
Proxy-Policy-insert-00010
[Tags] 应答头
#删除文件
${profiledId} set Variable ${insert_profileId9}
#删除对象
@@ -164,10 +154,9 @@ Proxy-Policy-insert-00010
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId9}
GetLogList proxy_event_log ${insert_starttime12} ${insert_endtime12} ${testClentIP} ${s} http_host cnstock.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cnstock.com
Proxy-Policy-insert-00011
[Tags] 应答头
#删除文件
${profiledId} set Variable ${insert_profileId10}
#删除对象
@@ -179,10 +168,9 @@ Proxy-Policy-insert-00011
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId10}
GetLogList proxy_event_log ${insert_starttime13} ${insert_endtime13} ${testClentIP} ${s} http_host newone.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host newone.com.cn
Proxy-Policy-insert-00012
[Tags] cookie
#删除文件
${profiledId} set Variable ${insert_profileId11}
#删除对象
@@ -194,10 +182,9 @@ Proxy-Policy-insert-00012
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId11}
GetLogList proxy_event_log ${insert_starttime14} ${insert_endtime14} ${testClentIP} ${s} http_host www.eastbay.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.eastbay.com
Proxy-Policy-insert-00013
[Tags] set-cookie
#删除文件
${profiledId} set Variable ${insert_profileId12}
#删除对象
@@ -209,13 +196,12 @@ Proxy-Policy-insert-00013
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId12}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId12}
GetLogList proxy_event_log ${insert_starttime15} ${insert_endtime15} ${testClentIP} ${s} http_host www.shermanstravel.com
GetLogList proxy_event_log ${insert_starttime16} ${insert_endtime16} ${testClentIP} ${s} http_host www.wyndhamhotels.com
GetLogList proxy_event_log ${insert_starttime17} ${insert_endtime17} ${testClentIP} ${s} http_host us.travelnow.com
GetLogList proxy_event_log ${insert_starttime18} ${insert_endtime18} ${testClentIP} ${s} http_host www.smithsonianjourneys.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.shermanstravel.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.wyndhamhotels.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host us.travelnow.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.smithsonianjourneys.org
Proxy-Policy-insert-00014
[Tags] 最大组合
#删除文件
${profiledId} set Variable ${insert_profileId13}
#删除对象
@@ -230,4 +216,4 @@ Proxy-Policy-insert-00014
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${insert_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${insert_policyId13}
GetLogList proxy_event_log ${insert_starttime19} ${insert_endtime19} ${testClentIP} ${s} http_host www.intervalworld.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.intervalworld.com

View File

@@ -15,19 +15,17 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Intercept-Http-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${intercept_http_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_http_policyId}]}
${s} Convert to String ${intercept_http_policyId}
GetLogList security_event_log ${intercept_http_starttime} ${intercept_http_endtime} ${testClentIP} ${s} http_host www.mydrivers.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.mydrivers.com
SecurityPolicy-Intercept-Http-00002
[Tags] cat
#删除对象
${objectids} set Variable ${intercept_http_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_http_policyId1}]}
${s} Convert to String ${intercept_http_policyId1}
GetLogList security_event_log ${intercept_http_starttime1} ${intercept_http_endtime1} ${testClentIP} ${s} http_host sunnylands.org
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host sunnylands.org

View File

@@ -15,19 +15,17 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Intercept-Ssl-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${intercept_ssl_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId}]}
${s} Convert to String ${intercept_ssl_policyId}
GetLogList security_event_log ${intercept_ssl_starttime} ${intercept_ssl_endtime} ${testClentIP} ${s} ssl_sni www.reviewpro.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.reviewpro.com
SecurityPolicy-Intercept-Ssl-00002
[Tags] cat
#删除对象
${objectids} set Variable ${intercept_ssl_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId1}]}
${s} Convert to String ${intercept_ssl_policyId1}
GetLogList security_event_log ${intercept_ssl_starttime1} ${intercept_ssl_endtime1} ${testClentIP} ${s} ssl_sni www.momondo.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.momondo.ru

View File

@@ -15,21 +15,19 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Monitor-Dns-00001
[Tags] sni
#删除对象
${objectids} set Variable ${monitor_dns_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_dns_policyId}]}
${s} Convert to String ${monitor_dns_policyId}
GetLogList security_event_log ${monitor_dns_starttime} ${monitor_dns_endtime} ${testClentIP} ${s} dns_qname travelgam.com
GetLogList security_event_log ${monitor_dns_starttime1} ${monitor_dns_endtime1} ${testClentIP} ${s} dns_qname flyaurora.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname travelgam.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname flyaurora.ru
SecurityPolicy-Monitor-Dns-00002
[Tags] cn
#删除对象
${objectids} set Variable ${monitor_dns_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_dns_policyId1}]}
${s} Convert to String ${monitor_dns_policyId1}
GetLogList security_event_log ${monitor_dns_starttime2} ${monitor_dns_endtime2} ${testClentIP} ${s} dns_qname ostrovok.ru
GetLogList security_event_log ${monitor_dns_starttime3} ${monitor_dns_endtime3} ${testClentIP} ${s} dns_qname vip.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname ostrovok.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname vip.com

View File

@@ -15,7 +15,6 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Monitor-ftp-00001
[Tags] 字串匹配
#删除对象
${objectids} set Variable ${monitor_ftp_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_ftp_objectId1}
@@ -23,10 +22,9 @@ SecurityPolicy-Monitor-ftp-00001
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ftp_policyId}]}
${s} Convert to String ${monitor_ftp_policyId}
GetLogList security_event_log ${monitor_ftp_starttime} ${monitor_ftp_endtime} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user
SecurityPolicy-Monitor-ftp-00002
[Tags] 右匹配
#删除对象
${objectids} set Variable ${monitor_ftp_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_ftp_objectId4}
@@ -34,10 +32,9 @@ SecurityPolicy-Monitor-ftp-00002
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ftp_policyId1}]}
${s} Convert to String ${monitor_ftp_policyId1}
GetLogList security_event_log ${monitor_ftp_starttime1} ${monitor_ftp_endtime1} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user
SecurityPolicy-Monitor-ftp-00003
[Tags] 完整匹配
#删除对象
${objectids} set Variable ${monitor_ftp_objectId6}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_ftp_objectId7}
@@ -45,10 +42,9 @@ SecurityPolicy-Monitor-ftp-00003
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ftp_policyId2}]}
${s} Convert to String ${monitor_ftp_policyId2}
GetLogList security_event_log ${monitor_ftp_starttime2} ${monitor_ftp_endtime2} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user
SecurityPolicy-Monitor-ftp-00004
[Tags] 左匹配
#删除对象
${objectids} set Variable ${monitor_ftp_objectId9}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_ftp_objectId10}
@@ -56,4 +52,4 @@ SecurityPolicy-Monitor-ftp-00004
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ftp_policyId3}]}
${s} Convert to String ${monitor_ftp_policyId3}
GetLogList security_event_log ${monitor_ftp_starttime3} ${monitor_ftp_endtime3} ${testClentIP} ${s} ftp_account ftp_user
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ftp_account ftp_user

View File

@@ -15,156 +15,140 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Monitor-Http-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${monitor_http_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId}]}
${s} Convert to String ${monitor_http_policyId}
GetLogList security_event_log ${monitor_http_starttime} ${monitor_http_endtime} ${testClentIP} ${s} http_host nerdreactor.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nerdreactor.com
SecurityPolicy-Monitor-Http-00002
[Tags] cat
#删除对象
${objectids} set Variable ${monitor_http_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId1}]}
${s} Convert to String ${monitor_http_policyId1}
GetLogList security_event_log ${monitor_http_starttime1} ${monitor_http_endtime1} ${testClentIP} ${s} http_host jzjc.jd.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host jzjc.jd.com
SecurityPolicy-Monitor-Http-00003
[Tags] url
#删除对象
${objectids} set Variable ${monitor_http_objectId2}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId2}]}
${s} Convert to String ${monitor_http_policyId2}
GetLogList security_event_log ${monitor_http_starttime2} ${monitor_http_endtime2} ${testClentIP} ${s} http_host hkbchina.com
GetLogList security_event_log ${monitor_http_starttime3} ${monitor_http_endtime3} ${testClentIP} ${s} http_host baby.ru
GetLogList security_event_log ${monitor_http_starttime4} ${monitor_http_endtime4} ${testClentIP} ${s} http_host www.universalmusic.ru
GetLogList security_event_log ${monitor_http_starttime5} ${monitor_http_endtime5} ${testClentIP} ${s} http_host crosswordheaven.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host hkbchina.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host baby.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.universalmusic.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host crosswordheaven.com
SecurityPolicy-Monitor-Http-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId4}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId3}]}
${s} Convert to String ${monitor_http_policyId3}
GetLogList security_event_log ${monitor_http_starttime6} ${monitor_http_endtime6} ${testClentIP} ${s} http_host quotes.info
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host quotes.info
SecurityPolicy-Monitor-Http-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId5}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId6}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId4}]}
${s} Convert to String ${monitor_http_policyId4}
GetLogList security_event_log ${monitor_http_starttime7} ${monitor_http_endtime7} ${testClentIP} ${s} http_host chinahr.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host chinahr.com
SecurityPolicy-Monitor-Http-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId8}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId5}]}
${s} Convert to String ${monitor_http_policyId5}
GetLogList security_event_log ${monitor_http_starttime8} ${monitor_http_endtime8} ${testClentIP} ${s} http_host bitauto.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bitauto.com
SecurityPolicy-Monitor-Http-00007
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId9}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId10}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId6}]}
${s} Convert to String ${monitor_http_policyId6}
GetLogList security_event_log ${monitor_http_starttime9} ${monitor_http_endtime9} ${testClentIP} ${s} http_host herocraft.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host herocraft.com
SecurityPolicy-Monitor-Http-00008
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId11}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId12}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId7}]}
${s} Convert to String ${monitor_http_policyId7}
GetLogList security_event_log ${monitor_http_starttime10} ${monitor_http_endtime10} ${testClentIP} ${s} http_host www.tccb.com.cn
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.tccb.com.cn
SecurityPolicy-Monitor-Http-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId14}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId8}]}
${s} Convert to String ${monitor_http_policyId8}
GetLogList security_event_log ${monitor_http_starttime11} ${monitor_http_endtime11} ${testClentIP} ${s} http_host www.athinline.org
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.athinline.org
SecurityPolicy-Monitor-Http-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId15}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId16}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId9}]}
${s} Convert to String ${monitor_http_policyId9}
GetLogList security_event_log ${monitor_http_starttime12} ${monitor_http_endtime12} ${testClentIP} ${s} http_host 1001guru.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host 1001guru.ru
SecurityPolicy-Monitor-Http-00011
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId18}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId10}]}
${s} Convert to String ${monitor_http_policyId10}
GetLogList security_event_log ${monitor_http_starttime13} ${monitor_http_endtime13} ${testClentIP} ${s} http_host emi-ors.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host emi-ors.com
SecurityPolicy-Monitor-Http-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${monitor_http_objectId19}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId11}]}
${s} Convert to String ${monitor_http_policyId11}
GetLogList security_event_log ${monitor_http_starttime14} ${monitor_http_endtime14} ${testClentIP} ${s} http_host www.titter.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.titter.com
SecurityPolicy-Monitor-Http-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${monitor_http_objectId20}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId12}]}
${s} Convert to String ${monitor_http_policyId12}
GetLogList security_event_log ${monitor_http_starttime15} ${monitor_http_endtime15} ${testClentIP} ${s} http_host www.spore.com
GetLogList security_event_log ${monitor_http_starttime16} ${monitor_http_endtime16} ${testClentIP} ${s} http_host www.dianping.com
GetLogList security_event_log ${monitor_http_starttime17} ${monitor_http_endtime17} ${testClentIP} ${s} http_host cn.bing.com
GetLogList security_event_log ${monitor_http_starttime18} ${monitor_http_endtime18} ${testClentIP} ${s} http_host virtualflowers.ru
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.spore.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.dianping.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cn.bing.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host virtualflowers.ru
SecurityPolicy-Monitor-Http-00014
[Tags] 请求体
#删除对象
${objectids} set Variable ${monitor_http_objectId21}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId13}]}
${s} Convert to String ${monitor_http_policyId13}
GetLogList security_event_log ${monitor_http_starttime19} ${monitor_http_endtime19} ${testClentIP} ${s} http_host open.node.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
SecurityPolicy-Monitor-Http-00015
[Tags] 应答体
#删除对象
${objectids} set Variable ${monitor_http_objectId22}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId14}]}
${s} Convert to String ${monitor_http_policyId14}
GetLogList security_event_log ${monitor_http_starttime20} ${monitor_http_endtime20} ${testClentIP} ${s} http_host motionmathgames.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host motionmathgames.com
SecurityPolicy-Monitor-Http-00016
[Tags] 最大组合1
#删除对象
${objectids} set Variable ${monitor_http_objectId23}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId24}
@@ -174,10 +158,9 @@ SecurityPolicy-Monitor-Http-00016
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId15}]}
${s} Convert to String ${monitor_http_policyId15}
GetLogList security_event_log ${monitor_http_starttime21} ${monitor_http_endtime21} ${testClentIP} ${s} http_host open.node.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
SecurityPolicy-Monitor-Http-00017
[Tags] 最大组合2
#删除对象
${objectids} set Variable ${monitor_http_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId29}
@@ -187,4 +170,4 @@ SecurityPolicy-Monitor-Http-00017
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId16}]}
${s} Convert to String ${monitor_http_policyId16}
GetLogList security_event_log ${monitor_http_starttime22} ${monitor_http_endtime22} ${testClentIP} ${s} http_host www.airwargame.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.airwargame.com

View File

@@ -15,145 +15,130 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Monitor-Mail-00001
[Tags] content
#删除对象
${objectids} set Variable ${monitor_mail_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId}]}
${s} Convert to String ${monitor_mail_policyId}
GetLogList security_event_log ${monitor_mail_starttime} ${monitor_mail_endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00002
[Tags] att_cont
#删除对象
${objectids} set Variable ${monitor_mail_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId1}]}
${s} Convert to String ${monitor_mail_policyId1}
GetLogList security_event_log ${monitor_mail_starttime1} ${monitor_mail_endtime1} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00003
[Tags] subject from
#删除对象
${objectids} set Variable ${monitor_mail_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId3}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId2}]}
${s} Convert to String ${monitor_mail_policyId2}
GetLogList security_event_log ${monitor_mail_starttime2} ${monitor_mail_endtime2} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00004
[Tags] subject from
#删除对象
${objectids} set Variable ${monitor_mail_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId5}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId3}]}
${s} Convert to String ${monitor_mail_policyId3}
GetLogList security_event_log ${monitor_mail_starttime3} ${monitor_mail_endtime3} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00005
[Tags] subject from
#删除对象
${objectids} set Variable ${monitor_mail_objectId6}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId7}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId4}]}
${s} Convert to String ${monitor_mail_policyId4}
GetLogList security_event_log ${monitor_mail_starttime4} ${monitor_mail_endtime4} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00006
[Tags] subject from
#删除对象
${objectids} set Variable ${monitor_mail_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId9}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId5}]}
${s} Convert to String ${monitor_mail_policyId5}
GetLogList security_event_log ${monitor_mail_starttime5} ${monitor_mail_endtime5} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00007
[Tags] subject to
#删除对象
${objectids} set Variable ${monitor_mail_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId11}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId6}]}
${s} Convert to String ${monitor_mail_policyId6}
GetLogList security_event_log ${monitor_mail_starttime6} ${monitor_mail_endtime6} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00008
[Tags] subject to
#删除对象
${objectids} set Variable ${monitor_mail_objectId12}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId13}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId7}]}
${s} Convert to String ${monitor_mail_policyId7}
GetLogList security_event_log ${monitor_mail_starttime7} ${monitor_mail_endtime7} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00009
[Tags] subject to
#删除对象
${objectids} set Variable ${monitor_mail_objectId14}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId15}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId8}]}
${s} Convert to String ${monitor_mail_policyId8}
GetLogList security_event_log ${monitor_mail_starttime8} ${monitor_mail_endtime8} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00010
[Tags] subject to
#删除对象
${objectids} set Variable ${monitor_mail_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId17}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId9}]}
${s} Convert to String ${monitor_mail_policyId9}
GetLogList security_event_log ${monitor_mail_starttime9} ${monitor_mail_endtime9} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00011
[Tags] account subject
#删除对象
${objectids} set Variable ${monitor_mail_objectId18}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId19}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId10}]}
${s} Convert to String ${monitor_mail_policyId10}
GetLogList security_event_log ${monitor_mail_starttime10} ${monitor_mail_endtime10} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00012
[Tags] account subject
#删除对象
${objectids} set Variable ${monitor_mail_objectId20}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId21}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId11}]}
${s} Convert to String ${monitor_mail_policyId11}
GetLogList security_event_log ${monitor_mail_starttime11} ${monitor_mail_endtime11} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00013
[Tags] account subject
#删除对象
${objectids} set Variable ${monitor_mail_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId23}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId12}]}
${s} Convert to String ${monitor_mail_policyId12}
GetLogList security_event_log ${monitor_mail_starttime12} ${monitor_mail_endtime12} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00014
[Tags] account subject
#删除对象
${objectids} set Variable ${monitor_mail_objectId24}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId25}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId13}]}
${s} Convert to String ${monitor_mail_policyId13}
GetLogList security_event_log ${monitor_mail_starttime13} ${monitor_mail_endtime13} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com
SecurityPolicy-Monitor-Mail-00015
[Tags] 最大组合
#删除对象
${objectids} set Variable ${monitor_mail_objectId26}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_mail_objectId27}
@@ -164,4 +149,4 @@ SecurityPolicy-Monitor-Mail-00015
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_mail_policyId14}]}
${s} Convert to String ${monitor_mail_policyId14}
GetLogList security_event_log ${monitor_mail_starttime14} ${monitor_mail_endtime14} ${testClentIP} ${s} mail_account 13103304145@163.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} mail_account 13103304145@163.com

View File

@@ -15,40 +15,36 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Monitor-Ssl-00001
[Tags] sni
#删除对象
${objectids} set Variable ${monitor_ssl_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId}]}
${s} Convert to String ${monitor_ssl_policyId}
GetLogList security_event_log ${monitor_ssl_starttime} ${monitor_ssl_endtime} ${testClentIP} ${s} ssl_sni www.wego.cn
GetLogList security_event_log ${monitor_ssl_starttime1} ${monitor_ssl_endtime1} ${testClentIP} ${s} ssl_sni freecountry.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.wego.cn
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni freecountry.com
SecurityPolicy-Monitor-Ssl-00002
[Tags] cn
#删除对象
${objectids} set Variable ${monitor_ssl_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId1}]}
${s} Convert to String ${monitor_ssl_policyId1}
GetLogList security_event_log ${monitor_ssl_starttime2} ${monitor_ssl_endtime2} ${testClentIP} ${s} ssl_sni www.huya.com
GetLogList security_event_log ${monitor_ssl_starttime3} ${monitor_ssl_endtime3} ${testClentIP} ${s} ssl_sni www.artistdirect.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.huya.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.artistdirect.com
SecurityPolicy-Monitor-Ssl-00003
[Tags] san
#删除对象
${objectids} set Variable ${monitor_ssl_objectId2}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId2}]}
${s} Convert to String ${monitor_ssl_policyId2}
GetLogList security_event_log ${monitor_ssl_starttime4} ${monitor_ssl_endtime4} ${testClentIP} ${s} ssl_sni www.lyrics.com
GetLogList security_event_log ${monitor_ssl_starttime5} ${monitor_ssl_endtime5} ${testClentIP} ${s} ssl_sni melody.su
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.lyrics.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni melody.su
SecurityPolicy-Monitor-Ssl-00004
[Tags] 最大组合
#删除对象
${objectids} set Variable ${monitor_ssl_objectId3}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId3}]}
${s} Convert to String ${monitor_ssl_policyId3}
GetLogList security_event_log ${monitor_ssl_starttime6} ${monitor_ssl_endtime6} ${testClentIP} ${s} ssl_sni www.iqiyi.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.iqiyi.com

View File

@@ -15,7 +15,6 @@ ${objectids} ${EMPTY}
*** Test Cases ***
Proxy-Policy-monitor-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${monitor_objectId}
#删除策略
@@ -23,10 +22,9 @@ Proxy-Policy-monitor-00001
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId}
GetLogList proxy_event_log ${monitor_starttime} ${monitor_endtime} ${testClentIP} ${s} http_host newsela.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host newsela.com
Proxy-Policy-monitor-00002
[Tags] cat
#删除对象
${objectids} set Variable ${monitor_objectId1}
#删除策略
@@ -34,10 +32,9 @@ Proxy-Policy-monitor-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId1}
GetLogList proxy_event_log ${monitor_starttime1} ${monitor_endtime1} ${testClentIP} ${s} http_host villaday.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host villaday.com
Proxy-Policy-monitor-00003
[Tags] url
#删除对象
${objectids} set Variable ${monitor_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId3}
@@ -46,13 +43,12 @@ Proxy-Policy-monitor-00003
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId2}
GetLogList proxy_event_log ${monitor_starttime2} ${monitor_endtime2} ${testClentIP} ${s} http_host www.wmtransfer.com
GetLogList proxy_event_log ${monitor_starttime3} ${monitor_endtime3} ${testClentIP} ${s} http_host www.banbaowang.com
GetLogList proxy_event_log ${monitor_starttime4} ${monitor_endtime4} ${testClentIP} ${s} http_host www.qidian.com
GetLogList proxy_event_log ${monitor_starttime5} ${monitor_endtime5} ${testClentIP} ${s} http_host www.rolandberger.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.wmtransfer.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.banbaowang.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.qidian.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.rolandberger.com
Proxy-Policy-monitor-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId5}
@@ -62,10 +58,9 @@ Proxy-Policy-monitor-00004
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId3}
GetLogList proxy_event_log ${monitor_starttime6} ${monitor_endtime6} ${testClentIP} ${s} http_host www.usdebtclock.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.usdebtclock.org
Proxy-Policy-monitor-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId8}
@@ -75,10 +70,9 @@ Proxy-Policy-monitor-00005
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId4}
GetLogList proxy_event_log ${monitor_starttime7} ${monitor_endtime7} ${testClentIP} ${s} http_host americantesol.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host americantesol.com
Proxy-Policy-monitor-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId11}
@@ -88,10 +82,9 @@ Proxy-Policy-monitor-00006
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId5}
GetLogList proxy_event_log ${monitor_starttime8} ${monitor_endtime8} ${testClentIP} ${s} http_host www.playgroundsessions.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.playgroundsessions.com
Proxy-Policy-monitor-00007
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId14}
@@ -101,10 +94,9 @@ Proxy-Policy-monitor-00007
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId6}
GetLogList proxy_event_log ${monitor_starttime9} ${monitor_endtime9} ${testClentIP} ${s} http_host peoplestalkradio.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host peoplestalkradio.com
Proxy-Policy-monitor-00008
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId17}
@@ -114,10 +106,9 @@ Proxy-Policy-monitor-00008
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId7}
GetLogList proxy_event_log ${monitor_starttime10} ${monitor_endtime10} ${testClentIP} ${s} http_host www.6renyou.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.6renyou.com
Proxy-Policy-monitor-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId20}
@@ -127,10 +118,9 @@ Proxy-Policy-monitor-00009
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId8}
GetLogList proxy_event_log ${monitor_starttime11} ${monitor_endtime11} ${testClentIP} ${s} http_host www.ljale.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ljale.com
Proxy-Policy-monitor-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId23}
@@ -140,10 +130,9 @@ Proxy-Policy-monitor-00010
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId9}
GetLogList proxy_event_log ${monitor_starttime12} ${monitor_endtime12} ${testClentIP} ${s} http_host www.duckduckmoose.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.duckduckmoose.com
Proxy-Policy-monitor-00011
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId26}
@@ -153,10 +142,9 @@ Proxy-Policy-monitor-00011
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId10}
GetLogList proxy_event_log ${monitor_starttime13} ${monitor_endtime13} ${testClentIP} ${s} http_host tutcandy.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tutcandy.com
Proxy-Policy-monitor-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${monitor_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId29}
@@ -166,10 +154,9 @@ Proxy-Policy-monitor-00012
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId11}
GetLogList proxy_event_log ${monitor_starttime14} ${monitor_endtime14} ${testClentIP} ${s} http_host www.youqulu.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.youqulu.com
Proxy-Policy-monitor-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${monitor_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId32}
@@ -178,13 +165,12 @@ Proxy-Policy-monitor-00013
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId12}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId12}
GetLogList proxy_event_log ${monitor_starttime15} ${monitor_endtime15} ${testClentIP} ${s} http_host www.nypl.org
GetLogList proxy_event_log ${monitor_starttime16} ${monitor_endtime16} ${testClentIP} ${s} http_host www.thailand.com.co
GetLogList proxy_event_log ${monitor_starttime17} ${monitor_endtime17} ${testClentIP} ${s} http_host bj.zu.ke.com
GetLogList proxy_event_log ${monitor_starttime18} ${monitor_endtime18} ${testClentIP} ${s} http_host nationalbank.kz
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.nypl.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.thailand.com.co
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bj.zu.ke.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nationalbank.kz
Proxy-Policy-monitor-00014
[Tags] 请求体
#删除对象
${objectids} set Variable ${monitor_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId34}
@@ -193,19 +179,17 @@ Proxy-Policy-monitor-00014
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId13}
GetLogList proxy_event_log ${monitor_starttime19} ${monitor_endtime19} ${testClentIP} ${s} http_host open.node.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-monitor-00015
[Tags] 应答体
#删除对象
${objectids} set Variable ${monitor_objectId35}
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId14}]}
${s} Convert to String ${monitor_policyId14}
GetLogList proxy_event_log ${monitor_starttime20} ${monitor_endtime20} ${testClentIP} ${s} http_host open.node.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-monitor-00016
[Tags] 最大组合1
#删除对象
${objectids} set Variable ${monitor_objectId36}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId37}
@@ -215,10 +199,9 @@ Proxy-Policy-monitor-00016
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId15}]}
${s} Convert to String ${monitor_policyId15}
GetLogList proxy_event_log ${monitor_starttime21} ${monitor_endtime21} ${testClentIP} ${s} http_host open.node.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-monitor-00017
[Tags] 最大组合2
#删除对象
${objectids} set Variable ${monitor_objectId41}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId42}
@@ -230,4 +213,4 @@ Proxy-Policy-monitor-00017
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId16}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${monitor_policyId16}
GetLogList proxy_event_log ${monitor_starttime22} ${monitor_endtime22} ${testClentIP} ${s} http_host www.umusicpub.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.umusicpub.com

View File

@@ -15,7 +15,6 @@ ${objectids} ${EMPTY}
*** Test Cases ***
Proxy-Policy-redirect-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${redirect_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId44}
@@ -24,10 +23,9 @@ Proxy-Policy-redirect-00001
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId}
GetLogList proxy_event_log ${redirect_starttime} ${redirect_endtime} ${testClentIP} ${s} http_host www.abercrombiekent.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host quote.com
Proxy-Policy-redirect-00002
[Tags] cat
#删除对象
${objectids} set Variable ${redirect_objectId1}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId45}
@@ -36,10 +34,9 @@ Proxy-Policy-redirect-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId1}
GetLogList proxy_event_log ${redirect_starttime1} ${redirect_endtime1} ${testClentIP} ${s} http_host www.summitpost.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.vystarcu.org
Proxy-Policy-redirect-00003
[Tags] url
#删除对象
${objectids} set Variable ${redirect_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId3}
@@ -48,13 +45,12 @@ Proxy-Policy-redirect-00003
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId2}
GetLogList proxy_event_log ${redirect_starttime2} ${redirect_endtime2} ${testClentIP} ${s} http_host gobackpacking.com
GetLogList proxy_event_log ${redirect_starttime3} ${redirect_endtime3} ${testClentIP} ${s} http_host www.visitguam.com
GetLogList proxy_event_log ${redirect_starttime4} ${redirect_endtime4} ${testClentIP} ${s} http_host skift.com
GetLogList proxy_event_log ${redirect_starttime5} ${redirect_endtime5} ${testClentIP} ${s} http_host eviivo.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host secure.uwcu.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.cit.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.alaskausa.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.tradingtechnologies.com
Proxy-Policy-redirect-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${redirect_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId5}
@@ -64,10 +60,9 @@ Proxy-Policy-redirect-00004
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId3}
GetLogList proxy_event_log ${redirect_starttime6} ${redirect_endtime6} ${testClentIP} ${s} http_host www.dealbase.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.merrilledge.com
Proxy-Policy-redirect-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${redirect_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId8}
@@ -77,10 +72,9 @@ Proxy-Policy-redirect-00005
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId4}
GetLogList proxy_event_log ${redirect_starttime7} ${redirect_endtime7} ${testClentIP} ${s} http_host www.portofstockton.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.marketscreener.com
Proxy-Policy-redirect-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${redirect_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId11}
@@ -90,10 +84,9 @@ Proxy-Policy-redirect-00006
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId5}
GetLogList proxy_event_log ${redirect_starttime8} ${redirect_endtime8} ${testClentIP} ${s} http_host www.marriottvacationclub.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.uwcu.org
Proxy-Policy-redirect-00007
[Tags] 请求头
#删除对象
${objectids} set Variable ${redirect_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId14}
@@ -103,10 +96,9 @@ Proxy-Policy-redirect-00007
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId6}
GetLogList proxy_event_log ${redirect_starttime9} ${redirect_endtime9} ${testClentIP} ${s} http_host www.bulgarihotels.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ufcu.org
Proxy-Policy-redirect-00008
[Tags] 应答头
#删除对象
${objectids} set Variable ${redirect_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId17}
@@ -116,10 +108,9 @@ Proxy-Policy-redirect-00008
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId7}
GetLogList proxy_event_log ${redirect_starttime10} ${redirect_endtime10} ${testClentIP} ${s} http_host www.essence.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.essence.com.cn
Proxy-Policy-redirect-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${redirect_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId20}
@@ -129,10 +120,9 @@ Proxy-Policy-redirect-00009
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId8}
GetLogList proxy_event_log ${redirect_starttime11} ${redirect_endtime11} ${testClentIP} ${s} http_host www.west95582.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.west95582.com
Proxy-Policy-redirect-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${redirect_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId23}
@@ -142,10 +132,9 @@ Proxy-Policy-redirect-00010
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId9}
GetLogList proxy_event_log ${redirect_starttime12} ${redirect_endtime12} ${testClentIP} ${s} http_host dyhjw.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host dyhjw.com
Proxy-Policy-redirect-00011
[Tags] 应答头
#删除对象
${objectids} set Variable ${redirect_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId26}
@@ -155,10 +144,9 @@ Proxy-Policy-redirect-00011
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId10}
GetLogList proxy_event_log ${redirect_starttime13} ${redirect_endtime13} ${testClentIP} ${s} http_host www.cs.ecitic.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.cs.ecitic.com
Proxy-Policy-redirect-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${redirect_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId29}
@@ -168,10 +156,9 @@ Proxy-Policy-redirect-00012
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId11}
GetLogList proxy_event_log ${redirect_starttime14} ${redirect_endtime14} ${testClentIP} ${s} http_host www.polb.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.investors-trust.com
Proxy-Policy-redirect-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${redirect_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId32}
@@ -181,13 +168,12 @@ Proxy-Policy-redirect-00013
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId12}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId12}
GetLogList proxy_event_log ${redirect_starttime15} ${redirect_endtime15} ${testClentIP} ${s} http_host www.travelmath.com
GetLogList proxy_event_log ${redirect_starttime16} ${redirect_endtime16} ${testClentIP} ${s} http_host www.egencia.com
GetLogList proxy_event_log ${redirect_starttime17} ${redirect_endtime17} ${testClentIP} ${s} http_host expediapartnersolutions.com
GetLogList proxy_event_log ${redirect_starttime18} ${redirect_endtime18} ${testClentIP} ${s} http_host www.concur.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.travelmath.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.monticello.org
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host expediapartnersolutions.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.tripadvisor.com
Proxy-Policy-redirect-00014
[Tags] 请求体
#删除对象
${objectids} set Variable ${redirect_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId34}
@@ -197,10 +183,9 @@ Proxy-Policy-redirect-00014
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId13}
GetLogList proxy_event_log ${redirect_starttime19} ${redirect_endtime19} ${testClentIP} ${s} http_host www.umusicpub.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-redirect-00015
[Tags] 最大组合1
#删除对象
${objectids} set Variable ${redirect_objectId35}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId36}
@@ -210,10 +195,9 @@ Proxy-Policy-redirect-00015
#删除策略
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId14}]}
${s} Convert to String ${redirect_policyId14}
GetLogList proxy_event_log ${redirect_starttime20} ${redirect_endtime20} ${testClentIP} ${s} http_host www.umusicpub.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-redirect-00016
[Tags] 最大组合2
#删除对象
${objectids} set Variable ${redirect_objectId40}
${objectids} Catenate SEPARATOR=, ${objectids} ${redirect_objectId41}
@@ -224,4 +208,4 @@ Proxy-Policy-redirect-00016
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${redirect_policyId15}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${redirect_policyId15}
GetLogList proxy_event_log ${redirect_starttime21} ${redirect_endtime21} ${testClentIP} ${s} http_host www.umusicpub.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.equifax.com

View File

@@ -15,7 +15,6 @@ ${objectids} ${EMPTY}
*** Test Cases ***
Proxy-Policy-replace-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${replace_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId39}
@@ -24,10 +23,9 @@ Proxy-Policy-replace-00001
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId}
GetLogList proxy_event_log ${replace_starttime} ${replace_endtime} ${testClentIP} ${s} http_host destidotcom.wordpress.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host destidotcom.wordpress.com
Proxy-Policy-replace-00002
[Tags] cat
#删除对象
${objectids} set Variable ${replace_objectId1}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId40}
@@ -36,10 +34,9 @@ Proxy-Policy-replace-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId1}
GetLogList proxy_event_log ${replace_starttime1} ${replace_endtime1} ${testClentIP} ${s} http_host www.trip.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.trip.com
Proxy-Policy-replace-00003
[Tags] url
#删除对象
${objectids} set Variable ${replace_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId3}
@@ -48,13 +45,12 @@ Proxy-Policy-replace-00003
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId2}
GetLogList proxy_event_log ${replace_starttime2} ${replace_endtime2} ${testClentIP} ${s} http_host www.smartertravel.com
GetLogList proxy_event_log ${replace_starttime3} ${replace_endtime3} ${testClentIP} ${s} http_host www.chinese.hostelworld.com
GetLogList proxy_event_log ${replace_starttime4} ${replace_endtime4} ${testClentIP} ${s} http_host www.truelinkfinancial.com
GetLogList proxy_event_log ${replace_starttime5} ${replace_endtime5} ${testClentIP} ${s} http_host business.nycgo.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.smartertravel.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.chinese.hostelworld.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.truelinkfinancial.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host business.nycgo.com
Proxy-Policy-replace-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${replace_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId5}
@@ -64,10 +60,9 @@ Proxy-Policy-replace-00004
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId3}
GetLogList proxy_event_log ${replace_starttime6} ${replace_endtime6} ${testClentIP} ${s} http_host www.ino.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ino.com
Proxy-Policy-replace-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${replace_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId8}
@@ -77,10 +72,9 @@ Proxy-Policy-replace-00005
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId4}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId4}
GetLogList proxy_event_log ${replace_starttime7} ${replace_endtime7} ${testClentIP} ${s} http_host www.bestwestern.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.bestwestern.com
Proxy-Policy-replace-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${replace_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId11}
@@ -90,10 +84,9 @@ Proxy-Policy-replace-00006
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId5}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId5}
GetLogList proxy_event_log ${replace_starttime8} ${replace_endtime8} ${testClentIP} ${s} http_host www.quickenloans.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.quickenloans.com
Proxy-Policy-replace-00007
[Tags] 请求头
#删除对象
${objectids} set Variable ${replace_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId14}
@@ -103,10 +96,9 @@ Proxy-Policy-replace-00007
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId6}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId6}
GetLogList proxy_event_log ${replace_starttime9} ${replace_endtime9} ${testClentIP} ${s} http_host www.gobank.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.gobank.com
Proxy-Policy-replace-00008
[Tags] 应答头
#删除对象
${objectids} set Variable ${replace_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId17}
@@ -116,10 +108,9 @@ Proxy-Policy-replace-00008
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId7}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId7}
GetLogList proxy_event_log ${replace_starttime10} ${replace_endtime10} ${testClentIP} ${s} http_host www.ghzq.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ghzq.com.cn
Proxy-Policy-replace-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${replace_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId20}
@@ -129,10 +120,9 @@ Proxy-Policy-replace-00009
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId8}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId8}
GetLogList proxy_event_log ${replace_starttime11} ${replace_endtime11} ${testClentIP} ${s} http_host www.zts.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.zts.com.cn
Proxy-Policy-replace-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${replace_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId23}
@@ -141,10 +131,9 @@ Proxy-Policy-replace-00010
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId9}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId9}
GetLogList proxy_event_log ${replace_starttime12} ${replace_endtime12} ${testClentIP} ${s} http_host open.node.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
Proxy-Policy-replace-00011
[Tags] 应答头
#删除对象
${objectids} set Variable ${replace_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId26}
@@ -154,10 +143,9 @@ Proxy-Policy-replace-00011
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId10}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId10}
GetLogList proxy_event_log ${replace_starttime13} ${replace_endtime13} ${testClentIP} ${s} http_host www.shfe.com.cn
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.shfe.com.cn
Proxy-Policy-replace-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${replace_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId29}
@@ -167,10 +155,9 @@ Proxy-Policy-replace-00012
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId11}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId11}
GetLogList proxy_event_log ${replace_starttime14} ${replace_endtime14} ${testClentIP} ${s} http_host www.national-park.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.national-park.com
Proxy-Policy-replace-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${replace_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId32}
@@ -180,13 +167,12 @@ Proxy-Policy-replace-00013
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId12}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId12}
GetLogList proxy_event_log ${replace_starttime15} ${replace_endtime15} ${testClentIP} ${s} http_host www.expedia.co.uk
GetLogList proxy_event_log ${replace_starttime16} ${replace_endtime16} ${testClentIP} ${s} http_host welcome.expediagroup.com
GetLogList proxy_event_log ${replace_starttime17} ${replace_endtime17} ${testClentIP} ${s} http_host www.expediacruises.com
GetLogList proxy_event_log ${replace_starttime18} ${replace_endtime18} ${testClentIP} ${s} http_host www.classicvacations.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.expedia.co.uk
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host welcome.expediagroup.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.expediacruises.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.classicvacations.com
Proxy-Policy-replace-00014
[Tags] 最大组合
#删除对象
${objectids} set Variable ${replace_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId34}
@@ -199,4 +185,4 @@ Proxy-Policy-replace-00014
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId13}]}
${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${replace_policyId13}
GetLogList proxy_event_log ${replace_starttime19} ${replace_endtime19} ${testClentIP} ${s} http_host www.hotelplanner.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.hotelplanner.com

View File

@@ -0,0 +1 @@
curl -kv https://www.stewart.com/en.html | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl http://www.waikikibeachwalk.com/Shops.htm | iconv -f utf-8 -t gbk
curl -kv http://www.waikikibeachwalk.com/Shops.htm | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl http://www.world-guides.com/north-america/usa/nevada/las-vegas/ | iconv -f utf-8 -t gbk
curl -kv http://www.world-guides.com/north-america/usa/nevada/las-vegas/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl http://news.cnstock.com/kcb | iconv -f utf-8 -t gbk
curl -kv http://news.cnstock.com/kcb | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl http://otc.newone.com.cn/cwyw| iconv -f utf-8 -t gbk
curl -kv http://otc.newone.com.cn/cwyw| iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.abercrombiekent.com/travel-destinations | iconv -f utf-8 -t gbk
curl -kv https://quote.com/home-insurance/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.summitpost.org/mountain/rock/ | iconv -f utf-8 -t gbk
curl -kv https://www.vystarcu.org/Products-Services/Lending-Loan-Protection/Auto-Recreational-Loans | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://gobackpacking.com/planning/accommodations/ | iconv -f utf-8 -t gbk
curl -kv https://secure.uwcu.org/Branch-ATM-Locations/Home/Search | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.visitguam.com/travel-trade/itineraries/| iconv -f utf-8 -t gbk
curl -kv https://www.cit.com/cit-bank/| iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://skift.com/news/ | iconv -f utf-8 -t gbk
curl -kv https://www.alaskausa.org/investment/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://eviivo.com/products/| iconv -f utf-8 -t gbk
curl -kv https://www.tradingtechnologies.com/infrastructure/| iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.dealbase.com/#flights-search | iconv -f utf-8 -t gbk
curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.merrilledge.com/investing/online-trading | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://www.portofstockton.com/docs-pdfs/ | iconv -f utf-8 -t gbk
curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' https://www.marketscreener.com/stock-analyses/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.marriottvacationclub.com/timeshare-ownership/about/ | iconv -f utf-8 -t gbk
curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.uwcu.org/about-us/become-a-member/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.bulgarihotels.com/zh_CN/ | iconv -f utf-8 -t gbk
curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.ufcu.org/personal/insurance/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.polb.com/environment/shore-power#shore-power-program-details | iconv -f utf-8 -t gbk
curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.investors-trust.com/products/product-type/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.egencia.com/public/us/ | iconv -f utf-8 -t gbk
curl -kv https://www.monticello.org/visit/tickets-tours/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.concur.com/en-us/concur-hipmunk-faq | iconv -f utf-8 -t gbk
curl -kv https://www.tripadvisor.com/Attractions-g60763-Activities-New_York_City_New_York.html | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.uptake.com/industry-solutions/energy | iconv -f utf-8 -t gbk
curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.equifax.com/personal/ | iconv -f utf-8 -t gbk