策略验证修改,添加GTP相关对象以及增加命中策略状态判断

This commit is contained in:
hebingning
2021-05-24 09:23:24 +08:00
parent a151dab240
commit 3007ccb543
31 changed files with 1126 additions and 422 deletions

View File

@@ -45,7 +45,7 @@ SecurityPolicy-Allow-Ssl-00002
${objectDict} Create Dictionary objectType=fqdn objectSubType=fqdn isValid=${1} addItemList=${addItemLists} ${objectDict} Create Dictionary objectType=fqdn objectSubType=fqdn isValid=${1} addItemList=${addItemLists}
${rescode} ${objectId1} AddObjects ${1} ${objectDict} ${rescode} ${objectId1} AddObjects ${1} ${objectDict}
Comment 创建categories Comment 创建categories
${addItemList1} Create Dictionary fqdn=*protonmail.com ${addItemList1} Create Dictionary fqdn=*protomail.com
${addItemLists} Create list ${addItemList1} ${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary categoryType=fqdn categoryName=youxiang objectSubType=category isValid=${1} fqdnList=${addItemLists} ${objectDict} Create Dictionary categoryType=fqdn categoryName=youxiang objectSubType=category isValid=${1} fqdnList=${addItemLists}
${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} add 200 ${rescode} ${categoryObjId} ${categoryId} AddCategories ${1} ${objectDict} add 200

View File

@@ -42,7 +42,6 @@ SecurityPolicy-Deny-Dns-00001
SecurityPolicy-Deny-Dns-00002 SecurityPolicy-Deny-Dns-00002
[Tags] cat右和完整匹配 [Tags] cat右和完整匹配
${iniCatId} GetIniCategoryId cdn
Comment 创建fqdn Comment 创建fqdn
${addItemList1} Create Dictionary keywordArray=*arctictrucks.ru isHexbin=${0} ${addItemList1} Create Dictionary keywordArray=*arctictrucks.ru isHexbin=${0}
${addItemList2} Create Dictionary keywordArray=*wifika.ru isHexbin=${0} ${addItemList2} Create Dictionary keywordArray=*wifika.ru isHexbin=${0}
@@ -50,7 +49,7 @@ SecurityPolicy-Deny-Dns-00002
${objectDict} Create Dictionary objectType=fqdn objectSubType=fqdn isValid=${1} addItemList=${addItemLists} ${objectDict} Create Dictionary objectType=fqdn objectSubType=fqdn isValid=${1} addItemList=${addItemLists}
${rescode} ${objectId} AddObjects ${1} ${objectDict} ${rescode} ${objectId} AddObjects ${1} ${objectDict}
Comment 创建安全策略 Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Dns-00002 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"DNS","method":"redirect","resolution":[{"qtype":"A","answer":[{"atype":"CNAME","value":"www.jd.com","ttl":{"min":500,"max":500}},{"atype":"A","value":"192.168.41.186","ttl":{"min":300,"max":300}}]}]} filterList=${iniCatId}|TSG_FIELD_DNS_QNAME,${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=${DNS_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Dns-00002 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"DNS","method":"redirect","resolution":[{"qtype":"A","answer":[{"atype":"CNAME","value":"www.jd.com","ttl":{"min":500,"max":500}},{"atype":"A","value":"192.168.41.186","ttl":{"min":300,"max":300}}]}]} filterList=${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=${DNS_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId} ${policyId} Get-Pids ${policyId}
@@ -77,7 +76,6 @@ SecurityPolicy-Deny-Dns-00003
SecurityPolicy-Deny-Dns-00004 SecurityPolicy-Deny-Dns-00004
[Tags] fqdn右匹配 destination:iplearning update fqdn [Tags] fqdn右匹配 destination:iplearning update fqdn
Comment 本用例引用的destination是ip learning学习到的数据为保证后续步骤可以执行destination需要引用已经存在的ip learning
Comment 创建fqdn1 Comment 创建fqdn1
${addItemList1} Create Dictionary keywordArray=*twitch.tv isHexbin=${0} ${addItemList1} Create Dictionary keywordArray=*twitch.tv isHexbin=${0}
${addItemLists} Create list ${addItemList1} ${addItemLists} Create list ${addItemList1}

View File

@@ -54,9 +54,9 @@ Proxy-Policy-deny-00001
insert_policyId_to_file1 deny_policyId ${policyId2} insert_policyId_to_file1 deny_policyId ${policyId2}
Proxy-Policy-deny-00002 Proxy-Policy-deny-00002
[Tags] fqdn_category [Tags] deny
Comment 创建fqdn Comment 创建fqdn
${addItemList1} Create Dictionary keywordArray=*kingidentity.com isHexbin=${0} ${addItemList1} Create Dictionary keywordArray=*www.youku.com isHexbin=${0}
${addItemLists} Create list ${addItemList1} ${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=fqdn objectSubType=fqdn isValid=${1} addItemList=${addItemLists} ${objectDict} Create Dictionary objectType=fqdn objectSubType=fqdn isValid=${1} addItemList=${addItemLists}
${rescode} ${objectId} AddObjects ${1} ${objectDict} ${rescode} ${objectId} AddObjects ${1} ${objectDict}

View File

@@ -94,6 +94,7 @@ Proxy-Policy-insert-00002
insert_policyId_to_file1 insert_profileId1 ${profiledId} insert_policyId_to_file1 insert_profileId1 ${profiledId}
insert_policyId_to_file1 insert_objectId1 ${objectId} insert_policyId_to_file1 insert_objectId1 ${objectId}
insert_policyId_to_file1 insert_objectId40 ${objectId1} insert_policyId_to_file1 insert_objectId40 ${objectId1}
insert_policyId_to_file1 insert_webphoneCatId ${objectId}
insert_policyId_to_file1 intercept_insert_policyId1 ${policyId1} insert_policyId_to_file1 intercept_insert_policyId1 ${policyId1}
insert_policyId_to_file1 insert_policyId1 ${policyId2} insert_policyId_to_file1 insert_policyId1 ${policyId2}
@@ -211,7 +212,7 @@ Proxy-Policy-insert-00005
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment 创建拦截策略 Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert 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=${SSL_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-05 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=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}
@@ -250,7 +251,7 @@ Proxy-Policy-insert-00006
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment 创建拦截策略 Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert 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=${SSL_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-06 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=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}
@@ -292,7 +293,7 @@ Proxy-Policy-insert-00007
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment 创建拦截策略 Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert 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=${SSL_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-07 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=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}
@@ -376,7 +377,7 @@ Proxy-Policy-insert-00009
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment Comment 创建拦截策略 Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-09 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}
@@ -415,7 +416,7 @@ Proxy-Policy-insert-00010
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment Comment 创建拦截策略 Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-10 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}
@@ -454,7 +455,7 @@ Proxy-Policy-insert-00011
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment Comment 创建拦截策略 Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-11 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}
@@ -493,7 +494,7 @@ Proxy-Policy-insert-00012
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment 创建拦截策略 Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert 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=${SSL_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-12 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=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}
@@ -547,7 +548,7 @@ Proxy-Policy-insert-00013
${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert ${response} CreatePolicyFile2 ${url} ${path}/insert_files/ Create-Insert Scripts-test-1.js insert
${profiledId} Get From Dictionary ${response} profileId ${profiledId} Get From Dictionary ${response} profileId
Comment 创建拦截策略 Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert 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=${SSL_ID} ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-insert-13 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=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
${policyId1} Get-Pids ${policyId1} ${policyId1} Get-Pids ${policyId1}

View File

@@ -32,7 +32,7 @@ SecurityPolicy-Allow-Ssl-00001
SecurityPolicy-Allow-Ssl-00002 SecurityPolicy-Allow-Ssl-00002
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00002.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00002.bat
... ELSE set variable curl -kv https://protonmail.com/ ... ELSE set variable curl -kv https://protomail.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Secure email ${stringlist} run keyword if '${systemType}'=='Windows' Create List Secure email
... ELSE Create List Secure email ... ELSE Create List Secure email
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -40,7 +40,7 @@ SecurityPolicy-Allow-Ssl-00002
${policyDict} Create Dictionary policyId=${allow_ssl_policyId1} policyName=SecurityPolicy-Allow-Ssl-00002-1 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"SSL"} filterList=${allow_ssl_objectId3}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID} ${policyDict} Create Dictionary policyId=${allow_ssl_policyId1} policyName=SecurityPolicy-Allow-Ssl-00002-1 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"SSL"} filterList=${allow_ssl_objectId3}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update ${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 5 sleep ${policyModifySleepSeconds}
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00002_1.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00002_1.bat
... ELSE set variable curl -kv https://xinyue.qq.com/#/ ... ELSE set variable curl -kv https://xinyue.qq.com/#/

View File

@@ -179,7 +179,7 @@ Proxy-Policy-allow-00013
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_1.bat ${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 ... ELSE set variable curl -kv https://tytbz.925mm.com/page/about.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 贴壁纸联盟 Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List 璐村 Tango Secure Gateway CA
... ELSE Create List 贴壁纸联盟 Tango Secure Gateway CA ... ELSE Create List 贴壁纸联盟 Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证

View File

@@ -34,23 +34,24 @@ SecurityPolicy-Allow-Http-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.66rpg.com"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.66rpg.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.66rpg.com"} ${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.66rpg.com"} ${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.66rpg.com"} ${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${qname_fqdn_id} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.66rpg.com"} ${qname_fqdn_id} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.66rpg.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${qname_fqdn_id} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${qname_fqdn_id} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_http_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${allow_http_objectId4} ${objectid_verify} Set Variable ${allow_http_objectId4}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_http_objectId5} ${allow_http_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_http_objectId5} ${allow_http_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -63,6 +64,9 @@ SecurityPolicy-Allow-Http-00001
SecurityPolicy-Allow-Http-00002 SecurityPolicy-Allow-Http-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.xiang5.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.xiang5.com/"}
${qname_fqdn_id} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.xiang5.com"} ${qname_fqdn_id} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.xiang5.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -70,14 +74,15 @@ SecurityPolicy-Allow-Http-00002
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${qname_fqdn_id} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${qname_fqdn_id} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_http_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${allow_http_objectId7} ${objectid_verify} Set Variable ${allow_http_objectId7}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_http_objectId8} ${allow_http_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_http_objectId8} ${allow_http_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -33,20 +33,24 @@ ${objectids} ${EMPTY}
SecurityPolicy-Allow-Ssl-00001 SecurityPolicy-Allow-Ssl-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "huawei.com"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "homebank.kz"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "homebank.kz"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_ssl_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_ssl_objectId} ${allow_ssl_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_ssl_objectId} ${allow_ssl_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -59,20 +63,24 @@ SecurityPolicy-Allow-Ssl-00001
SecurityPolicy-Allow-Ssl-00002 SecurityPolicy-Allow-Ssl-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "hahauawei.org"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "xinyue.qq.com"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "xinyue.qq.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_ssl_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_ssl_objectId3} ${allow_ssl_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_ssl_objectId3} ${allow_ssl_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -33,20 +33,24 @@ ${objectids} ${EMPTY}
Proxy-Policy-allow-00001 Proxy-Policy-allow-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mp.pipix.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mp.pipix.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId39} ${allow_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId39} ${allow_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -59,20 +63,24 @@ Proxy-Policy-allow-00001
Proxy-Policy-allow-00002 Proxy-Policy-allow-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.feishu.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.feishu.cn"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId1} ${allow_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId1} ${allow_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -85,6 +93,9 @@ Proxy-Policy-allow-00002
Proxy-Policy-allow-00003 Proxy-Policy-allow-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "csgo500.com"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "csgo500.com"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "znakitaro.ru"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "znakitaro.ru"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "astrou.ru"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "astrou.ru"}
@@ -98,14 +109,16 @@ Proxy-Policy-allow-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4}
... ${url1} ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId2} ${allow_objectId3} ${allow_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId2} ${allow_objectId3} ${allow_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -118,6 +131,9 @@ Proxy-Policy-allow-00003
Proxy-Policy-allow-00004 Proxy-Policy-allow-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hao123.com"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hao123.com"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfsdafsafsafsfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfsdafsafsafsfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -125,14 +141,15 @@ Proxy-Policy-allow-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId40} ${allow_objectId41} ${allow_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId40} ${allow_objectId41} ${allow_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -145,6 +162,9 @@ Proxy-Policy-allow-00004
Proxy-Policy-allow-00005 Proxy-Policy-allow-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "boutiquehotel.me"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "boutiquehotel.me"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "boutiquehotel.me/paris/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "boutiquehotel.me/paris/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0aaffwefweaf","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0aaffwefweaf","district": "User-Agent"}
@@ -153,14 +173,15 @@ Proxy-Policy-allow-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId7} ${allow_objectId8} ${allow_objectId9} ${allow_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId7} ${allow_objectId8} ${allow_objectId9} ${allow_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -173,6 +194,9 @@ Proxy-Policy-allow-00005
Proxy-Policy-allow-00006 Proxy-Policy-allow-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.choicehotels.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.choicehotels.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.choicehotels.com/quality-inn"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.choicehotels.com/quality-inn"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"}
@@ -181,14 +205,16 @@ Proxy-Policy-allow-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId10} ${allow_objectId11} ${allow_objectId12} ${allow_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId10} ${allow_objectId11} ${allow_objectId12} ${allow_policyId5}
... ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -201,6 +227,9 @@ Proxy-Policy-allow-00006
Proxy-Policy-allow-00007 Proxy-Policy-allow-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.woodsnap.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.woodsnap.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.woodsnap.com/about-us/frames"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.woodsnap.com/about-us/frames"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"}
@@ -209,14 +238,16 @@ Proxy-Policy-allow-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId13} ${allow_objectId14} ${allow_objectId15} ${allow_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId13} ${allow_objectId14} ${allow_objectId15} ${allow_policyId6} ${object_imsi_id}
... ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -229,6 +260,9 @@ Proxy-Policy-allow-00007
Proxy-Policy-allow-00008 Proxy-Policy-allow-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.sse.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.sse.com.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.sse.com.cn/market/overview/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.sse.com.cn/market/overview/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "666html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "666html","district": "Content-Type"}
@@ -237,14 +271,15 @@ Proxy-Policy-allow-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId16} ${allow_objectId17} ${allow_objectId18} ${allow_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId16} ${allow_objectId17} ${allow_objectId18} ${allow_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -257,6 +292,9 @@ Proxy-Policy-allow-00008
Proxy-Policy-allow-00009 Proxy-Policy-allow-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.szse.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.szse.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.szse.cn/lawrules/index.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.szse.cn/lawrules/index.html"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -265,14 +303,16 @@ Proxy-Policy-allow-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId19} ${allow_objectId20} ${allow_objectId21} ${allow_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId19} ${allow_objectId20} ${allow_objectId21}
... ${allow_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -285,6 +325,9 @@ Proxy-Policy-allow-00009
Proxy-Policy-allow-000010 Proxy-Policy-allow-000010
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gf.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gf.com.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gf.com.cn/about/intro"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gf.com.cn/about/intro"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -293,14 +336,15 @@ Proxy-Policy-allow-000010
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId9}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId22} ${allow_objectId23} ${allow_objectId24} ${allow_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId22} ${allow_objectId23} ${allow_objectId24} ${allow_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -313,6 +357,9 @@ Proxy-Policy-allow-000010
Proxy-Policy-allow-000011 Proxy-Policy-allow-000011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.chinastock.com.cn/newsite/cgs-services/investBank.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.chinastock.com.cn/newsite/cgs-services/investBank.html"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -320,14 +367,15 @@ Proxy-Policy-allow-000011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId10}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId26} ${allow_objectId42} ${allow_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId26} ${allow_objectId42} ${allow_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -340,6 +388,9 @@ Proxy-Policy-allow-000011
Proxy-Policy-allow-000012 Proxy-Policy-allow-000012
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.virtuoso.com"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.virtuoso.com"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hongxiu.com"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hongxiu.com"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.readnovel.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.readnovel.com"}
@@ -358,14 +409,16 @@ Proxy-Policy-allow-000012
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${req_hdr_ck1} ${req_hdr_ck2} ${req_hdr_ck3} ${req_hdr_ck4} ${req_hdr_ck5} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4}
... ${req_hdr_ck1} ${req_hdr_ck2} ${req_hdr_ck3} ${req_hdr_ck4} ${req_hdr_ck5} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId11}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId28} ${allow_objectId29} ${allow_objectId30} ${allow_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId28} ${allow_objectId29} ${allow_objectId30} ${allow_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -378,6 +431,9 @@ Proxy-Policy-allow-000012
Proxy-Policy-allow-000013 Proxy-Policy-allow-000013
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "russia.payu.com"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "russia.payu.com"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tytbz.925mm.com"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tytbz.925mm.com"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "dujia.qunar.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "dujia.qunar.com"}
@@ -392,14 +448,15 @@ Proxy-Policy-allow-000013
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4}
... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId12}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId31} ${allow_objectId32} ${allow_policyId12} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId31} ${allow_objectId32} ${allow_policyId12} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -412,6 +469,9 @@ Proxy-Policy-allow-000013
Proxy-Policy-allow-000014 Proxy-Policy-allow-000014
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.orbitz.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.orbitz.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.orbitz.com/Flights"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.orbitz.com/Flights"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"}
@@ -423,14 +483,17 @@ Proxy-Policy-allow-000014
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${req_hdr_ua} ${req_hdr_ck} ${res_hdr_sc} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${req_hdr_ua} ${req_hdr_ck}
... ${res_hdr_sc} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${allow_policyId13}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId33} ${allow_objectId34} ${allow_objectId35} ${allow_objectId36} ${allow_objectId37} ${allow_objectId38} ${allow_policyId13} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${allow_objectId33} ${allow_objectId34} ${allow_objectId35} ${allow_objectId36}
... ${allow_objectId37} ${allow_objectId38} ${allow_policyId13} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -309,7 +309,7 @@ SecurityPolicy-Deny-Http-00020
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00020.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00020.bat
... ELSE set variable curl -kv --cookie "wdcid=69d512097f7e021c; uid=6fe4a07479b44464b2fc6aaea84dcc85; wdlast=1618453760" --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" --referer 'https://www.baidu.com/' \ http://www.xinhuanet.com/ ... ELSE set variable curl -kv --cookie "wdcid=69d512097f7e021c; uid=6fe4a07479b44464b2fc6aaea84dcc85; wdlast=1618453760" --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" --referer 'https://www.baidu.com/' \ http://www.xinhuanet.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset ${stringlist} run keyword if '${systemType}'=='Windows' Create List timed out
... ELSE Create List Connection reset by peer ... ELSE Create List timed out
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -17,15 +17,15 @@ Proxy-Policy-deny-00001
... ELSE Create List 重新开始 Tango Secure Gateway CA ... ELSE Create List 重新开始 Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 改变拦截策略 Comment 改变拦截策略
${policyDict} Create Dictionary policyId=${intercept_deny_policyId} policyName=SecurityPolicy-Intercept-replace-1 source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${deny_objectId57}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID} ${policyDict} Create Dictionary policyId=${intercept_deny_policyId} policyName=SecurityPolicy-Intercept-deny-1 source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${deny_objectId57}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update ${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 5 sleep ${policyModifySleepSeconds}
Comment 改变阻断策略 Comment 改变阻断策略
${policyDict} Create Dictionary policyId=${deny_policyId} source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-deny-00001-1 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","message":"重新开始","code":403,"protocol":"HTTP"} filterList=${deny_objectId57}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID} ${policyDict} Create Dictionary policyId=${deny_policyId} source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-deny-00001-1 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","message":"重新开始","code":403,"protocol":"HTTP"} filterList=${deny_objectId57}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict} log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update ${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 10 sleep ${policyModifySleepSeconds}
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00001.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00001.bat
... ELSE set variable curl -kv \ https://newsela.com/about/content/ ... ELSE set variable curl -kv \ https://newsela.com/about/content/
@@ -34,10 +34,10 @@ Proxy-Policy-deny-00001
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 范围性,使用后关闭 Comment 范围性,使用后关闭
Comment 改变拦截策略 Comment 改变拦截策略
${policyDict} Create Dictionary policyId=${intercept_deny_policyId} policyName=SecurityPolicy-Intercept-replace-1 source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${deny_objectId57}|TSG_FIELD_SSL_SNI isValid=${0} appIdObjects=${SSL_ID} ${policyDict} Create Dictionary policyId=${intercept_deny_policyId} policyName=SecurityPolicy-Intercept-deny-1 source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${deny_objectId57}|TSG_FIELD_SSL_SNI isValid=${0} appIdObjects=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update ${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 5 sleep ${policyModifySleepSeconds}
Comment 改变阻断策略 Comment 改变阻断策略
${policyDict} Create Dictionary policyId=${deny_policyId} source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-deny-00001-1 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","message":"重新开始","code":403,"protocol":"HTTP"} filterList=${deny_objectId57}|TSG_FIELD_HTTP_HOST isValid=${0} appIdObjects=${HTTP_ID} ${policyDict} Create Dictionary policyId=${deny_policyId} source=${deny_objectId56}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-deny-00001-1 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","message":"重新开始","code":403,"protocol":"HTTP"} filterList=${deny_objectId57}|TSG_FIELD_HTTP_HOST isValid=${0} appIdObjects=${HTTP_ID}
log ${policyDict} log ${policyDict}
@@ -46,7 +46,7 @@ Proxy-Policy-deny-00001
Proxy-Policy-deny-00002 Proxy-Policy-deny-00002
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00002.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00002.bat
... ELSE set variable curl -kv \ \ https://kingidentity.com/ ... ELSE set variable curl -kv \ \ https://www.youku.com/
${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 ${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 ... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -28,25 +28,30 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
*** Variables *** *** Variables ***
${policyIds} ${EMPTY} ${policyIds} ${EMPTY}
${objectids} ${EMPTY} ${objectids} ${EMPTY}
${categoriesId} ${EMPTY}
*** Test Cases *** *** Test Cases ***
SecurityPolicy-Deny-Dns-00001 SecurityPolicy-Deny-Dns-00001
# 新增策略验证 # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "hahauawei.org"}
${qname_fqdn_id1} Create Dictionary attributeType=string attributeName=qname appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "www.facebook.com"} ${qname_fqdn_id1} Create Dictionary attributeType=string attributeName=qname appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "www.facebook.com"}
${qname_fqdn_id2} Create Dictionary attributeType=string attributeName=qname appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "rutube.ru"} ${qname_fqdn_id2} Create Dictionary attributeType=string attributeName=qname appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "rutube.ru"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string":"${DNS_VID}" } ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string":"${DNS_VID}" }
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "252.252.252.252","port": "443","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "252.252.252.252","port": "443","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${qname_fqdn_id1} ${qname_fqdn_id2} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${qname_fqdn_id1} ${qname_fqdn_id2} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_dns_policyId}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${deny_dns_objectId} ${deny_dns_policyId} ${objectid_verify} Catenate SEPARATOR=, ${deny_dns_objectId} ${deny_dns_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
sleep 5 sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
@@ -57,19 +62,23 @@ SecurityPolicy-Deny-Dns-00001
SecurityPolicy-Deny-Dns-00002 SecurityPolicy-Deny-Dns-00002
# 新增策略验证 # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "huawei.com"}
${qname_fqdn_id} Create Dictionary attributeType=string attributeName=qname appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "www.arctictrucks.ru"} ${qname_fqdn_id} Create Dictionary attributeType=string attributeName=qname appId=${DNS_VID} appName=dns protocol=dns attributeValue={"string": "www.arctictrucks.ru"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string":"${DNS_VID}" } ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string":"${DNS_VID}" }
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "252.252.252.252","port": "443","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "252.252.252.252","port": "443","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${qname_fqdn_id} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${qname_fqdn_id} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_dns_policyId1}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${deny_dns_objectId1} ${deny_dns_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${deny_dns_objectId1} ${deny_dns_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
sleep 5 sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中

View File

@@ -33,21 +33,25 @@ ${objectids} ${EMPTY}
SecurityPolicy-Deny-Ftp-00001 SecurityPolicy-Deny-Ftp-00001
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "192.168.40.158/123456.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "192.168.40.158/123456.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "123456789qwertyuiop"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "123456789qwertyuiop"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ftp_policyId}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId13} ${deny_ftp_objectId14} ${deny_ftp_objectId15} ${deny_ftp_policyId} ${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId13} ${deny_ftp_objectId14} ${deny_ftp_objectId15} ${deny_ftp_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}
@@ -56,21 +60,25 @@ SecurityPolicy-Deny-Ftp-00001
SecurityPolicy-Deny-Ftp-00002 SecurityPolicy-Deny-Ftp-00002
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "192.168.40.158/test.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "192.168.40.158/test.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "中文test"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "中文test"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ftp_policyId1}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId3} ${deny_ftp_objectId4} ${deny_ftp_objectId5} ${deny_ftp_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId3} ${deny_ftp_objectId4} ${deny_ftp_objectId5} ${deny_ftp_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}
@@ -79,21 +87,25 @@ SecurityPolicy-Deny-Ftp-00002
SecurityPolicy-Deny-Ftp-00003 SecurityPolicy-Deny-Ftp-00003
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=ftp protocol=ftp attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=ftp protocol=ftp attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/wlcsy.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/wlcsy.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "中文文件内容"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "中文文件内容"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ftp_policyId2}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId6} ${deny_ftp_objectId7} ${deny_ftp_objectId8} ${deny_ftp_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId6} ${deny_ftp_objectId7} ${deny_ftp_objectId8} ${deny_ftp_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}
@@ -102,21 +114,25 @@ SecurityPolicy-Deny-Ftp-00003
SecurityPolicy-Deny-Ftp-00004 SecurityPolicy-Deny-Ftp-00004
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=ftp protocol=ftp attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=ftp protocol=ftp attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/aewn.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/aewn.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "завезенными"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "завезенными"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ftp_policyId3}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId9} ${deny_ftp_objectId10} ${deny_ftp_objectId11} ${deny_ftp_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${deny_ftp_objectId9} ${deny_ftp_objectId10} ${deny_ftp_objectId11} ${deny_ftp_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}

View File

@@ -33,20 +33,24 @@ ${objectids} ${EMPTY}
SecurityPolicy-Deny-Http-00001 SecurityPolicy-Deny-Http-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.lkong.net"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.lkong.net"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId36} ${deny_http_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId36} ${deny_http_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -59,20 +63,24 @@ SecurityPolicy-Deny-Http-00001
SecurityPolicy-Deny-Http-00002 SecurityPolicy-Deny-Http-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bellaircraftmuseum.org"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bellaircraftmuseum.org"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId1} ${deny_http_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId1} ${deny_http_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -83,6 +91,9 @@ SecurityPolicy-Deny-Http-00002
Should Be Equal As Strings ${ok} true Should Be Equal As Strings ${ok} true
SecurityPolicy-Deny-Http-00003 SecurityPolicy-Deny-Http-00003
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url1} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.icbc.com.cn/"} ${url1} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.icbc.com.cn/"}
${url2} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ccb.com/cn/home/indexv3.html"} ${url2} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ccb.com/cn/home/indexv3.html"}
${url3} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gotohoroscope.com/daily-horoscope.html"} ${url3} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gotohoroscope.com/daily-horoscope.html"}
@@ -92,14 +103,15 @@ SecurityPolicy-Deny-Http-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url1} ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId2} ${deny_http_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId2} ${deny_http_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -112,6 +124,9 @@ SecurityPolicy-Deny-Http-00003
SecurityPolicy-Deny-Http-00004 SecurityPolicy-Deny-Http-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tsutmb.ru/sveden"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tsutmb.ru/sveden"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -119,14 +134,15 @@ SecurityPolicy-Deny-Http-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId37} ${deny_http_objectId38} ${deny_http_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId37} ${deny_http_objectId38} ${deny_http_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -139,6 +155,9 @@ SecurityPolicy-Deny-Http-00004
SecurityPolicy-Deny-Http-00005 SecurityPolicy-Deny-Http-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.abchina.com/cn/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.abchina.com/cn/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -146,14 +165,15 @@ SecurityPolicy-Deny-Http-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId5} ${deny_http_objectId6} ${deny_http_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId5} ${deny_http_objectId6} ${deny_http_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -166,6 +186,9 @@ SecurityPolicy-Deny-Http-00005
SecurityPolicy-Deny-Http-00006 SecurityPolicy-Deny-Http-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "egypt.travel/ru"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "egypt.travel/ru"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -173,14 +196,15 @@ SecurityPolicy-Deny-Http-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId7} ${deny_http_objectId8} ${deny_http_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId7} ${deny_http_objectId8} ${deny_http_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -193,6 +217,9 @@ SecurityPolicy-Deny-Http-00006
SecurityPolicy-Deny-Http-00007 SecurityPolicy-Deny-Http-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gw.com.cn/download.shtml"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gw.com.cn/download.shtml"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Safari/537.36","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -200,14 +227,15 @@ SecurityPolicy-Deny-Http-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId9} ${deny_http_objectId10} ${deny_http_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId9} ${deny_http_objectId10} ${deny_http_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -220,6 +248,9 @@ SecurityPolicy-Deny-Http-00007
SecurityPolicy-Deny-Http-00008 SecurityPolicy-Deny-Http-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cmbchina.com/CmbQuesInfo/index.aspx"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cmbchina.com/CmbQuesInfo/index.aspx"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -227,14 +258,15 @@ SecurityPolicy-Deny-Http-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId11} ${deny_http_objectId39} ${deny_http_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId11} ${deny_http_objectId39} ${deny_http_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -247,6 +279,9 @@ SecurityPolicy-Deny-Http-00008
SecurityPolicy-Deny-Http-00009 SecurityPolicy-Deny-Http-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.skycn.com/soft/bangongruanjian.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.skycn.com/soft/bangongruanjian.html"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -254,14 +289,15 @@ SecurityPolicy-Deny-Http-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId13} ${deny_http_objectId14} ${deny_http_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId13} ${deny_http_objectId14} ${deny_http_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -274,6 +310,9 @@ SecurityPolicy-Deny-Http-00009
SecurityPolicy-Deny-Http-00011 SecurityPolicy-Deny-Http-00011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.finestquotes.com/quotesbyauthors.php"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.finestquotes.com/quotesbyauthors.php"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -281,14 +320,15 @@ SecurityPolicy-Deny-Http-00011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId10}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId17} ${deny_http_objectId18} ${deny_http_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId17} ${deny_http_objectId18} ${deny_http_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -302,20 +342,24 @@ SecurityPolicy-Deny-Http-00011
SecurityPolicy-Deny-Http-00015 SecurityPolicy-Deny-Http-00015
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${res_body} Create Dictionary attributeType=string attributeName=res_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "华彤集团官网"} ${res_body} Create Dictionary attributeType=string attributeName=res_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "华彤集团官网"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_body} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_body} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId14}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId41} ${deny_http_policyId14} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId41} ${deny_http_policyId14} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -328,6 +372,9 @@ SecurityPolicy-Deny-Http-00015
SecurityPolicy-Deny-Http-00017 SecurityPolicy-Deny-Http-00017
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "smspunch.net"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "smspunch.net"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "smspunch.net/send-free-sms.aspx"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "smspunch.net/send-free-sms.aspx"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "_ym_isad=2","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "_ym_isad=2","district": "Cookie"}
@@ -338,14 +385,16 @@ SecurityPolicy-Deny-Http-00017
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_body} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_body} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId16}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId28} ${deny_http_objectId29} ${deny_http_objectId30} ${deny_http_objectId31} ${deny_http_objectId32} ${deny_http_policyId16} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId28} ${deny_http_objectId29} ${deny_http_objectId30}
... ${deny_http_objectId31} ${deny_http_objectId32} ${deny_http_policyId16} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -358,20 +407,24 @@ SecurityPolicy-Deny-Http-00017
SecurityPolicy-Deny-Http-00018 SecurityPolicy-Deny-Http-00018
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hebbank.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hebbank.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"192.168.50.18","port":"100","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"192.168.50.18","port":"100","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_http_policyId17}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${deny_http_objectId33} ${objectid_verify} Set Variable ${deny_http_objectId33}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId34} ${deny_http_policyId17} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_http_objectId34} ${deny_http_policyId17} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -29,6 +29,9 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
SecurityPolicy-Deny-Mail-00001 SecurityPolicy-Deny-Mail-00001
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Простопорно"} ${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Простопорно"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -36,15 +39,16 @@ SecurityPolicy-Deny-Mail-00001
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${content_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${content_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId33} ${deny_mail_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId33} ${deny_mail_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -54,6 +58,9 @@ SecurityPolicy-Deny-Mail-00001
SecurityPolicy-Deny-Mail-00002 SecurityPolicy-Deny-Mail-00002
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "姬巍川测试文件内容Простопорно"} ${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "姬巍川测试文件内容Простопорно"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "BigTitle"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "BigTitle"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -61,15 +68,16 @@ SecurityPolicy-Deny-Mail-00002
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${att_content_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${subject_id} ${attributes} Create List ${att_content_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${subject_id} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId1}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId34} ${deny_mail_policyId1} ${deny_mail_objectId39} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId34} ${deny_mail_policyId1} ${deny_mail_objectId39} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -79,6 +87,9 @@ SecurityPolicy-Deny-Mail-00002
SecurityPolicy-Deny-Mail-00003 SecurityPolicy-Deny-Mail-00003
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "ПОРНОВИДЕО"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "ПОРНОВИДЕО"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -86,15 +97,16 @@ SecurityPolicy-Deny-Mail-00003
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId2}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId35} ${deny_mail_objectId36} ${deny_mail_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId35} ${deny_mail_objectId36} ${deny_mail_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -104,6 +116,9 @@ SecurityPolicy-Deny-Mail-00003
SecurityPolicy-Deny-Mail-00004 SecurityPolicy-Deny-Mail-00004
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "明天周末"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "明天周末"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -111,15 +126,16 @@ SecurityPolicy-Deny-Mail-00004
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId3}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId4} ${deny_mail_objectId5} ${deny_mail_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId4} ${deny_mail_objectId5} ${deny_mail_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -129,6 +145,9 @@ SecurityPolicy-Deny-Mail-00004
SecurityPolicy-Deny-Mail-00005 SecurityPolicy-Deny-Mail-00005
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1234567890"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1234567890"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -136,15 +155,16 @@ SecurityPolicy-Deny-Mail-00005
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId4}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId6} ${deny_mail_objectId7} ${deny_mail_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId6} ${deny_mail_objectId7} ${deny_mail_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -154,6 +174,9 @@ SecurityPolicy-Deny-Mail-00005
SecurityPolicy-Deny-Mail-00006 SecurityPolicy-Deny-Mail-00006
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "afternoon"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "afternoon"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -161,15 +184,16 @@ SecurityPolicy-Deny-Mail-00006
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId5}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId8} ${deny_mail_objectId9} ${deny_mail_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId8} ${deny_mail_objectId9} ${deny_mail_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -179,6 +203,9 @@ SecurityPolicy-Deny-Mail-00006
SecurityPolicy-Deny-Mail-00007 SecurityPolicy-Deny-Mail-00007
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Смотретьфильмыонлай"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Смотретьфильмыонлай"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -186,15 +213,16 @@ SecurityPolicy-Deny-Mail-00007
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId6}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId10} ${deny_mail_objectId11} ${deny_mail_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId10} ${deny_mail_objectId11} ${deny_mail_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -204,6 +232,9 @@ SecurityPolicy-Deny-Mail-00007
SecurityPolicy-Deny-Mail-00008 SecurityPolicy-Deny-Mail-00008
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "zxcvbnm"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "zxcvbnm"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -211,15 +242,16 @@ SecurityPolicy-Deny-Mail-00008
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId7}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId12} ${deny_mail_objectId13} ${deny_mail_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId12} ${deny_mail_objectId13} ${deny_mail_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -229,6 +261,9 @@ SecurityPolicy-Deny-Mail-00008
SecurityPolicy-Deny-Mail-00009 SecurityPolicy-Deny-Mail-00009
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "又是新的一天"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "又是新的一天"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -236,15 +271,16 @@ SecurityPolicy-Deny-Mail-00009
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId8}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId14} ${deny_mail_objectId15} ${deny_mail_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId14} ${deny_mail_objectId15} ${deny_mail_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -254,6 +290,9 @@ SecurityPolicy-Deny-Mail-00009
SecurityPolicy-Deny-Mail-00010 SecurityPolicy-Deny-Mail-00010
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "tomorrow"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "tomorrow"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -261,15 +300,16 @@ SecurityPolicy-Deny-Mail-00010
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId9}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId16} ${deny_mail_objectId17} ${deny_mail_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId16} ${deny_mail_objectId17} ${deny_mail_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -279,6 +319,9 @@ SecurityPolicy-Deny-Mail-00010
SecurityPolicy-Deny-Mail-00011 SecurityPolicy-Deny-Mail-00011
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "邮件发送失败"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "邮件发送失败"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -286,15 +329,16 @@ SecurityPolicy-Deny-Mail-00011
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId10}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId18} ${deny_mail_objectId19} ${deny_mail_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId18} ${deny_mail_objectId19} ${deny_mail_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -304,6 +348,9 @@ SecurityPolicy-Deny-Mail-00011
SecurityPolicy-Deny-Mail-00012 SecurityPolicy-Deny-Mail-00012
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Онлайнфильмывхоро"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Онлайнфильмывхоро"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -311,11 +358,12 @@ SecurityPolicy-Deny-Mail-00012
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId11}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
@@ -329,6 +377,9 @@ SecurityPolicy-Deny-Mail-00012
SecurityPolicy-Deny-Mail-00013 SecurityPolicy-Deny-Mail-00013
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "asdfghjkl"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "asdfghjkl"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -336,15 +387,16 @@ SecurityPolicy-Deny-Mail-00013
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId12}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId22} ${deny_mail_objectId23} ${deny_mail_policyId12} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId22} ${deny_mail_objectId23} ${deny_mail_policyId12} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -354,6 +406,9 @@ SecurityPolicy-Deny-Mail-00013
SecurityPolicy-Deny-Mail-00014 SecurityPolicy-Deny-Mail-00014
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "马上就要下班了"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "马上就要下班了"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning2021@163.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -361,15 +416,16 @@ SecurityPolicy-Deny-Mail-00014
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId13}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId24} ${deny_mail_objectId25} ${deny_mail_policyId13} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId24} ${deny_mail_objectId25} ${deny_mail_policyId13} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -379,6 +435,9 @@ SecurityPolicy-Deny-Mail-00014
SecurityPolicy-Deny-Mail-00015 SecurityPolicy-Deny-Mail-00015
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "人生路远及时行乐"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "人生路远及时行乐"}
${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "good"} ${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "good"}
${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Простопорно"} ${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Простопорно"}
@@ -390,15 +449,18 @@ SecurityPolicy-Deny-Mail-00015
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${content_id} ${att_content_id} ${from_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${account_id} ${attributes} Create List ${subject_id} ${content_id} ${att_content_id} ${from_id} ${to_id} ${app_id} ${ipsource} ${ipdestination}
... ${subscriberid} ${account_id} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${deny_mail_policyId14}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId26} ${deny_mail_objectId27} ${deny_mail_objectId28} ${deny_mail_objectId29} ${deny_mail_objectId30} ${deny_mail_objectId31} ${deny_mail_policyId14} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_mail_objectId26} ${deny_mail_objectId27} ${deny_mail_objectId28} ${deny_mail_objectId29} ${deny_mail_objectId30}
... ${deny_mail_objectId31} ${deny_mail_policyId14} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}

