From 5849b0c05792170e30e74861c48e2c0968f251f6 Mon Sep 17 00:00:00 2001 From: hebingning Date: Mon, 29 Mar 2021 10:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=B8=8D=E9=80=9A=E8=BF=87=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=BF=9B=E8=A1=8C=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tsg_adc/multi_step/a_Allow_Tests.robot | 1 - .../multi_step/a_Deny_Http_Tests.robot | 2 +- .../multi_step/b_Allow_Http_Tests.robot | 2 +- .../tsg_adc/multi_step/b_Allow_Rtp.robot | 3 ++ .../tsg_adc/multi_step/b_Allow_Sip.robot | 30 +++++++++++------- .../tsg_adc/multi_step/b_Deny_Dns_Tests.robot | 2 +- .../multi_step/b_Deny_Http_Tests.robot | 4 +-- .../tsg_adc/multi_step/b_Deny_Rtp.robot | 3 +- .../tsg_adc/multi_step/b_Deny_Sip.robot | 30 +++++++++++------- .../tsg_adc/multi_step/b_Monitor_Rtp.robot | 3 ++ .../tsg_adc/multi_step/b_Monitor_Sip.robot | 31 +++++++++++-------- 11 files changed, 67 insertions(+), 44 deletions(-) diff --git a/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot index bee280b..c3a3882 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Allow_Tests.robot @@ -12,7 +12,6 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/ProcessPolicyBody. *** Test Cases *** Proxy-Policy-allow-00001 [Tags] fqdn完整匹配 修改fqdn - log ${testClentSubID} Comment 创建fqdn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$mp.pipix.com ${rescode} ${objectId} AddObject2 ${1} ${objectDict} diff --git a/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot index 0ec65f8..bd39080 100644 --- a/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/a_Deny_Http_Tests.robot @@ -24,7 +24,7 @@ SecurityPolicy-Deny-Http-00001 ${objectDict} Create Dictionary objectType=ip objectSubType=geo_location isValid=${1} addItemList=${addItemLists} ${rescode} ${objectId1} AddObjects ${1} ${objectDict} Comment 创建fqdn2 - ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*longkong.net + ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*lkong.net ${rescode} ${objectId2} AddObject2 ${1} ${objectDict} Comment 创建安全策略 ${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID} diff --git a/01-TestCase/tsg_adc/multi_step/b_Allow_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Allow_Http_Tests.robot index a34c0f4..5f72dd7 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Allow_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Allow_Http_Tests.robot @@ -64,4 +64,4 @@ SecurityPolicy-Allow-Http-00003 ${policyDict} Create Dictionary policyId=${allow_http_policyId2} policyName=SecurityPolicy-Allow-Http-00003-2 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"HTTP"} isValid=${0} appIdObjects=${HTTP_ID} log ${policyDict} ${rescode} UpdatePolicies 1 ${policyDict} v2 update - + diff --git a/01-TestCase/tsg_adc/multi_step/b_Allow_Rtp.robot b/01-TestCase/tsg_adc/multi_step/b_Allow_Rtp.robot index a3fb270..05a6aa1 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Allow_Rtp.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Allow_Rtp.robot @@ -30,6 +30,7 @@ SecurityPolicy-Allow-RTP-00005-1 Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/allowRtperror002.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Allow-RTP-00005-2 Open Connection ${voipOutListenIp} @@ -48,6 +49,7 @@ SecurityPolicy-Allow-RTP-00005-2 Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/allowRtperror002.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Allow-RTP-00005-3 Open Connection ${voipListenIp} @@ -66,6 +68,7 @@ SecurityPolicy-Allow-RTP-00005-3 Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/allowRtperror003.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections diff --git a/01-TestCase/tsg_adc/multi_step/b_Allow_Sip.robot b/01-TestCase/tsg_adc/multi_step/b_Allow_Sip.robot index 88ac168..dc791b4 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Allow_Sip.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Allow_Sip.robot @@ -25,11 +25,12 @@ SecurityPolicy-Allow-SIP-00005-1 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg1.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file allowSiperror001.log + Write sipp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 001.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/001.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Allow-SIP-00005-2 Open Connection ${voipListenIp} @@ -43,11 +44,12 @@ SecurityPolicy-Allow-SIP-00005-2 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg101.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file allowSiperror002.log + Write sipp -sf uac_1.xml -d 10000 -s test4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 002.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/002.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Allow-SIP-00005-3 Open Connection ${voipListenIp} @@ -61,11 +63,12 @@ SecurityPolicy-Allow-SIP-00005-3 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg102.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test5 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file allowSiperror003.log + Write sipp -sf uac_1.xml -d 10000 -s test5 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 003.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/003.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Allow-SIP-00005-4 Open Connection ${voipListenIp} @@ -79,11 +82,12 @@ SecurityPolicy-Allow-SIP-00005-4 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg103.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test6 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file allowSiperror004.log + Write sipp -sf uac_1.xml -d 10000 -s test6 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 004.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/004.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Allow-SIP-00005-5 Open Connection ${voipOutListenIp} @@ -97,11 +101,12 @@ SecurityPolicy-Allow-SIP-00005-5 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg104.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test7 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file allowSiperror005.log + Write sipp -sf uac_1.xml -d 10000 -s test7 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 005.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/005.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Allow-SIP-00005-6 Open Connection ${voipOutListenIp} @@ -115,11 +120,12 @@ SecurityPolicy-Allow-SIP-00005-6 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg105.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test8 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file allowSiperror006.log + Write sipp -sf uac_1.xml -d 10000 -s test8 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 006.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/006.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections diff --git a/01-TestCase/tsg_adc/multi_step/b_Deny_Dns_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Deny_Dns_Tests.robot index 40f6adb..7805595 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Deny_Dns_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Deny_Dns_Tests.robot @@ -95,7 +95,7 @@ SecurityPolicy-Deny-Dns-00005 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.facebook.com ... ELSE set variable nslookup www.facebook.com - ${stringlist} run keyword if '${systemType}'=='Windows' Create List 超时 time out + ${stringlist} run keyword if '${systemType}'=='Windows' Create List 超时 ... ELSE Create List canonical name = www.facebook.com ${rescode} SystemCommands ${commandstr} ${stringlist} Comment 关闭安全策略 diff --git a/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot index a811fb3..0ad25f9 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Deny_Http_Tests.robot @@ -117,7 +117,7 @@ SecurityPolicy-Deny-Http-00007 SecurityPolicy-Deny-Http-00008 Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00008.bat - ... ELSE set variable curl http://www.cmbchina.com/CmbQuesInfo/index.aspx + ... ELSE set variable curl -m 10 http://www.cmbchina.com/CmbQuesInfo/index.aspx ${stringlist} run keyword if '${systemType}'=='Windows' Create List timed out ... ELSE Create List Connection reset by peer ${rescode} SystemCommands ${commandstr} ${stringlist} @@ -127,7 +127,7 @@ SecurityPolicy-Deny-Http-00008 ${rescode} UpdatePolicies 1 ${policyDict} v2 update Comment 功能端验证HTTP验证 ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00008.bat - ... ELSE set variable curl http://www.cmbchina.com/CmbQuesInfo/index.aspx + ... ELSE set variable curl -m 10 http://www.cmbchina.com/CmbQuesInfo/index.aspx ${stringlist} run keyword if '${systemType}'=='Windows' Create List timed out ... ELSE Create List Connection reset by peer ${rescode} SystemCommands ${commandstr} ${stringlist} diff --git a/01-TestCase/tsg_adc/multi_step/b_Deny_Rtp.robot b/01-TestCase/tsg_adc/multi_step/b_Deny_Rtp.robot index 943349e..5a61d56 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Deny_Rtp.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Deny_Rtp.robot @@ -30,6 +30,7 @@ SecurityPolicy-Allow-RTP-00005-1 Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror005.log ${res} Read delay=5s Should Contain ${res} 500 Server Internal denySiperror + Close All Connections SecurityPolicy-Allow-RTP-00005-2 Open Connection ${voipOutListenIp} @@ -48,7 +49,7 @@ SecurityPolicy-Allow-RTP-00005-2 Write grep "408" /home/yyq/sipp-3.6.0/data/uac/denySiperror006.log ${res} Read delay=5s Should Contain ${res} 408 Request Timeout - + Close All Connections diff --git a/01-TestCase/tsg_adc/multi_step/b_Deny_Sip.robot b/01-TestCase/tsg_adc/multi_step/b_Deny_Sip.robot index 2aa59b0..0ce59d8 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Deny_Sip.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Deny_Sip.robot @@ -25,11 +25,12 @@ SecurityPolicy-Deny-SIP-00005-1 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg112.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test15 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file denySiperror001.log + Write sipp -sf uac_1.xml -d 10000 -s test15 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file 007.log sleep 10 - Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror001.log + Write grep "480" /home/yyq/sipp-3.6.0/data/uac/007.log ${res} Read delay=5s Should Contain ${res} 480 Temporarily Unavailable + Close All Connections # Write find . | xargs grep -ri "200 OK" -l # ${res} Read delay=2s # Should Contain ${res} 200 @@ -46,11 +47,12 @@ SecurityPolicy-Deny-SIP-00005-2 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg113.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test16 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file denySiperror002.log + Write sipp -sf uac_1.xml -d 10000 -s test16 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file 008.log sleep 10 - Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror002.log + Write grep "480" /home/yyq/sipp-3.6.0/data/uac/008.log ${res} Read delay=5s Should Contain ${res} 500 Server Internal denySiperror + Close All Connections SecurityPolicy-Deny-SIP-00005-3 Open Connection ${voipListenIp} @@ -64,11 +66,12 @@ SecurityPolicy-Deny-SIP-00005-3 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg114.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test17 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file denySiperror003.log + Write sipp -sf uac_1.xml -d 10000 -s test17 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file 009.log sleep 10 - Write grep "408" /home/yyq/sipp-3.6.0/data/uac/denySiperror003.log + Write grep "408" /home/yyq/sipp-3.6.0/data/uac/009.log ${res} Read delay=5s Should Contain ${res} 408 Request Timeout + Close All Connections SecurityPolicy-Deny-SIP-00005-4 Open Connection ${voipOutListenIp} @@ -82,11 +85,12 @@ SecurityPolicy-Deny-SIP-00005-4 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg115.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test18 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file denySiperror004.log + Write sipp -sf uac_1.xml -d 10000 -s test18 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file 010.log sleep 10 - Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror004.log + Write grep "480" /home/yyq/sipp-3.6.0/data/uac/010.log ${res} Read delay=5s Should Contain ${res} 480 Temporarily Unavailable + Close All Connections # Write find . | xargs grep -ri "200 OK" -l # ${res} Read delay=2s # Should Contain ${res} 200 @@ -103,11 +107,12 @@ SecurityPolicy-Deny-SIP-00005-5 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg116.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test19 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file denySiperror005.log + Write sipp -sf uac_1.xml -d 10000 -s test19 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file 011.log sleep 10 - Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror005.log + Write grep "480" /home/yyq/sipp-3.6.0/data/uac/011.log ${res} Read delay=5s Should Contain ${res} 500 Server Internal denySiperror + Close All Connections SecurityPolicy-Deny-SIP-00005-6 Open Connection ${voipOutListenIp} @@ -121,11 +126,12 @@ SecurityPolicy-Deny-SIP-00005-6 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg117.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test20 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file denySiperror006.log + Write sipp -sf uac_1.xml -d 10000 -s test20 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -denySiperror_file 012.log sleep 10 - Write grep "408" /home/yyq/sipp-3.6.0/data/uac/denySiperror006.log + Write grep "408" /home/yyq/sipp-3.6.0/data/uac/012.log ${res} Read delay=5s Should Contain ${res} 408 Request Timeout + Close All Connections diff --git a/01-TestCase/tsg_adc/multi_step/b_Monitor_Rtp.robot b/01-TestCase/tsg_adc/multi_step/b_Monitor_Rtp.robot index ce29cb9..d75f30d 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Monitor_Rtp.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Monitor_Rtp.robot @@ -30,6 +30,7 @@ SecurityPolicy-Monitor-RTP-00005-1 Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/monitorRtperror002.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Monitor-RTP-00005-2 Open Connection ${voipListenIp} @@ -48,6 +49,7 @@ SecurityPolicy-Monitor-RTP-00005-2 Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/monitorRtperror002.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Monitor-RTP-00005-3 Open Connection ${voipListenIp} @@ -66,6 +68,7 @@ SecurityPolicy-Monitor-RTP-00005-3 Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/monitorRtperror003.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections diff --git a/01-TestCase/tsg_adc/multi_step/b_Monitor_Sip.robot b/01-TestCase/tsg_adc/multi_step/b_Monitor_Sip.robot index ff8cbd0..ae7bf88 100644 --- a/01-TestCase/tsg_adc/multi_step/b_Monitor_Sip.robot +++ b/01-TestCase/tsg_adc/multi_step/b_Monitor_Sip.robot @@ -25,11 +25,12 @@ SecurityPolicy-Monitor-SIP-00005-1 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg106.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test9 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorSiperror001.log + Write sipp -sf uac_1.xml -d 10000 -s test9 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 013.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/013.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Monitor-SIP-00005-2 Open Connection ${voipListenIp} @@ -43,11 +44,12 @@ SecurityPolicy-Monitor-SIP-00005-2 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg107.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test10 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorSiperror002.log + Write sipp -sf uac_1.xml -d 10000 -s test10 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 014.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/014.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Monitor-SIP-00005-3 Open Connection ${voipListenIp} @@ -61,11 +63,12 @@ SecurityPolicy-Monitor-SIP-00005-3 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg108.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test11 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorSiperror003.log + Write sipp -sf uac_1.xml -d 10000 -s test11 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 015.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/015.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Monitor-SIP-00005-4 Open Connection ${voipListenIp} @@ -79,11 +82,12 @@ SecurityPolicy-Monitor-SIP-00005-4 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg109.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test12 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorSiperror004.log + Write sipp -sf uac_1.xml -d 10000 -s test12 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 016.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/016.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Monitor-SIP-00005-5 Open Connection ${voipOutListenIp} @@ -97,11 +101,12 @@ SecurityPolicy-Monitor-SIP-00005-5 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg110.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test13 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorSiperror005.log + Write sipp -sf uac_1.xml -d 10000 -s test13 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 017.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/017.log ${res} Read delay=5s Should Contain ${res} 404 Not here + Close All Connections SecurityPolicy-Monitor-SIP-00005-6 Open Connection ${voipOutListenIp} @@ -115,12 +120,12 @@ SecurityPolicy-Monitor-SIP-00005-6 SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg111.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 - Write sipp -sf uac_1.xml -d 10000 -s test14 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorSiperror006.log + Write sipp -sf uac_1.xml -d 10000 -s test14 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 018.log sleep 10 - Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log + Write grep "404" /home/yyq/sipp-3.6.0/data/uac/018.log ${res} Read delay=5s Should Contain ${res} 404 Not here - + Close All Connections