This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_adc/multi_step/b_Monitor_Rtp.robot
2021-05-17 13:24:29 +06:00

80 lines
3.5 KiB
Plaintext

*** 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
Library Custometest
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
Resource ../../../05-Other/AllFlowCaseVariable.txt
Library Custometest
Library SSHLibrary
*** Test Cases ***
SecurityPolicy-Monitor-RTP-00005-1
Open Connection ${voipListenIp}
SSHLibrary.Login root Xxg-PUB<>90
Write cd /home/yyq/Rtpp-3.6.0/data
Write Rtpp -sf reg.xml -inf reg12.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
sleep 10
Write Rtpp -sf uas.xml -inf reg12.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
Open Connection ${voipCallIp}
SSHLibrary.Login root Xxg-PUB<>90
Write cd /home/yyq/Rtpp-3.6.0/data/uac
Write Rtpp -sf reg.xml -inf reg110.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060
Write Rtpp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorRtperror005.log
sleep 10
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}
SSHLibrary.Login root Xxg-PUB<>90
Write cd /home/yyq/Rtpp-3.6.0/data
Write Rtpp -sf reg.xml -inf reg13.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
sleep 10
Write Rtpp -sf uas.xml -inf reg13.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
Open Connection ${voipCallIp}
SSHLibrary.Login root Xxg-PUB<>90
Write cd /home/yyq/Rtpp-3.6.0/data/uac
Write Rtpp -sf reg.xml -inf reg111.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060
Write Rtpp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file monitorRtperror006.log
sleep 10
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}
SSHLibrary.Login root Xxg-PUB<>90
Write cd /home/yyq/Rtpp-3.6.0/data
Write Rtpp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
sleep 10
Write Rtpp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
Open Connection ${voipCallIp}
SSHLibrary.Login root Xxg-PUB<>90
Write cd /home/yyq/Rtpp-3.6.0/data/uac
Write Rtpp -sf reg.xml -inf reg1.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060
Write Rtpp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -monitorRtperror_file monitorRtperror003.log
sleep 10
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
# # Rtpp -sf uac_11.xml -d 10000 -s test3 192.168.40.158 -i 192.168.50.57 -r 1 -m 5 -trace_msg -message_file 0001.log -ringbuffer_size 10240