提交已修复的因策略相互影响导致执行失败的用例

This commit is contained in:
hebingning
2021-02-20 11:38:17 +08:00
parent 9b7f2d64c5
commit cc39fa03fc
46 changed files with 451 additions and 362 deletions

View File

@@ -44,7 +44,7 @@ Proxy-Policy-replace-00002
${policyDict} Create Dictionary policyId=${replace_policyId1} policyName=Proxy-Policy-replace-00002-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"replace","rules":[{"search_in":"http_req_uri","find":"splishsplash","replace_with":"halashaotestreplace0002"}],"protocol":"HTTP"} filterList=109|TSG_FIELD_HTTP_HOST,${replace_objectId44}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 3
sleep 5
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00002.bat
... ELSE set variable curl -kv https://www.splishsplash.com/
@@ -62,6 +62,8 @@ Proxy-Policy-replace-00003
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_1.bat
... ELSE set variable curl -kv https://www.pjpugliese.com/
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_1.bat
... ELSE set variable curl -kv https://www.pjpugliese.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Peter Pugliese Tango Secure Gateway CA
... ELSE Create List Peter Pugliese Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -89,7 +91,7 @@ Proxy-Policy-replace-00004
${policyDict} Create Dictionary policyId=${replace_policyId3} policyName=Proxy-Policy-replace-00004-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"replace","rules":[{"search_in":"http_resp_header","find":"html","replace_with":"hahaha"}],"protocol":"HTTP"} filterList=${replace_objectId5}|TSG_FIELD_HTTP_URL,${replace_objectId45}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 3
sleep 5
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00004.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.ino.com/news/headlines/