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_Sip.robot

308 lines
16 KiB
Plaintext
Raw Normal View History

2021-03-18 21:14:30 +08:00
# *** 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 ../../../03-Variable/ApplicationID.txt
# Resource ../../../05-Other/AllFlowCaseVariable.txt
# Library Custometest
# Library SSHLibrary
2021-03-16 09:55:53 +08:00
2021-03-18 21:14:30 +08:00
# *** Test Cases ***
# SecurityPolicy-Allow-SIP-00005-onlysource
# Open Connection ${voipListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/yyq/sipp-3.6.0/data
# Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -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/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_11.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0001.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-2
# Open Connection ${voipListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/yyq/sipp-3.6.0/data
# Write sipp -sf reg.xml -inf reg3.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg3.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/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_11.xml -d 10000 -s hbntest1 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-3
# Open Connection ${voipListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/yyq/sipp-3.6.0/data
# Write sipp -sf reg.xml -inf reg4.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg4.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/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_11.xml -d 10000 -s hbntest2 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-4
# Open Connection ${voipListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/yyq/sipp-3.6.0/data
# Write sipp -sf reg.xml -inf reg5.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg5.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/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_11.xml -d 10000 -s hbntest3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-5
# Open Connection ${voipListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/yyq/sipp-3.6.0/data
# Write sipp -sf reg.xml -inf reg6.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg6.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/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_11.xml -d 10000 -s hbntest4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# # Write sipp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 60 -m 30000
# # ${res} Execute Command find . | xargs grep -ri "200 OK" -l
# # should contain ${res} 0001.log
# # Close All Connections
# SecurityPolicy-Allow-SIP-00005-6
# Open Connection ${voipOutListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/sipp/sipp-3.6.0/50.33-uas
# Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
# Open Connection ${voipCallIp}
# 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_11.xml -d 10000 -s hbntest4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-7
# Open Connection ${voipOutListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/sipp/sipp-3.6.0/50.33-uas
# Write sipp -sf reg.xml -inf reg3.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg3.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/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_11.xml -d 10000 -s hbntest4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-8
# Open Connection ${voipOutListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/sipp/sipp-3.6.0/50.33-uas
# Write sipp -sf reg.xml -inf reg4.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg4.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/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_11.xml -d 10000 -s hbntest4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-9
# Open Connection ${voipOutListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/sipp/sipp-3.6.0/50.33-uas
# Write sipp -sf reg.xml -inf reg5.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg5.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/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_11.xml -d 10000 -s hbntest4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# SecurityPolicy-Allow-SIP-00005-10
# Open Connection ${voipOutListenIp}
# SSHLibrary.Login root Xxg-PUB<>90
# Write cd /home/sipp/sipp-3.6.0/50.33-uas
# Write sipp -sf reg.xml -inf reg6.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# sleep 10
# Write sipp -sf uas.xml -inf reg6.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/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_11.xml -d 10000 -s hbntest4 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
# sleep 10
# # Write find . | xargs grep -ri "200 OK" -l
# ${res} Read delay=2s
# Should Contain ${res} 200
# sipp -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
# # SecurityPolicy-Allow-SIP-00002
# # Open Connection ${voipOutListenIp}
# # SSHLibrary.Login root 111111
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
# # sleep 10
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
# # Open Connection ${voipCallIp}
# # 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
# # sleep 10
# # Write sipp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 60 -m 30000
# # Close All Connections
# # SecurityPolicy-Allow-SIP-00001
# # Open Connection ${voipListenIp}
# # SSHLibrary.Login root Xxg-PUB<>90
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Open Connection
# # 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 60 -m 30000
# # SecurityPolicy-Allow-SIP-00001
# # Open Connection ${voipListenIp}
# # SSHLibrary.Login root Xxg-PUB<>90
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Open Connection
# # 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 60 -m 30000
# # SecurityPolicy-Allow-SIP-00001
# # Open Connection ${voipListenIp}
# # SSHLibrary.Login root Xxg-PUB<>90
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Open Connection
# # 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 60 -m 30000
# # SecurityPolicy-Allow-SIP-00001
# # Open Connection ${voipListenIp}
# # SSHLibrary.Login root Xxg-PUB<>90
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Open Connection
# # 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 60 -m 30000
# # SecurityPolicy-Allow-SIP-00001
# # Open Connection ${voipListenIp}
# # SSHLibrary.Login root Xxg-PUB<>90
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Open Connection
# # 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 60 -m 30000
# # SecurityPolicy-Allow-SIP-00001
# # Open Connection ${voipListenIp}
# # SSHLibrary.Login root Xxg-PUB<>90
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Open Connection
# # 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 60 -m 30000
# # SecurityPolicy-Allow-SIP-00001
# # Open Connection ${voipListenIp}
# # SSHLibrary.Login root Xxg-PUB<>90
# # Write cd /home/yyq/sipp-3.6.0/data
# # Write sipp -sf reg.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Write sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
# # Open Connection
# # 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 60 -m 30000
2021-03-16 09:55:53 +08:00