monitor动作quic协议验证部分

This commit is contained in:
jwc
2020-07-01 17:51:49 +08:00
parent 3294944668
commit 8fd2557c48

View File

@@ -0,0 +1,58 @@
*** Settings ***
Force Tags tsg_adc_wp security_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 ***
SecurityPolicy-Monitor-quic-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00001.bat
... ELSE set variable curl https://undergroundhealthreporter.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Subscribe
... ELSE Create List Subscribe
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_quic_starttime ${starttime} monitor_quic_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00001_1.bat
... ELSE set variable curl https://wordcrow.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List WordCrowd
... ELSE Create List WordCrowd
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_quic_starttime1 ${starttime} monitor_quic_endtime1 ${endtime}
SecurityPolicy-Monitor-quic-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00002.bat
... ELSE set variable curl https://www.lousycv.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List LousyCV
... ELSE Create List LousyCV
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_quic_starttime2 ${starttime} monitor_quic_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00002_2.bat
... ELSE set variable curl https://stylewithshannon.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Blogs
... ELSE Create List Blogs
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_quic_starttime3 ${starttime} monitor_quic_endtime3 ${endtime}