150 lines
7.7 KiB
Plaintext
150 lines
7.7 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 ../../../03-Variable/ApplicationID.txt
|
|
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
|
Library Custometest
|
|
Library SSHLibrary
|
|
|
|
*** Test Cases ***
|
|
SecurityPolicy-Allow-SIP-00005-1
|
|
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 ${policyModifySleepSeconds}
|
|
Write sipp -sf uas.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 ${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_1.xml -d 10000 -s test3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 001.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 ${policyModifySleepSeconds}
|
|
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}
|
|
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 ${policyModifySleepSeconds}
|
|
Write sipp -sf uas.xml -inf reg3.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
|
|
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 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 002.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 ${policyModifySleepSeconds}
|
|
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}
|
|
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 ${policyModifySleepSeconds}
|
|
Write sipp -sf uas.xml -inf reg4.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
|
|
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 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 003.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 ${policyModifySleepSeconds}
|
|
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}
|
|
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 ${policyModifySleepSeconds}
|
|
Write sipp -sf uas.xml -inf reg5.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
|
|
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 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 004.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 ${policyModifySleepSeconds}
|
|
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}
|
|
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 ${voipOutListenIp} -m 50 192.168.40.158:5060
|
|
sleep ${policyModifySleepSeconds}
|
|
Write sipp -sf uas.xml -inf reg6.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
|
|
Write sipp -sf uas.xml -inf reg6.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 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 005.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 ${policyModifySleepSeconds}
|
|
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}
|
|
SSHLibrary.Login root Xxg-PUB<>90
|
|
Write cd /home/yyq/sipp-3.6.0/data
|
|
Write sipp -sf reg.xml -inf reg7.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
|
|
sleep ${policyModifySleepSeconds}
|
|
Write sipp -sf uas.xml -inf reg7.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
|
|
Write sipp -sf uas.xml -inf reg7.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 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 006.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 ${policyModifySleepSeconds}
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
# # 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
|
|
|
|
|
|
|