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