View File

@@ -29,20 +29,24 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
SecurityPolicy-Deny-Ssl-00001 SecurityPolicy-Deny-Ssl-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "hahauawei.org"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.cxwl.com"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.cxwl.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ssl_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId4} ${deny_ssl_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId4} ${deny_ssl_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -55,6 +59,9 @@ SecurityPolicy-Deny-Ssl-00001
SecurityPolicy-Deny-Ssl-00002 SecurityPolicy-Deny-Ssl-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "huawei.com"}
${sni1} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "amesweb.info"} ${sni1} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "amesweb.info"}
${sni2} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "rentar.com"} ${sni2} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "rentar.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
@@ -62,14 +69,15 @@ SecurityPolicy-Deny-Ssl-00002
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni2} ${sni1} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni2} ${sni1} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ssl_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId1} ${deny_ssl_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId1} ${deny_ssl_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -82,20 +90,24 @@ SecurityPolicy-Deny-Ssl-00002
SecurityPolicy-Deny-Ssl-00003 SecurityPolicy-Deny-Ssl-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "huawei.com"}
${sni1} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "austinama.org"} ${sni1} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "austinama.org"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni1} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni1} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ssl_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId2} ${deny_ssl_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId2} ${deny_ssl_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -108,6 +120,9 @@ SecurityPolicy-Deny-Ssl-00003
SecurityPolicy-Deny-Ssl-00004 SecurityPolicy-Deny-Ssl-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "huawei.com"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.prlib.ru"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.prlib.ru"}
${cn} Create Dictionary attributeType=string attributeName=cn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.prlib.ru"} ${cn} Create Dictionary attributeType=string attributeName=cn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.prlib.ru"}
${san} Create Dictionary attributeType=string attributeName=san appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.prlib.ru"} ${san} Create Dictionary attributeType=string attributeName=san appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.prlib.ru"}
@@ -116,14 +131,15 @@ SecurityPolicy-Deny-Ssl-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${cn} ${san} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${cn} ${san} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_ssl_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId3} ${deny_ssl_objectId6} ${deny_ssl_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_ssl_objectId3} ${deny_ssl_objectId6} ${deny_ssl_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -33,20 +33,24 @@ ${objectids} ${EMPTY}
Proxy-Policy-deny-00002 Proxy-Policy-deny-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "kingidentity.com"} ${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.youku.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId1} ${deny_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId1} ${deny_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -59,6 +63,9 @@ Proxy-Policy-deny-00002
Proxy-Policy-deny-00003 Proxy-Policy-deny-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.wimdu.de"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.wimdu.de"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "creativetravelgroup.com"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "creativetravelgroup.com"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hinabian.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hinabian.com"}
@@ -72,14 +79,16 @@ Proxy-Policy-deny-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4}
... ${url1} ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId2} ${deny_objectId3} ${deny_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId2} ${deny_objectId3} ${deny_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -92,6 +101,9 @@ Proxy-Policy-deny-00003
Proxy-Policy-deny-00004 Proxy-Policy-deny-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.nga.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.nga.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.nga.cn/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.nga.cn/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
@@ -100,14 +112,15 @@ Proxy-Policy-deny-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId48} ${deny_objectId49} ${deny_objectId50} ${deny_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId48} ${deny_objectId49} ${deny_objectId50} ${deny_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -120,6 +133,9 @@ Proxy-Policy-deny-00004
Proxy-Policy-deny-00005 Proxy-Policy-deny-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "americantesol.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "americantesol.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "americantesol.com/tesol-register.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "americantesol.com/tesol-register.html"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
@@ -128,14 +144,15 @@ Proxy-Policy-deny-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId7} ${deny_objectId8} ${deny_objectId9} ${deny_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId7} ${deny_objectId8} ${deny_objectId9} ${deny_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -148,6 +165,9 @@ Proxy-Policy-deny-00005
Proxy-Policy-deny-00006 Proxy-Policy-deny-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.playgroundsessions.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.playgroundsessions.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.playgroundsessions.com/about/software-features"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.playgroundsessions.com/about/software-features"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"}
@@ -156,14 +176,15 @@ Proxy-Policy-deny-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId10} ${deny_objectId11} ${deny_objectId12} ${deny_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId10} ${deny_objectId11} ${deny_objectId12} ${deny_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -176,6 +197,9 @@ Proxy-Policy-deny-00006
Proxy-Policy-deny-00007 Proxy-Policy-deny-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "peoplestalkradio.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "peoplestalkradio.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "peoplestalkradio.com/forums/register.php"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "peoplestalkradio.com/forums/register.php"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"}
@@ -184,14 +208,15 @@ Proxy-Policy-deny-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId13} ${deny_objectId14} ${deny_objectId15} ${deny_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId13} ${deny_objectId14} ${deny_objectId15} ${deny_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -204,6 +229,9 @@ Proxy-Policy-deny-00007
Proxy-Policy-deny-00008 Proxy-Policy-deny-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.tianya.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.tianya.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.tianya.cn/list-16-1.shtml"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bbs.tianya.cn/list-16-1.shtml"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -212,14 +240,15 @@ Proxy-Policy-deny-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId51} ${deny_objectId52} ${deny_objectId53} ${deny_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId51} ${deny_objectId52} ${deny_objectId53} ${deny_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -232,6 +261,9 @@ Proxy-Policy-deny-00008
Proxy-Policy-deny-00009 Proxy-Policy-deny-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cuctv.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cuctv.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cuctv.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cuctv.com/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"}
@@ -240,14 +272,15 @@ Proxy-Policy-deny-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId20} ${deny_objectId21} ${deny_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId20} ${deny_objectId21} ${deny_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -260,6 +293,9 @@ Proxy-Policy-deny-00009
Proxy-Policy-deny-000010 Proxy-Policy-deny-000010
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.duckduckmoose.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.duckduckmoose.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.duckduckmoose.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.duckduckmoose.com/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -268,14 +304,15 @@ Proxy-Policy-deny-000010
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId9}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId22} ${deny_objectId23} ${deny_objectId24} ${deny_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId22} ${deny_objectId23} ${deny_objectId24} ${deny_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -288,6 +325,9 @@ Proxy-Policy-deny-000010
Proxy-Policy-deny-000011 Proxy-Policy-deny-000011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tutcandy.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tutcandy.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tutcandy.com/2009/04/ai-sketch-to-vector-tutorial"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tutcandy.com/2009/04/ai-sketch-to-vector-tutorial"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -296,14 +336,15 @@ Proxy-Policy-deny-000011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId10}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId25} ${deny_objectId26} ${deny_objectId27} ${deny_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId25} ${deny_objectId26} ${deny_objectId27} ${deny_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -316,6 +357,9 @@ Proxy-Policy-deny-000011
Proxy-Policy-deny-000012 Proxy-Policy-deny-000012
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.youqulu.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.youqulu.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.youqulu.com/category/zixun"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.youqulu.com/category/zixun"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkeyfafghlh","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkeyfafghlh","district": "Cookie"}
@@ -324,14 +368,15 @@ Proxy-Policy-deny-000012
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId11}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId28} ${deny_objectId29} ${deny_objectId30} ${deny_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId28} ${deny_objectId29} ${deny_objectId30} ${deny_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -344,6 +389,9 @@ Proxy-Policy-deny-000012
Proxy-Policy-deny-000013 Proxy-Policy-deny-000013
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.nypl.org"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.nypl.org"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.thailand.com.co"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.thailand.com.co"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bj.zu.ke.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "bj.zu.ke.com"}
@@ -361,15 +409,15 @@ Proxy-Policy-deny-000013
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4}
... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId31} ${deny_objectId32} ${deny_objectId46} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId31} ${deny_objectId32} ${deny_objectId46} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -382,6 +430,9 @@ Proxy-Policy-deny-000013
Proxy-Policy-deny-000014 Proxy-Policy-deny-000014
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "open.node.com:180"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "open.node.com:180"}
${req_body} Create Dictionary attributeType=string attributeName=req_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "ProxydenyTest001402"} ${req_body} Create Dictionary attributeType=string attributeName=req_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "ProxydenyTest001402"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -389,14 +440,15 @@ Proxy-Policy-deny-000014
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${req_body} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${req_body} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId13}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId34} ${deny_objectId54} ${deny_policyId13} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId34} ${deny_objectId54} ${deny_policyId13} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -409,20 +461,24 @@ Proxy-Policy-deny-000014
Proxy-Policy-deny-000015 Proxy-Policy-deny-000015
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${res_body} Create Dictionary attributeType=string attributeName=res_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Proxydeny001502"} ${res_body} Create Dictionary attributeType=string attributeName=res_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Proxydeny001502"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_body} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_body} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId14}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId55} ${deny_policyId14} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId55} ${deny_policyId14} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -435,6 +491,9 @@ Proxy-Policy-deny-000015
Proxy-Policy-deny-000016 Proxy-Policy-deny-000016
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mt.meipai.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mt.meipai.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mt.meipai.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mt.meipai.com/"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -442,14 +501,15 @@ Proxy-Policy-deny-000016
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId17}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId58} ${deny_objectId47} ${deny_policyId17} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId58} ${deny_objectId47} ${deny_policyId17} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -462,6 +522,9 @@ Proxy-Policy-deny-000016
Proxy-Policy-deny-000018 Proxy-Policy-deny-000018
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.umusicpub.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.umusicpub.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.umusicpub.com/au/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.umusicpub.com/au/"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "timezoneoffset","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "timezoneoffset","district": "Cookie"}
@@ -472,14 +535,15 @@ Proxy-Policy-deny-000018
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_body} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_body} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${deny_policyId16}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId41} ${deny_objectId42} ${deny_objectId43} ${deny_objectId44} ${deny_objectId45} ${deny_policyId16} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${deny_objectId41} ${deny_objectId42} ${deny_objectId43} ${deny_objectId44} ${deny_objectId45} ${deny_policyId16} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -34,6 +34,9 @@ ${objectids} ${EMPTY}
Proxy-Policy-hijack-00002 Proxy-Policy-hijack-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.uqur.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.uqur.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.uqur.cn/index_0.shtml"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.uqur.cn/index_0.shtml"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -41,14 +44,15 @@ Proxy-Policy-hijack-00002
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId1} ${hijack_objectId40} ${hijack_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId1} ${hijack_objectId40} ${hijack_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -61,6 +65,9 @@ Proxy-Policy-hijack-00002
Proxy-Policy-hijack-00003 Proxy-Policy-hijack-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.lexus.ru"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.lexus.ru"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "oktrucking.org"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "oktrucking.org"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.federalsignal.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.federalsignal.com"}
@@ -74,14 +81,16 @@ Proxy-Policy-hijack-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1}
... ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId2} ${hijack_objectId3} ${hijack_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId2} ${hijack_objectId3} ${hijack_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -94,6 +103,9 @@ Proxy-Policy-hijack-00003
Proxy-Policy-hijack-00004 Proxy-Policy-hijack-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.huoshan.com/greenlive/union_hall/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.huoshan.com/greenlive/union_hall/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -101,14 +113,15 @@ Proxy-Policy-hijack-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId44} ${hijack_objectId45} ${hijack_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId44} ${hijack_objectId45} ${hijack_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -121,6 +134,9 @@ Proxy-Policy-hijack-00004
Proxy-Policy-hijack-00005 Proxy-Policy-hijack-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ixigua.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ixigua.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ixigua.com/channel/dianying/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ixigua.com/channel/dianying/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
@@ -129,14 +145,15 @@ Proxy-Policy-hijack-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId7} ${hijack_objectId8} ${hijack_objectId9} ${hijack_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId7} ${hijack_objectId8} ${hijack_objectId9} ${hijack_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -149,6 +166,9 @@ Proxy-Policy-hijack-00005
Proxy-Policy-hijack-00006 Proxy-Policy-hijack-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dcdapp.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dcdapp.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dcdapp.com/?zt=dongchediapp"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dcdapp.com/?zt=dongchediapp"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"}
@@ -157,14 +177,15 @@ Proxy-Policy-hijack-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId10} ${hijack_objectId11} ${hijack_objectId12} ${hijack_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId10} ${hijack_objectId11} ${hijack_objectId12} ${hijack_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -177,6 +198,12 @@ Proxy-Policy-hijack-00006
Proxy-Policy-hijack-00007 Proxy-Policy-hijack-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gogokid.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gogokid.com.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gogokid.com.cn/teacher"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gogokid.com.cn/teacher"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"}
@@ -185,14 +212,15 @@ Proxy-Policy-hijack-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId13} ${hijack_objectId14} ${hijack_objectId15} ${hijack_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId13} ${hijack_objectId14} ${hijack_objectId15} ${hijack_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -205,6 +233,9 @@ Proxy-Policy-hijack-00007
Proxy-Policy-hijack-00008 Proxy-Policy-hijack-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.mafengwo.cn/mdd/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.mafengwo.cn/mdd/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -212,14 +243,15 @@ Proxy-Policy-hijack-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId17} ${hijack_objectId46} ${hijack_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId17} ${hijack_objectId46} ${hijack_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -232,6 +264,9 @@ Proxy-Policy-hijack-00008
Proxy-Policy-hijack-00009 Proxy-Policy-hijack-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "quote.hexun.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "quote.hexun.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "quote.hexun.com/default.htm#forex"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "quote.hexun.com/default.htm#forex"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -240,14 +275,15 @@ Proxy-Policy-hijack-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId19} ${hijack_objectId20} ${hijack_objectId21} ${hijack_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId19} ${hijack_objectId20} ${hijack_objectId21} ${hijack_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -260,6 +296,9 @@ Proxy-Policy-hijack-00009
Proxy-Policy-hijack-000010 Proxy-Policy-hijack-000010
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "chaxun.1616.net"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "chaxun.1616.net"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "chaxun.1616.net/jiemeng.htm"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "chaxun.1616.net/jiemeng.htm"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -268,14 +307,15 @@ Proxy-Policy-hijack-000010
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId9}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId22} ${hijack_objectId23} ${hijack_objectId24} ${hijack_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId22} ${hijack_objectId23} ${hijack_objectId24} ${hijack_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -289,6 +329,9 @@ Proxy-Policy-hijack-000010
Proxy-Policy-hijack-000012 Proxy-Policy-hijack-000012
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.reval.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.reval.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.reval.com/corporates/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.reval.com/corporates/"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkeyfafghlh","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkeyfafghlh","district": "Cookie"}
@@ -297,14 +340,15 @@ Proxy-Policy-hijack-000012
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId11}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId28} ${hijack_objectId29} ${hijack_objectId30} ${hijack_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId28} ${hijack_objectId29} ${hijack_objectId30} ${hijack_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -317,6 +361,9 @@ Proxy-Policy-hijack-000012
Proxy-Policy-hijack-000013 Proxy-Policy-hijack-000013
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "nsscreencast.com"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "nsscreencast.com"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.edreams.net"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.edreams.net"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "boutiquehotel.me"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "boutiquehotel.me"}
@@ -335,14 +382,15 @@ Proxy-Policy-hijack-000013
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4}
... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId12}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId31} ${hijack_objectId32} ${hijack_objectId41} ${hijack_policyId12} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId31} ${hijack_objectId32} ${hijack_objectId41} ${hijack_policyId12} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -356,6 +404,9 @@ Proxy-Policy-hijack-000013
Proxy-Policy-hijack-000014 Proxy-Policy-hijack-000014
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.travelzoo.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.travelzoo.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.travelzoo.com/cn/collections/hotels/ihg-group-meta/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.travelzoo.com/cn/collections/hotels/ihg-group-meta/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"}
@@ -367,14 +418,15 @@ Proxy-Policy-hijack-000014
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_hdr_ct} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_hdr_ct} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${hijack_policyId13}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId33} ${hijack_objectId34} ${hijack_objectId35} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${hijack_objectId33} ${hijack_objectId34} ${hijack_objectId35} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
... ${hijack_objectId36} ${hijack_objectId37} ${hijack_objectId38} ${hijack_policyId13} ... ${hijack_objectId36} ${hijack_objectId37} ${hijack_objectId38} ${hijack_policyId13}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}

View File

@@ -150,7 +150,7 @@ Proxy-Policy-insert-00010
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00010.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00010.bat
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_insert_00010_L.bat ... ELSE set variable ${curlbatpath}/command/ProxyPolicy_insert_00010_L.bat
${stringlist} run keyword if '${systemType}'=='Windows' Create List alert ${stringlist} run keyword if '${systemType}'=='Windows' Create List tfe/4.5.01-91facad
... ELSE Create List tfe/4.3.30 ... ELSE Create List tfe/4.3.30
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -33,21 +33,25 @@ ${objectids} ${EMPTY}
Proxy-Policy-insert-00002 Proxy-Policy-insert-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.meilleurmobile.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.meilleurmobile.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.meilleurmobile.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.meilleurmobile.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId1} ${insert_objectId40} ${insert_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId40} ${insert_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -60,6 +64,9 @@ Proxy-Policy-insert-00002
Proxy-Policy-insert-00003 Proxy-Policy-insert-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "scottsdalepublicart.org"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "scottsdalepublicart.org"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.troop508.org"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.troop508.org"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "dreamdayoncapecod.wordpress.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "dreamdayoncapecod.wordpress.com"}
@@ -73,14 +80,15 @@ Proxy-Policy-insert-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId2} ${insert_objectId3} ${insert_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId2} ${insert_objectId3} ${insert_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -93,6 +101,9 @@ Proxy-Policy-insert-00003
Proxy-Policy-insert-00004 Proxy-Policy-insert-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.viator.com/login?login_redirect=%2Faccount%2Fbookings"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.viator.com/login?login_redirect=%2Faccount%2Fbookings"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -100,14 +111,15 @@ Proxy-Policy-insert-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId43} ${insert_objectId44} ${insert_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId43} ${insert_objectId44} ${insert_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -120,6 +132,9 @@ Proxy-Policy-insert-00004
Proxy-Policy-insert-00005 Proxy-Policy-insert-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "matadornetwork.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "matadornetwork.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "matadornetwork.com/destinations/north-america/united-states/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "matadornetwork.com/destinations/north-america/united-states/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
@@ -128,14 +143,15 @@ Proxy-Policy-insert-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId7} ${insert_objectId8} ${insert_objectId9} ${insert_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId7} ${insert_objectId8} ${insert_objectId9} ${insert_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -148,6 +164,9 @@ Proxy-Policy-insert-00005
Proxy-Policy-insert-00006 Proxy-Policy-insert-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.farecompare.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.farecompare.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.farecompare.com/hotels/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.farecompare.com/hotels/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozillasssaaa","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozillasssaaa","district": "User-Agent"}
@@ -156,14 +175,15 @@ Proxy-Policy-insert-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId10} ${insert_objectId11} ${insert_objectId12} ${insert_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId10} ${insert_objectId11} ${insert_objectId12} ${insert_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -176,6 +196,9 @@ Proxy-Policy-insert-00006
Proxy-Policy-insert-00007 Proxy-Policy-insert-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tripit.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tripit.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tripit.com/web"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tripit.com/web"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"}
@@ -184,14 +207,15 @@ Proxy-Policy-insert-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId13} ${insert_objectId14} ${insert_objectId15} ${insert_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId13} ${insert_objectId14} ${insert_objectId15} ${insert_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -204,6 +228,9 @@ Proxy-Policy-insert-00007
Proxy-Policy-insert-00008 Proxy-Policy-insert-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.waikikibeachwalk.com/Shops.htm"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.waikikibeachwalk.com/Shops.htm"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -211,14 +238,15 @@ Proxy-Policy-insert-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId17} ${insert_objectId45} ${insert_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId17} ${insert_objectId45} ${insert_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -231,6 +259,9 @@ Proxy-Policy-insert-00008
Proxy-Policy-insert-00009 Proxy-Policy-insert-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.world-guides.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.world-guides.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.world-guides.com/north-america/usa/nevada/las-vegas/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.world-guides.com/north-america/usa/nevada/las-vegas/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -239,14 +270,15 @@ Proxy-Policy-insert-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId19} ${insert_objectId20} ${insert_objectId21} ${insert_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId19} ${insert_objectId20} ${insert_objectId21} ${insert_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -259,6 +291,9 @@ Proxy-Policy-insert-00009
Proxy-Policy-insert-00010 Proxy-Policy-insert-00010
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "news.cnstock.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "news.cnstock.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "news.cnstock.com/kcb"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "news.cnstock.com/kcb"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -267,14 +302,15 @@ Proxy-Policy-insert-00010
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId9}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId22} ${insert_objectId23} ${insert_objectId24} ${insert_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId22} ${insert_objectId23} ${insert_objectId24} ${insert_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -287,6 +323,9 @@ Proxy-Policy-insert-00010
Proxy-Policy-insert-00011 Proxy-Policy-insert-00011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "otc.newone.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "otc.newone.com.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "otc.newone.com.cn/cwyw"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "otc.newone.com.cn/cwyw"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -295,14 +334,15 @@ Proxy-Policy-insert-00011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId10}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId25} ${insert_objectId26} ${insert_objectId27} ${insert_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId25} ${insert_objectId26} ${insert_objectId27} ${insert_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -315,6 +355,9 @@ Proxy-Policy-insert-00011
Proxy-Policy-insert-00012 Proxy-Policy-insert-00012
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "petapixel.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "petapixel.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "petapixel.com/topic/equipment/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "petapixel.com/topic/equipment/"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkey","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkey","district": "Cookie"}
@@ -323,14 +366,15 @@ Proxy-Policy-insert-00012
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId11}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId28} ${insert_objectId29} ${insert_objectId30} ${insert_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId28} ${insert_objectId29} ${insert_objectId30} ${insert_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -343,6 +387,9 @@ Proxy-Policy-insert-00012
Proxy-Policy-insert-00013 Proxy-Policy-insert-00013
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.intervalworld.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.intervalworld.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.intervalworld.com/web/my/home"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.intervalworld.com/web/my/home"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"}
@@ -354,15 +401,17 @@ Proxy-Policy-insert-00013
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${imsi_id} ${phone_number_id} ${apn_id}
... ${res_hdr_ct} ${req_hdr_ua} ... ${res_hdr_ct} ${req_hdr_ua}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${insert_policyId13}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId33} ${insert_objectId34} ${insert_objectId35} ${insert_objectId36} ${insert_objectId37} ${insert_policyId13} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${insert_objectId33} ${insert_objectId34} ${insert_objectId35} ${insert_objectId36}
... ${insert_objectId37} ${insert_policyId13} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -29,20 +29,24 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
SecurityPolicy-Intercept-Http-00001 SecurityPolicy-Intercept-Http-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.yumi.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.yumi.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${intercept_http_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${intercept_http_objectId1} ${intercept_http_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${intercept_http_objectId1} ${intercept_http_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -55,20 +59,24 @@ SecurityPolicy-Intercept-Http-00001
SecurityPolicy-Intercept-Http-00002 SecurityPolicy-Intercept-Http-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mbzponton.org"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "mbzponton.org"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${intercept_http_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${intercept_http_objectId6} ${intercept_http_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${intercept_http_objectId6} ${intercept_http_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -30,20 +30,24 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
SecurityPolicy-Intercept-Ssl-00002 SecurityPolicy-Intercept-Ssl-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=http protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=http protocol=ssl attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=http protocol=ssl attributeValue={"string": "hahauawei.org"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "fenopy.se"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "fenopy.se"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${intercept_http_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${intercept_ssl_objectId2} ${intercept_ssl_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${intercept_ssl_objectId2} ${intercept_ssl_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -28,21 +28,26 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
SecurityPolicy-Monitor-Ftp-00001 SecurityPolicy-Monitor-Ftp-00001
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/123zxcvbnm.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/123zxcvbnm.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "crfvtgbyhnuj"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "crfvtgbyhnuj"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_ftp_policyId}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId13} ${monitor_ftp_objectId14} ${monitor_ftp_objectId15} ${monitor_ftp_policyId} ${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId13} ${monitor_ftp_objectId14} ${monitor_ftp_objectId15}
... ${monitor_ftp_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}
@@ -51,21 +56,26 @@ SecurityPolicy-Monitor-Ftp-00001
SecurityPolicy-Monitor-Ftp-00002 SecurityPolicy-Monitor-Ftp-00002
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/stamp.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/stamp.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "Shandong Province"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "Shandong Province"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_ftp_policyId1}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId3} ${monitor_ftp_objectId4} ${monitor_ftp_objectId5} ${monitor_ftp_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId3} ${monitor_ftp_objectId4} ${monitor_ftp_objectId5}
... ${monitor_ftp_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}
@@ -75,21 +85,26 @@ SecurityPolicy-Monitor-Ftp-00002
SecurityPolicy-Monitor-Ftp-00003 SecurityPolicy-Monitor-Ftp-00003
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/qwert.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/qwert.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "花好听的名字"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "花好听的名字"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_ftp_policyId2}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId6} ${monitor_ftp_objectId7} ${monitor_ftp_objectId8} ${monitor_ftp_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId6} ${monitor_ftp_objectId7} ${monitor_ftp_objectId8}
... ${monitor_ftp_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}
@@ -98,21 +113,26 @@ SecurityPolicy-Monitor-Ftp-00003
SecurityPolicy-Monitor-Ftp-00004 SecurityPolicy-Monitor-Ftp-00004
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/asdfg.txt"} ${url} Create Dictionary attributeType=string attributeName=url appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftp://192.168.40.158/asdfg.txt"}
${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "уютных апартаментов"} ${Content} Create Dictionary attributeType=string attributeName=content appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "уютных апартаментов"}
${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=http attributeValue={"string": "ftpuser"} ${Account} Create Dictionary attributeType=string attributeName=account appId=${FTP_VID} appName=ftp protocol=ftp attributeValue={"string": "ftpuser"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${FTP_VID}"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip": "${testClentIP}","port": "80","tableName": "TSG_SECURITY_SOURCE_ADDR","addrType": 4,"protocol": "6"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip": "192.168.40.158","port": "80","tableName": "TSG_SECURITY_DESTINATION_ADDR","addrType": 4,"protocol": "6"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${attributes} Create List ${url} ${Content} ${Account} ${app_id} ${ipsource} ${ipdestination} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_ftp_policyId3}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId9} ${monitor_ftp_objectId10} ${monitor_ftp_objectId11} ${monitor_ftp_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${monitor_ftp_objectId9} ${monitor_ftp_objectId10} ${monitor_ftp_objectId11}
... ${monitor_ftp_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
# # ${ok} VerifyProxy ${objectids} ${resData} # # ${ok} VerifyProxy ${objectids} ${resData}

View File

@@ -33,20 +33,23 @@ ${objectids} ${EMPTY}
SecurityPolicy-Monitor-Http-00001 SecurityPolicy-Monitor-Http-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.jrj.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.jrj.com.cn"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId33} ${monitor_http_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId33} ${monitor_http_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -59,20 +62,23 @@ SecurityPolicy-Monitor-Http-00001
SecurityPolicy-Monitor-Http-00002 SecurityPolicy-Monitor-Http-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "fitzhughmedia.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "fitzhughmedia.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} 144 ${monitor_http_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -83,6 +89,9 @@ SecurityPolicy-Monitor-Http-00002
Should Be Equal As Strings ${ok} true Should Be Equal As Strings ${ok} true
SecurityPolicy-Monitor-Http-00003 SecurityPolicy-Monitor-Http-00003
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url1} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hkbchina.com/portal/zh_CN/home/index.html"} ${url1} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.hkbchina.com/portal/zh_CN/home/index.html"}
${url2} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.nuk-baby.ru/ru_ru/kollekcii/disney-mickey-mouse.html"} ${url2} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.nuk-baby.ru/ru_ru/kollekcii/disney-mickey-mouse.html"}
${url3} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "davidsmithhunting.com/"} ${url3} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "davidsmithhunting.com/"}
@@ -92,14 +101,14 @@ SecurityPolicy-Monitor-Http-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url1} ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId2} ${monitor_http_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId2} ${monitor_http_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -112,6 +121,9 @@ SecurityPolicy-Monitor-Http-00003
SecurityPolicy-Monitor-Http-00004 SecurityPolicy-Monitor-Http-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.inspirational-quotes.info/motivational-quotes.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.inspirational-quotes.info/motivational-quotes.html"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -119,14 +131,14 @@ SecurityPolicy-Monitor-Http-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId35} ${monitor_http_objectId36} ${monitor_http_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId35} ${monitor_http_objectId36} ${monitor_http_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -139,6 +151,9 @@ SecurityPolicy-Monitor-Http-00004
SecurityPolicy-Monitor-Http-00005 SecurityPolicy-Monitor-Http-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.chinahr.com/home/bj/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.chinahr.com/home/bj/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -146,14 +161,14 @@ SecurityPolicy-Monitor-Http-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId5} ${monitor_http_objectId6} ${monitor_http_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId5} ${monitor_http_objectId6} ${monitor_http_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -166,6 +181,9 @@ SecurityPolicy-Monitor-Http-00005
SecurityPolicy-Monitor-Http-00006 SecurityPolicy-Monitor-Http-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "http://licaike.hexun.com/self_search?fundType=01"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "http://licaike.hexun.com/self_search?fundType=01"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -173,14 +191,14 @@ SecurityPolicy-Monitor-Http-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId7} ${monitor_http_objectId8} ${monitor_http_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId7} ${monitor_http_objectId8} ${monitor_http_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -193,6 +211,9 @@ SecurityPolicy-Monitor-Http-00006
SecurityPolicy-Monitor-Http-00007 SecurityPolicy-Monitor-Http-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.herocraft.com/games/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.herocraft.com/games/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -200,14 +221,14 @@ SecurityPolicy-Monitor-Http-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId9} ${monitor_http_objectId10} ${monitor_http_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId9} ${monitor_http_objectId10} ${monitor_http_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -220,6 +241,9 @@ SecurityPolicy-Monitor-Http-00007
SecurityPolicy-Monitor-Http-00008 SecurityPolicy-Monitor-Http-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tccb.com.cn/grjr/index.shtml"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.tccb.com.cn/grjr/index.shtml"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "html/text","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "html/text","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -227,14 +251,14 @@ SecurityPolicy-Monitor-Http-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId11} ${monitor_http_objectId37} ${monitor_http_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId11} ${monitor_http_objectId37} ${monitor_http_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -247,6 +271,9 @@ SecurityPolicy-Monitor-Http-00008
SecurityPolicy-Monitor-Http-00009 SecurityPolicy-Monitor-Http-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.athinline.org/facts"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.athinline.org/facts"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -254,14 +281,14 @@ SecurityPolicy-Monitor-Http-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId13} ${monitor_http_objectId14} ${monitor_http_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId13} ${monitor_http_objectId14} ${monitor_http_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -274,6 +301,9 @@ SecurityPolicy-Monitor-Http-00009
SecurityPolicy-Monitor-Http-00010 SecurityPolicy-Monitor-Http-00010
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "videogix.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "videogix.com/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "html","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -281,14 +311,14 @@ SecurityPolicy-Monitor-Http-00010
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId15} ${monitor_http_objectId16} ${monitor_http_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId15} ${monitor_http_objectId16} ${monitor_http_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -301,6 +331,9 @@ SecurityPolicy-Monitor-Http-00010
SecurityPolicy-Monitor-Http-00011 SecurityPolicy-Monitor-Http-00011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "emi-ors.com/about/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "emi-ors.com/about/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -308,14 +341,14 @@ SecurityPolicy-Monitor-Http-00011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId17} ${monitor_http_objectId18} ${monitor_http_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId17} ${monitor_http_objectId18} ${monitor_http_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -328,20 +361,23 @@ SecurityPolicy-Monitor-Http-00011
SecurityPolicy-Monitor-Http-00012 SecurityPolicy-Monitor-Http-00012
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "wingsofprey","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "wingsofprey","district": "Cookie"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${req_hdr_ck} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${req_hdr_ck} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId19} ${monitor_http_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId19} ${monitor_http_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -352,6 +388,9 @@ SecurityPolicy-Monitor-Http-00012
Should Be Equal As Strings ${ok} true Should Be Equal As Strings ${ok} true
SecurityPolicy-Monitor-Http-00013 SecurityPolicy-Monitor-Http-00013
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${res_hdr_sc1} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tplVer=06-18","district": "Set-Cookie"} ${res_hdr_sc1} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tplVer=06-18","district": "Set-Cookie"}
${res_hdr_sc2} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "domain=bing.com","district": "Set-Cookie"} ${res_hdr_sc2} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "domain=bing.com","district": "Set-Cookie"}
${res_hdr_sc3} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "domain=www.spore.com","district": "Set-Cookie"} ${res_hdr_sc3} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "domain=www.spore.com","district": "Set-Cookie"}
@@ -361,14 +400,14 @@ SecurityPolicy-Monitor-Http-00013
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId20} ${monitor_http_policyId12} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId20} ${monitor_http_policyId12} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -381,20 +420,23 @@ SecurityPolicy-Monitor-Http-00013
SecurityPolicy-Monitor-Http-00015 SecurityPolicy-Monitor-Http-00015
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${res_body} Create Dictionary attributeType=string attributeName=res_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "我的自选"} ${res_body} Create Dictionary attributeType=string attributeName=res_body appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "我的自选"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_body} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${res_body} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId39} ${monitor_http_policyId14} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId39} ${monitor_http_policyId14} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -408,6 +450,9 @@ SecurityPolicy-Monitor-Http-00015
SecurityPolicy-Monitor-Http-00017 SecurityPolicy-Monitor-Http-00017
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.airwargame.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.airwargame.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.airwargame.com/eng/start/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.airwargame.com/eng/start/"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "wingsofprey","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "wingsofprey","district": "Cookie"}
@@ -418,14 +463,15 @@ SecurityPolicy-Monitor-Http-00017
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_body} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${res_body} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId28} ${monitor_http_objectId29} ${monitor_http_objectId30} ${monitor_http_objectId31} ${monitor_http_objectId32} ${monitor_http_policyId16} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_http_objectId28} ${monitor_http_objectId29} ${monitor_http_objectId30}
... ${monitor_http_objectId31} ${monitor_http_objectId32} ${monitor_http_policyId16} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -29,21 +29,25 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
SecurityPolicy-Monitor-Mail-00001 SecurityPolicy-Monitor-Mail-00001
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "zzzzzzz"} ${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "zzzzzzz"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${content_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${content_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId33} ${monitor_mail_policyId} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId33} ${monitor_mail_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -53,21 +57,25 @@ SecurityPolicy-Monitor-Mail-00001
SecurityPolicy-Monitor-Mail-00002 SecurityPolicy-Monitor-Mail-00002
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "朱明明测试文件内容"} ${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "朱明明测试文件内容"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${att_content_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${att_content_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId1}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId34} ${monitor_mail_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId34} ${monitor_mail_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -77,6 +85,9 @@ SecurityPolicy-Monitor-Mail-00002
SecurityPolicy-Monitor-Mail-00003 SecurityPolicy-Monitor-Mail-00003
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "асятся"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "асятся"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -84,15 +95,16 @@ SecurityPolicy-Monitor-Mail-00003
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId2}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId35} ${monitor_mail_objectId36} ${monitor_mail_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId35} ${monitor_mail_objectId36} ${monitor_mail_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -102,6 +114,9 @@ SecurityPolicy-Monitor-Mail-00003
SecurityPolicy-Monitor-Mail-00004 SecurityPolicy-Monitor-Mail-00004
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "后天周末"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "后天周末"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -109,15 +124,16 @@ SecurityPolicy-Monitor-Mail-00004
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId3}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId4} ${monitor_mail_objectId5} ${monitor_mail_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId4} ${monitor_mail_objectId5} ${monitor_mail_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -127,6 +143,9 @@ SecurityPolicy-Monitor-Mail-00004
SecurityPolicy-Monitor-Mail-00005 SecurityPolicy-Monitor-Mail-00005
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "9876543210zxcv"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "9876543210zxcv"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -134,15 +153,16 @@ SecurityPolicy-Monitor-Mail-00005
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId4}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId6} ${monitor_mail_objectId7} ${monitor_mail_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId6} ${monitor_mail_objectId7} ${monitor_mail_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -152,6 +172,9 @@ SecurityPolicy-Monitor-Mail-00005
SecurityPolicy-Monitor-Mail-00006 SecurityPolicy-Monitor-Mail-00006
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Tomatorhahaha"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Tomatorhahaha"}
${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${from_id} Create Dictionary attributeType=string attributeName=from appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -159,15 +182,16 @@ SecurityPolicy-Monitor-Mail-00006
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${from_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId5}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId8} ${monitor_mail_objectId9} ${monitor_mail_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId8} ${monitor_mail_objectId9} ${monitor_mail_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -177,6 +201,9 @@ SecurityPolicy-Monitor-Mail-00006
SecurityPolicy-Monitor-Mail-00007 SecurityPolicy-Monitor-Mail-00007
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "планируете"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "планируете"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -184,15 +211,16 @@ SecurityPolicy-Monitor-Mail-00007
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId6}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId10} ${monitor_mail_objectId11} ${monitor_mail_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId10} ${monitor_mail_objectId11} ${monitor_mail_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -202,6 +230,9 @@ SecurityPolicy-Monitor-Mail-00007
SecurityPolicy-Monitor-Mail-00008 SecurityPolicy-Monitor-Mail-00008
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "asdf741852"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "asdf741852"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -209,15 +240,16 @@ SecurityPolicy-Monitor-Mail-00008
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId7}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId12} ${monitor_mail_objectId37} ${monitor_mail_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId12} ${monitor_mail_objectId37} ${monitor_mail_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -227,6 +259,9 @@ SecurityPolicy-Monitor-Mail-00008
SecurityPolicy-Monitor-Mail-00009 SecurityPolicy-Monitor-Mail-00009
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "马上又过一天"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "马上又过一天"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -234,15 +269,16 @@ SecurityPolicy-Monitor-Mail-00009
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId8}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId14} ${monitor_mail_objectId15} ${monitor_mail_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId14} ${monitor_mail_objectId15} ${monitor_mail_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -252,6 +288,9 @@ SecurityPolicy-Monitor-Mail-00009
SecurityPolicy-Monitor-Mail-00010 SecurityPolicy-Monitor-Mail-00010
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "weekend"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "weekend"}
${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"} ${to_id} Create Dictionary attributeType=string attributeName=to appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hebingning@geedgenetworks.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -259,15 +298,16 @@ SecurityPolicy-Monitor-Mail-00010
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId9}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId16} ${monitor_mail_objectId17} ${monitor_mail_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId16} ${monitor_mail_objectId17} ${monitor_mail_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -277,6 +317,9 @@ SecurityPolicy-Monitor-Mail-00010
SecurityPolicy-Monitor-Mail-00011 SecurityPolicy-Monitor-Mail-00011
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "邮件发送成功"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "邮件发送成功"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -284,15 +327,16 @@ SecurityPolicy-Monitor-Mail-00011
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId10}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId18} ${monitor_mail_objectId19} ${monitor_mail_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId18} ${monitor_mail_objectId19} ${monitor_mail_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -302,6 +346,9 @@ SecurityPolicy-Monitor-Mail-00011
SecurityPolicy-Monitor-Mail-00012 SecurityPolicy-Monitor-Mail-00012
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "ограничительным"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "ограничительным"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -309,15 +356,16 @@ SecurityPolicy-Monitor-Mail-00012
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId11}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId20} ${monitor_mail_objectId21} ${monitor_mail_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId20} ${monitor_mail_objectId21} ${monitor_mail_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -327,6 +375,9 @@ SecurityPolicy-Monitor-Mail-00012
SecurityPolicy-Monitor-Mail-00013 SecurityPolicy-Monitor-Mail-00013
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "hahauawei.org"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "963258zxcvb"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "963258zxcvb"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -334,15 +385,16 @@ SecurityPolicy-Monitor-Mail-00013
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId12}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId22} ${monitor_mail_objectId23} ${monitor_mail_policyId12} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId22} ${monitor_mail_objectId23} ${monitor_mail_policyId12} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -352,6 +404,9 @@ SecurityPolicy-Monitor-Mail-00013
SecurityPolicy-Monitor-Mail-00014 SecurityPolicy-Monitor-Mail-00014
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "一小时一天一个月"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "一小时一天一个月"}
${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"} ${account_id} Create Dictionary attributeType=string attributeName=account appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "2662136486@qq.com"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
@@ -359,15 +414,16 @@ SecurityPolicy-Monitor-Mail-00014
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${attributes} Create List ${subject_id} ${account_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId13}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId24} ${monitor_mail_objectId25} ${monitor_mail_policyId13} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId24} ${monitor_mail_objectId25} ${monitor_mail_policyId13} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}
@@ -377,6 +433,9 @@ SecurityPolicy-Monitor-Mail-00014
SecurityPolicy-Monitor-Mail-00015 SecurityPolicy-Monitor-Mail-00015
# # 新增策略验证 # # 新增策略验证
# 创建attributes中的字典 # 创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "huawei.com"}
${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "要留清白在人间"} ${subject_id} Create Dictionary attributeType=string attributeName=subject appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "要留清白在人间"}
${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "good"} ${content_id} Create Dictionary attributeType=string attributeName=content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "good"}
${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Простопорно"} ${att_content_id} Create Dictionary attributeType=string attributeName=att_content appId=${MAIL_VID} appName=mail protocol=mail attributeValue={"string": "Простопорно"}
@@ -388,15 +447,18 @@ SecurityPolicy-Monitor-Mail-00015
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id protocol=mail attributeValue={"string": "${MAIL_VID}"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${subject_id} ${content_id} ${att_content_id} ${from_id} ${to_id} ${app_id} ${ipsource} ${ipdestination} ${subscriberid} ${account_id} ${attributes} Create List ${subject_id} ${content_id} ${att_content_id} ${from_id} ${to_id} ${app_id} ${ipsource} ${ipdestination}
... ${subscriberid} ${account_id} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
sleep 10 GetVerifyState ${resData} ${monitor_mail_policyId14}
sleep ${policyModifySleepSeconds}
# 打印检查结果 # 打印检查结果
# 将 策略id 加入对象 id # 将 策略id 加入对象 id
${objectid_verify} set variable ${testClentIpId} ${objectid_verify} set variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId26} ${monitor_mail_objectId27} ${monitor_mail_objectId28} ${monitor_mail_objectId29} ${monitor_mail_objectId30} ${monitor_mail_objectId31} ${monitor_mail_policyId14} ${objectid_verify} Catenate SEPARATOR=, ${monitor_mail_objectId26} ${monitor_mail_objectId27} ${monitor_mail_objectId28}
... ${monitor_mail_objectId29} ${monitor_mail_objectId30} ${monitor_mail_objectId31} ${monitor_mail_policyId14} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
#sleep 5 #sleep 5
# 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
${ok} VerifyProxy ${resData} ${objectid_verify} ${ok} VerifyProxy ${resData} ${objectid_verify}

View File

@@ -33,20 +33,23 @@ ${objectids} ${EMPTY}
SecurityPolicy-Monitor-Ssl-00001 SecurityPolicy-Monitor-Ssl-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "hahauawei.org"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.wego.cn"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.wego.cn"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId4} ${monitor_ssl_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId4} ${monitor_ssl_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -59,6 +62,9 @@ SecurityPolicy-Monitor-Ssl-00001
SecurityPolicy-Monitor-Ssl-00002 SecurityPolicy-Monitor-Ssl-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "huawei.com"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.keysnews.com"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.keysnews.com"}
${cn} Create Dictionary attributeType=string attributeName=cn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "keysnews.com"} ${cn} Create Dictionary attributeType=string attributeName=cn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "keysnews.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
@@ -66,14 +72,14 @@ SecurityPolicy-Monitor-Ssl-00002
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${cn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${cn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId1} ${monitor_ssl_policyId1} ${monitor_ssl_objectId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId1} ${monitor_ssl_policyId1} ${monitor_ssl_objectId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -86,6 +92,9 @@ SecurityPolicy-Monitor-Ssl-00002
SecurityPolicy-Monitor-Ssl-00003 SecurityPolicy-Monitor-Ssl-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "huawei.com"}
${sni1} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.academia.org"} ${sni1} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.academia.org"}
${sni2} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.proisraelforever.com"} ${sni2} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "www.proisraelforever.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${SSL_VID}"}
@@ -93,14 +102,14 @@ SecurityPolicy-Monitor-Ssl-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni2} ${sni1} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni2} ${sni1} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId2} ${monitor_ssl_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId2} ${monitor_ssl_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -113,6 +122,9 @@ SecurityPolicy-Monitor-Ssl-00003
SecurityPolicy-Monitor-Ssl-00004 SecurityPolicy-Monitor-Ssl-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "huawei.com"}
${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "nerdreactor.com"} ${sni} Create Dictionary attributeType=string attributeName=sni appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "nerdreactor.com"}
${cn} Create Dictionary attributeType=string attributeName=cn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "nerdreactor.com"} ${cn} Create Dictionary attributeType=string attributeName=cn appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "nerdreactor.com"}
${san} Create Dictionary attributeType=string attributeName=san appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "nerdreactor.com"} ${san} Create Dictionary attributeType=string attributeName=san appId=${SSL_VID} appName=ssl protocol=ssl attributeValue={"string": "nerdreactor.com"}
@@ -121,14 +133,14 @@ SecurityPolicy-Monitor-Ssl-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${cn} ${san} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${sni} ${cn} ${san} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId6} ${monitor_ssl_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_ssl_objectId6} ${monitor_ssl_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -28,20 +28,24 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
Proxy-Policy-Monitor-00001 Proxy-Policy-Monitor-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "feishu.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "feishu.cn"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId47} ${monitor_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId47} ${monitor_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -54,20 +58,24 @@ Proxy-Policy-Monitor-00001
Proxy-Policy-Monitor-00002 Proxy-Policy-Monitor-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.parkpennies.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.parkpennies.com"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId1} ${monitor_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId1} ${monitor_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -81,6 +89,9 @@ Proxy-Policy-Monitor-00002
Proxy-Policy-Monitor-00004 Proxy-Policy-Monitor-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.kumi.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.kumi.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.kumi.cn/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.kumi.cn/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
@@ -89,14 +100,15 @@ Proxy-Policy-Monitor-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId48} ${monitor_objectId49} ${monitor_objectId50} ${monitor_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId48} ${monitor_objectId49} ${monitor_objectId50} ${monitor_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -109,6 +121,9 @@ Proxy-Policy-Monitor-00004
Proxy-Policy-Monitor-00005 Proxy-Policy-Monitor-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.mgtv.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.mgtv.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.mgtv.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.mgtv.com/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
@@ -117,14 +132,15 @@ Proxy-Policy-Monitor-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId7} ${monitor_objectId8} ${monitor_objectId9} ${monitor_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId7} ${monitor_objectId8} ${monitor_objectId9} ${monitor_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -137,6 +153,9 @@ Proxy-Policy-Monitor-00005
Proxy-Policy-Monitor-00006 Proxy-Policy-Monitor-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.ifeng.com/"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.ifeng.com/"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.ifeng.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.ifeng.com/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit","district": "User-Agent"}
@@ -145,14 +164,15 @@ Proxy-Policy-Monitor-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId11} ${monitor_objectId12} ${monitor_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId11} ${monitor_objectId12} ${monitor_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -165,22 +185,26 @@ Proxy-Policy-Monitor-00006
Proxy-Policy-Monitor-00007 Proxy-Policy-Monitor-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.pptv.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.pptv.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.pptv.com"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.pptv.com/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"} ${subscriberid} Create Dictionary attributeType=string attributeName=subscriberid attributeValue={"string": "test56"}
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId14} ${monitor_objectId15} ${monitor_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId14} ${monitor_objectId15} ${monitor_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -193,6 +217,9 @@ Proxy-Policy-Monitor-00007
Proxy-Policy-Monitor-00008 Proxy-Policy-Monitor-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "love.163.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "love.163.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "love.163.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "love.163.com/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8","district": "Content-Type"}
@@ -201,14 +228,15 @@ Proxy-Policy-Monitor-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId52} ${monitor_objectId53} ${monitor_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId52} ${monitor_objectId53} ${monitor_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -221,6 +249,9 @@ Proxy-Policy-Monitor-00008
Proxy-Policy-Monitor-00009 Proxy-Policy-Monitor-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.iqilu.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.iqilu.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.iqilu.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "v.iqilu.com/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -229,14 +260,15 @@ Proxy-Policy-Monitor-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId19} ${monitor_objectId20} ${monitor_objectId21} ${monitor_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId19} ${monitor_objectId20} ${monitor_objectId21} ${monitor_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -249,6 +281,9 @@ Proxy-Policy-Monitor-00009
Proxy-Policy-Monitor-00010 Proxy-Policy-Monitor-00010
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.fun.tv"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.fun.tv"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.fun.tv/movie/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.fun.tv/movie/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -257,14 +292,15 @@ Proxy-Policy-Monitor-00010
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId9}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId22} ${monitor_objectId23} ${monitor_objectId24} ${monitor_policyId9} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId22} ${monitor_objectId23} ${monitor_objectId24} ${monitor_policyId9} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -277,6 +313,9 @@ Proxy-Policy-Monitor-00010
Proxy-Policy-Monitor-00011 Proxy-Policy-Monitor-00011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hongniang.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hongniang.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hongniang.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hongniang.com/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -285,14 +324,15 @@ Proxy-Policy-Monitor-00011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${monitor_policyId10}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId25} ${monitor_objectId26} ${monitor_objectId27} ${monitor_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${monitor_objectId25} ${monitor_objectId26} ${monitor_objectId27} ${monitor_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -34,6 +34,9 @@ ${objectids} ${EMPTY}
Proxy-Policy-redirect-00001 Proxy-Policy-redirect-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tudou.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tudou.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tudou.com/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "tudou.com/"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -41,14 +44,16 @@ Proxy-Policy-redirect-00001
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId49} ${redirect_objectId44} ${redirect_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId49} ${redirect_objectId44}
... ${redirect_policyId} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -61,6 +66,9 @@ Proxy-Policy-redirect-00001
Proxy-Policy-redirect-00002 Proxy-Policy-redirect-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "glazok.kz"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "glazok.kz"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "glazok.kz/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "glazok.kz/"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -68,14 +76,15 @@ Proxy-Policy-redirect-00002
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId50} ${redirect_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId50} ${redirect_policyId1} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -88,6 +97,9 @@ Proxy-Policy-redirect-00002
Proxy-Policy-redirect-00003 Proxy-Policy-redirect-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.deepin.org"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.deepin.org"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.vmall.com"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.vmall.com"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.suning.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.suning.com"}
@@ -101,14 +113,16 @@ Proxy-Policy-redirect-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4}
... ${url1} ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId2} ${redirect_objectId3} ${redirect_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId2} ${redirect_objectId3} ${redirect_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -121,6 +135,9 @@ Proxy-Policy-redirect-00003
Proxy-Policy-redirect-00004 Proxy-Policy-redirect-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.merrilledge.com/investing/online-trading"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.merrilledge.com/investing/online-trading"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -128,14 +145,16 @@ Proxy-Policy-redirect-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId5} ${redirect_objectId51} ${redirect_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId5} ${redirect_objectId51} ${redirect_policyId3}
... ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -149,6 +168,9 @@ Proxy-Policy-redirect-00004
Proxy-Policy-redirect-00005 Proxy-Policy-redirect-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.marketscreener.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.marketscreener.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.marketscreener.com/stock-analyses/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.marketscreener.com/stock-analyses/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
@@ -157,14 +179,15 @@ Proxy-Policy-redirect-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId7} ${redirect_objectId8} ${redirect_objectId9} ${redirect_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId7} ${redirect_objectId8} ${redirect_objectId9} ${redirect_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -177,6 +200,9 @@ Proxy-Policy-redirect-00005
Proxy-Policy-redirect-00006 Proxy-Policy-redirect-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dota2.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dota2.com.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dota2.com.cn/index.htm"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.dota2.com.cn/index.htm"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit/537.36 (KHTML, like Gecko)","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKit/537.36 (KHTML, like Gecko)","district": "User-Agent"}
@@ -185,14 +211,15 @@ Proxy-Policy-redirect-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId10} ${redirect_objectId11} ${redirect_objectId12} ${redirect_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId10} ${redirect_objectId11} ${redirect_objectId12} ${redirect_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -205,6 +232,9 @@ Proxy-Policy-redirect-00006
Proxy-Policy-redirect-00007 Proxy-Policy-redirect-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ufcu.org"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ufcu.org"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ufcu.org/personal/insurance/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ufcu.org/personal/insurance/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0","district": "User-Agent"}
@@ -213,14 +243,16 @@ Proxy-Policy-redirect-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId13} ${redirect_objectId14} ${redirect_objectId15} ${redirect_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId13} ${redirect_objectId14} ${redirect_objectId15}
... ${redirect_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -233,6 +265,9 @@ Proxy-Policy-redirect-00007
Proxy-Policy-redirect-00008 Proxy-Policy-redirect-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.essence.com.cn/business/fixed"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.essence.com.cn/business/fixed"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "utf-8aabnna","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -240,14 +275,15 @@ Proxy-Policy-redirect-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId17} ${redirect_objectId52} ${redirect_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId17} ${redirect_objectId52} ${redirect_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -260,6 +296,9 @@ Proxy-Policy-redirect-00008
Proxy-Policy-redirect-00009 Proxy-Policy-redirect-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.west95582.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.west95582.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.west95582.com/jdw/index.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.west95582.com/jdw/index.html"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -268,14 +307,15 @@ Proxy-Policy-redirect-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId19} ${redirect_objectId20} ${redirect_objectId21} ${redirect_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId19} ${redirect_objectId20} ${redirect_objectId21} ${redirect_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -289,6 +329,9 @@ Proxy-Policy-redirect-00009
Proxy-Policy-redirect-00011 Proxy-Policy-redirect-00011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cs.ecitic.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cs.ecitic.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cs.ecitic.com/newsite/business/bank/tzyh_ywjs/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.cs.ecitic.com/newsite/business/bank/tzyh_ywjs/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html","district": "Content-Type"}
@@ -297,14 +340,16 @@ Proxy-Policy-redirect-00011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId10}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId25} ${redirect_objectId26} ${redirect_objectId27} ${redirect_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId25} ${redirect_objectId26} ${redirect_objectId27}
... ${redirect_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -325,14 +370,16 @@ Proxy-Policy-redirect-00012
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId11}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId28} ${redirect_objectId29} ${redirect_objectId30} ${redirect_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId28} ${redirect_objectId29} ${redirect_objectId30}
... ${redirect_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -345,6 +392,9 @@ Proxy-Policy-redirect-00012
Proxy-Policy-redirect-00013 Proxy-Policy-redirect-00013
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.travelmath.com"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.travelmath.com"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.monticello.org"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.monticello.org"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "expediapartnersolutions.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "expediapartnersolutions.com"}
@@ -363,14 +413,16 @@ Proxy-Policy-redirect-00013
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4}
... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId12}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId31} ${redirect_objectId32} ${redirect_objectId46} ${redirect_policyId12} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId31} ${redirect_objectId32} ${redirect_objectId46}
... ${redirect_policyId12} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -384,6 +436,9 @@ Proxy-Policy-redirect-00013
Proxy-Policy-redirect-00016 Proxy-Policy-redirect-00016
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.equifax.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.equifax.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.equifax.com/personal/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.equifax.com/personal/"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "COOKIE_SUPPORT","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "COOKIE_SUPPORT","district": "Cookie"}
@@ -393,14 +448,17 @@ Proxy-Policy-redirect-00016
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${imsi_id}
... ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${redirect_policyId15}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId40} ${redirect_objectId41} ${redirect_objectId42} ${redirect_policyId15} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${redirect_objectId40} ${redirect_objectId41} ${redirect_objectId42}
... ${redirect_policyId15} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -29,6 +29,9 @@ Resource ../../../05-Other/AllFlowCaseVariable.txt
Proxy-Policy-replace-00001 Proxy-Policy-replace-00001
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "destidotcom.wordpress.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "destidotcom.wordpress.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "destidotcom.wordpress.com/contact/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "destidotcom.wordpress.com/contact/"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -36,14 +39,16 @@ Proxy-Policy-replace-00001
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId39} ${replace_objectId43} ${replace_policyId} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId39} ${replace_objectId43} ${replace_policyId}
... ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -56,6 +61,9 @@ Proxy-Policy-replace-00001
Proxy-Policy-replace-00002 Proxy-Policy-replace-00002
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "airastana.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "airastana.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "airastana.com/kaz/kk-kz/Josparlau/Kop-baghytty-ushu"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "airastana.com/kaz/kk-kz/Josparlau/Kop-baghytty-ushu"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -63,11 +71,12 @@ Proxy-Policy-replace-00002
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${fqdn} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${fqdn} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId1}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId44} ${replace_policyId1} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId44} ${replace_policyId1}
@@ -83,6 +92,9 @@ Proxy-Policy-replace-00002
Proxy-Policy-replace-00003 Proxy-Policy-replace-00003
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url1} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "umcfa.webs.com/"} ${url1} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "umcfa.webs.com/"}
${url2} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.pjpugliese.com/"} ${url2} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.pjpugliese.com/"}
${url3} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "carblog.co.za/"} ${url3} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "carblog.co.za/"}
@@ -92,14 +104,15 @@ Proxy-Policy-replace-00003
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url1} ${url2} ${url3} ${url4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId2}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId3} ${replace_policyId2} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId3} ${replace_policyId2} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -112,6 +125,9 @@ Proxy-Policy-replace-00003
Proxy-Policy-replace-00004 Proxy-Policy-replace-00004
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ino.com/news/headlines/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ino.com/news/headlines/"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "afsfssfMozilla/5.0afsfsdafsafs","district": "User-Agent"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -119,14 +135,15 @@ Proxy-Policy-replace-00004
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId3}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId5} ${replace_objectId45} ${replace_policyId3} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId5} ${replace_objectId45} ${replace_policyId3} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -139,6 +156,9 @@ Proxy-Policy-replace-00004
Proxy-Policy-replace-00005 Proxy-Policy-replace-00005
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.bestwestern.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.bestwestern.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.bestwestern.com/en_US.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.bestwestern.com/en_US.html"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36","district": "User-Agent"}
@@ -147,14 +167,15 @@ Proxy-Policy-replace-00005
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId4}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId7} ${replace_objectId8} ${replace_objectId9} ${replace_policyId4} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId7} ${replace_objectId8} ${replace_objectId9} ${replace_policyId4} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -167,6 +188,9 @@ Proxy-Policy-replace-00005
Proxy-Policy-replace-00006 Proxy-Policy-replace-00006
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.quickenloans.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.quickenloans.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.quickenloans.com/mortgage-education/home-buyers-guide?qlsource=nav"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.quickenloans.com/mortgage-education/home-buyers-guide?qlsource=nav"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKitaaaaaaa","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "AppleWebKitaaaaaaa","district": "User-Agent"}
@@ -175,14 +199,15 @@ Proxy-Policy-replace-00006
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId5}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId10} ${replace_objectId11} ${replace_objectId12} ${replace_policyId5} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId10} ${replace_objectId11} ${replace_objectId12} ${replace_policyId5} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -195,6 +220,9 @@ Proxy-Policy-replace-00006
Proxy-Policy-replace-00007 Proxy-Policy-replace-00007
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gobank.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gobank.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gobank.com/mobile-banking/mobile-app"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.gobank.com/mobile-banking/mobile-app"}
${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"} ${req_hdr_ua} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahahahsfeSafari/537.36","district": "User-Agent"}
@@ -203,14 +231,15 @@ Proxy-Policy-replace-00007
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ua} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId6}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId13} ${replace_objectId14} ${replace_objectId15} ${replace_policyId6} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId13} ${replace_objectId14} ${replace_objectId15} ${replace_policyId6} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -223,6 +252,9 @@ Proxy-Policy-replace-00007
Proxy-Policy-replace-00008 Proxy-Policy-replace-00008
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ghzq.com.cn/ghzq/index.html"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.ghzq.com.cn/ghzq/index.html"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "htmlaaffe","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "htmlaaffe","district": "Content-Type"}
${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"} ${app_id} Create Dictionary attributeType=string attributeName=app_id attributeValue={"string": "${HTTP_VID}"}
@@ -230,14 +262,15 @@ Proxy-Policy-replace-00008
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId7}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId17} ${replace_policyId7} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId17} ${replace_policyId7} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -250,6 +283,9 @@ Proxy-Policy-replace-00008
Proxy-Policy-replace-00009 Proxy-Policy-replace-00009
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.zcool.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.zcool.com.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.zcool.com.cn/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.zcool.com.cn/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"}
@@ -258,14 +294,16 @@ Proxy-Policy-replace-00009
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId8}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId19} ${replace_objectId20} ${replace_objectId21} ${replace_policyId8} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId19} ${replace_objectId20} ${replace_objectId21}
... ${replace_policyId8} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -280,6 +318,9 @@ Proxy-Policy-replace-00009
Proxy-Policy-replace-00011 Proxy-Policy-replace-00011
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "1384487111111"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.shfe.com.cn"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.shfe.com.cn"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.shfe.com.cn/products/au/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.shfe.com.cn/products/au/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "text/html; charset=utf-8","district": "Content-Type"}
@@ -288,14 +329,15 @@ Proxy-Policy-replace-00011
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId10}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId26} ${replace_objectId27} ${replace_policyId10} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId26} ${replace_objectId27} ${replace_policyId10} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -308,6 +350,9 @@ Proxy-Policy-replace-00011
Proxy-Policy-replace-00012 Proxy-Policy-replace-00012
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "239114220339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.national-park.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.national-park.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.national-park.com/welcome-to-canyonlands-national-park/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.national-park.com/welcome-to-canyonlands-national-park/"}
${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkeyfafghlh","district": "Cookie"} ${req_hdr_ck} Create Dictionary attributeType=signature attributeName=req_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "saltkeyfafghlh","district": "Cookie"}
@@ -316,14 +361,16 @@ Proxy-Policy-replace-00012
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId11}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId28} ${replace_objectId29} ${replace_objectId30} ${replace_policyId11} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId28} ${replace_objectId29} ${replace_objectId30}
... ${replace_policyId11} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -336,6 +383,9 @@ Proxy-Policy-replace-00012
Proxy-Policy-replace-00013 Proxy-Policy-replace-00013
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "17844877790"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "huawei.com"}
${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.expedia.co.uk"} ${fqdn1} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.expedia.co.uk"}
${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "welcome.expediagroup.com"} ${fqdn2} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "welcome.expediagroup.com"}
${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.expediacruises.com"} ${fqdn3} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.expediacruises.com"}
@@ -354,14 +404,16 @@ Proxy-Policy-replace-00013
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn1} ${fqdn2} ${fqdn3} ${fqdn4} ${url1} ${url2} ${url3} ${url4}
... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ... ${res_hdr_sc1} ${res_hdr_sc2} ${res_hdr_sc3} ${res_hdr_sc4} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId12}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId31} ${replace_objectId32} ${replace_objectId41} ${replace_policyId12} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId31} ${replace_objectId32} ${replace_objectId41}
... ${replace_policyId12} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)
@@ -374,6 +426,9 @@ Proxy-Policy-replace-00013
Proxy-Policy-replace-00014 Proxy-Policy-replace-00014
#新增策略验证 #新增策略验证
#创建attributes中的字典 #创建attributes中的字典
${imsi_id} Create Dictionary attributeType=string attributeName=imsi appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "11235666666558"}
${phone_number_id} Create Dictionary attributeType=string attributeName=phone_number appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "13844870339"}
${apn_id} Create Dictionary attributeType=string attributeName=apn appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "hahauawei.org"}
${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.engadget.com"} ${fqdn} Create Dictionary attributeType=string attributeName=host appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.engadget.com"}
${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.engadget.com/gaming/"} ${url} Create Dictionary attributeType=string attributeName=url appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "www.engadget.com/gaming/"}
${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"} ${res_hdr_ct} Create Dictionary attributeType=signature attributeName=res_hdr appId=${HTTP_VID} appName=http protocol=http attributeValue={"string": "charset=text","district": "Content-Type"}
@@ -385,14 +440,17 @@ Proxy-Policy-replace-00014
${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"} ${ipsource} Create Dictionary attributeType=ip attributeName=source attributeValue={"ip":"${testClentIP}","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipdestination} Create Dictionary attributeType=ip attributeName=destination attributeValue={"ip":"254.253.252.251","port":"1","addrType":4,"protocol":"6","tableName":"TSG_SECURITY_DESTINATION_ADDR"}
# 合成attributes字典集 # 合成attributes字典集
${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${req_hdr_ua} ${res_hdr_ct} ${attributes} Create List ${app_id} ${subscriberid} ${ipsource} ${ipdestination} ${fqdn} ${url} ${req_hdr_ck} ${res_hdr_sc} ${req_hdr_ua}
... ${res_hdr_ct} ${imsi_id} ${phone_number_id} ${apn_id}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession} ${verifyList} Create Dictionary policyType=pxy_manipulation verifySession=${verifySession}
log ${verifyList} log ${verifyList}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
GetVerifyState ${resData} ${replace_policyId12}
# 打印检查结果 # 打印检查结果
${objectid_verify} Set Variable ${testClentIpId} ${objectid_verify} Set Variable ${testClentIpId}
${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId33} ${replace_objectId34} ${replace_objectId35} ${replace_objectId36} ${replace_objectId37} ${replace_policyId13} ${replace_objectId38} ${objectid_verify} Catenate SEPARATOR=, ${objectid_verify} ${replace_objectId33} ${replace_objectId34} ${replace_objectId35} ${replace_objectId36}
... ${replace_objectId37} ${replace_policyId13} ${replace_objectId38} ${object_imsi_id} ${obj_phoneNum_Id} ${obj_apn_Id}
# # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中 # # 调用关键字 提取应答json获取其中所有的id值并判断新下发的id值是否在应答json的id中
log ${objectid_verify} log ${objectid_verify}
${testType} Evaluate type($objectid_verify) ${testType} Evaluate type($objectid_verify)

View File

@@ -33,7 +33,7 @@ SecurityPolicy-Allow-Ssl-00002
#删除策略 #删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_ssl_policyId1}]} ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_ssl_policyId1}]}
${s} Convert to String ${allow_ssl_policyId1} ${s} Convert to String ${allow_ssl_policyId1}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni protonmail.com GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni protomail.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni xinyue.qq.com GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni xinyue.qq.com
SecurityPolicy-Allow-Ssl-00003 SecurityPolicy-Allow-Ssl-00003

View File

@@ -41,7 +41,7 @@ Proxy-Policy-deny-00002
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId1}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId1}]}
${policyIds} Create List ${policyId1} ${policyId2} ${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${deny_policyId1} ${s} Convert to String ${deny_policyId1}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host kingidentity.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host youku.com
Proxy-Policy-deny-00003 Proxy-Policy-deny-00003
#删除文件 #删除文件