分步骤全流程b步骤c步骤VOIP协议补充

This commit is contained in:
hebingning
2021-03-22 11:11:50 +08:00
parent 55ce2e7e9a
commit a7f9259838
18 changed files with 889 additions and 1056 deletions

View File

@@ -11,12 +11,24 @@ Resource ../../../03-Variable/ApplicationID.txt
*** Test Cases ***
SecurityPolicy-Allow-Rtp-00001
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-Rtp-00001 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"RTP"} isValid=${1} appIdObjects=${RTP_ID}
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-Rtp-00001 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"RTP"} source=${objectId}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR isValid=${1} appIdObjects=${RTP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_rtp_objectId8 ${object_Ip_Id}
insert_policyId_to_file1 allow_rtp_objectId9 ${object_Ip_Id1}
insert_policyId_to_file1 allow_rtp_policyId ${policyId}
SecurityPolicy-Allow-Rtp-00002

View File

@@ -12,33 +12,124 @@ Resource ../../../03-Variable/ApplicationID.txt
SecurityPolicy-Allow-SIP-00001
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${testClentIP2} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建第3个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${testClentIP3} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建第4个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${testClentIP4} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id2} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test1
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00001 policyType=tsg_security policyDesc=autotest action=allow source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR,,${object_Ip_Id1}|TSG_SECURITY_SOURCE_ADDR,${object_Ip_Id2}|TSG_SECURITY_SOURCE_ADDR userRegion={"protocol":"SIP"} isValid=${0} appIdObjects=${SIP_ID}
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00001 policyType=tsg_security policyDesc=autotest action=allow source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_sip_policyId ${policyId}
insert_policyId_to_file1 allow_sip_objectId17 ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_objectId18 ${object_Ip_Id1}
insert_policyId_to_file1 allow_sip_objectId19 ${object_Ip_Id2}
insert_policyId_to_file1 allow_sip_objectId ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_objectId1 ${object_Account_Id1}
SecurityPolicy-Allow-SIP-00001-1
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test102
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00001 policyType=tsg_security policyDesc=autotest action=allow source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_sip_policyId16 ${policyId}
insert_policyId_to_file1 allow_sip_objectId30 ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_objectId31 ${object_Account_Id1}
SecurityPolicy-Allow-SIP-00002
SecurityPolicy-Allow-SIP-00001-2
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test6
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00001 policyType=tsg_security policyDesc=autotest action=allow source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_sip_policyId17 ${policyId}
insert_policyId_to_file1 allow_sip_objectId32 ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_objectId33 ${object_Account_Id1}
SecurityPolicy-Allow-SIP-00001-3
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test104
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00001 policyType=tsg_security policyDesc=autotest action=allow source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_sip_policyId18 ${policyId}
insert_policyId_to_file1 allow_sip_objectId34 ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_objectId35 ${object_Account_Id1}
SecurityPolicy-Allow-SIP-00001-4
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test8
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00001 policyType=tsg_security policyDesc=autotest action=allow source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_sip_policyId19 ${policyId}
insert_policyId_to_file1 allow_sip_objectId36 ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_objectId37 ${object_Account_Id1}
SecurityPolicy-Allow-SIP-000012
[Tags] calling ip port source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=192.168.50.60 port=6666 direction=0 protocol=0 isInitialize=0
@@ -195,7 +286,7 @@ SecurityPolicy-Allow-SIP-000010
insert_policyId_to_file1 allow_sip_policyId9 ${policyId}
SecurityPolicy-Allow-SIP-000011
[Tags] calling ip source,from account ,allow and monitor
[Tags] calledip des,from account ,allow and monitor
Comment 创建Account
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=$zdjzyq12voip,zdjzy*,yq12v,*12voip
${rescode} ${object_Account_Id} AddObject2 ${1} ${objectDict}
@@ -208,18 +299,24 @@ SecurityPolicy-Allow-SIP-000011
insert_policyId_to_file1 allow_sip_objectId8 ${object_Account_Id}
insert_policyId_to_file1 allow_sip_policyId10 ${policyId}
SecurityPolicy-Allow-SIP-000012
SecurityPolicy-Allow-SIP-00002
[Tags] calling ip source,to account ,allow and monitor
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建Account,若测试无源和目的的情况可以将/03-Variable/BifangApiVariable.txt中addTestClentIPFlag置为0
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=$zdjzyq12voip,zdjzy*,yq12v,*12voip
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test4
${rescode} ${object_Account_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-000012 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"SIP"} filterList=${object_Account_Id}|TSG_FIELD_SIP_TO isValid=${0} appIdObjects=${SIP_ID}
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00002 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"SIP"} source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR filterList=${object_Account_Id}|TSG_FIELD_SIP_TO isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_sip_objectId9 ${object_Account_Id}
insert_policyId_to_file1 allow_sip_objectId1201 ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_policyId11 ${policyId}
SecurityPolicy-Allow-SIP-000013
@@ -320,5 +417,25 @@ SecurityPolicy-Allow-SIP-000016
insert_policyId_to_file1 allow_sip_objectId29 ${object_Account_Id6}
insert_policyId_to_file1 allow_sip_policyId15 ${policyId}
SecurityPolicy-Allow-SIP-00003
[Tags] calling ip source,to account ,allow and monitor
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建Account,若测试无源和目的的情况可以将/03-Variable/BifangApiVariable.txt中addTestClentIPFlag置为0
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test4
${rescode} ${object_Account_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-SIP-00002 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"SIP"} source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR filterList=${object_Account_Id}|TSG_FIELD_SIP_TO isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_sip_objectId9 ${object_Account_Id}
insert_policyId_to_file1 allow_sip_objectId1201 ${object_Ip_Id}
insert_policyId_to_file1 allow_sip_policyId11 ${policyId}

View File

@@ -11,12 +11,24 @@ Resource ../../../03-Variable/ApplicationID.txt
*** Test Cases ***
SecurityPolicy-Deny-Rtp-00001
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Rtp-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"RTP","method":"drop"} isValid=${0} appIdObjects=${RTP_ID}
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Rtp-00001 policyType=tsg_security policyDesc=autotest action=deny source=${objectId}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR userRegion={"protocol":"RTP","method":"drop"} isValid=${1} appIdObjects=${RTP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 deny_rtp_objectId8 ${object_Ip_Id}
insert_policyId_to_file1 deny_rtp_objectId9 ${object_Ip_Id1}
insert_policyId_to_file1 deny_rtp_policyId ${policyId}
SecurityPolicy-Deny-Rtp-00002

View File

@@ -11,14 +11,148 @@ Resource ../../../03-Variable/ApplicationID.txt
*** Test Cases ***
SecurityPolicy-Deny-SIP-00001
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test112
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-SIP-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"SIP","method":"drop"} isValid=${1} appIdObjects=${SIP_ID}
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-SIP-00001 policyType=tsg_security policyDesc=autotest action=deny source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP","method":"block","code":"480"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId38 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId39 ${object_Account_Id1}
insert_policyId_to_file1 deny_sip_policyId ${policyId}
SecurityPolicy-Deny-SIP-00001-1
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test16
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-SIP-00001 policyType=tsg_security policyDesc=autotest action=deny source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP","method":"block","code":"500"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId40 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId41 ${object_Account_Id1}
insert_policyId_to_file1 deny_sip_policyId24 ${policyId}
SecurityPolicy-Deny-SIP-00001-2
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test114
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-SIP-00001 policyType=tsg_security policyDesc=autotest action=deny source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP","method":"drop"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId42 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId43 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId44 ${object_Account_Id1}
insert_policyId_to_file1 deny_sip_policyId25 ${policyId}
SecurityPolicy-Deny-SIP-00001-3
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test18
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-SIP-00001 policyType=tsg_security policyDesc=autotest action=deny source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP","method":"block","code":"480"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId45 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId46 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId47 ${object_Account_Id1}
insert_policyId_to_file1 deny_sip_policyId26 ${policyId}
SecurityPolicy-Deny-SIP-00001-4
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test116
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-SIP-00001 policyType=tsg_security policyDesc=autotest action=deny source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP","method":"block","code":"500"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId48 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId49 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId50 ${object_Account_Id1}
insert_policyId_to_file1 deny_sip_policyId27 ${policyId}
SecurityPolicy-Deny-SIP-00001-5
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test20
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-SIP-00001 policyType=tsg_security policyDesc=autotest action=deny source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP","method":"drop"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId51 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId52 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId53 ${object_Account_Id1}
insert_policyId_to_file1 deny_sip_policyId28 ${policyId}
SecurityPolicy-Deny-SIP-00002
[Tags] calling ip port source
Comment 创建第二个源IP

View File

@@ -11,12 +11,24 @@ Resource ../../../03-Variable/ApplicationID.txt
*** Test Cases ***
SecurityPolicy-Monitor-Rtp-00001
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Rtp-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"RTP"} isValid=${0} appIdObjects=${RTP_ID}
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Rtp-00001 policyType=tsg_security policyDesc=autotest action=monitor source=${objectId}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR userRegion={"protocol":"RTP"} isValid=${1} appIdObjects=${RTP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_rtp_objectId8 ${objectId}
insert_policyId_to_file1 monitor_rtp_objectId9 ${objectId}
insert_policyId_to_file1 monitor_rtp_policyId ${policyId}
SecurityPolicy-Monitor-Rtp-00002

View File

@@ -11,14 +11,147 @@ Resource ../../../03-Variable/ApplicationID.txt
*** Test Cases ***
SecurityPolicy-Monitor-SIP-00001
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test106
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-SIP-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"SIP"} isValid=${0} appIdObjects=${SIP_ID}
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-SIP-00001 policyType=tsg_security policyDesc=autotest action=monitor source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId23 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId24 ${object_Account_Id1}
insert_policyId_to_file1 monitor_sip_policyId ${policyId}
SecurityPolicy-Monitor-SIP-00001-1
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test10
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-SIP-00001 policyType=tsg_security policyDesc=autotest action=monitor source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId25 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId26 ${object_Account_Id1}
insert_policyId_to_file1 monitor_sip_policyId17 ${policyId}
SecurityPolicy-Monitor-SIP-00001-2
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test108
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-SIP-00001 policyType=tsg_security policyDesc=autotest action=monitor source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId27 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId28 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId29 ${object_Account_Id1}
insert_policyId_to_file1 monitor_sip_policyId18 ${policyId}
SecurityPolicy-Monitor-SIP-00001-3
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test12
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-SIP-00001 policyType=tsg_security policyDesc=autotest action=monitor source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId30 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId31 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId32 ${object_Account_Id1}
insert_policyId_to_file1 monitor_sip_policyId19 ${policyId}
SecurityPolicy-Monitor-SIP-00001-4
[Tags] calling ip source
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建from
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test110
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-SIP-00001 policyType=tsg_security policyDesc=autotest action=monitor source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_FROM userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId34 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId35 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId36 ${object_Account_Id1}
insert_policyId_to_file1 monitor_sip_policyId20 ${policyId}
SecurityPolicy-Monitor-SIP-00001-5
Comment 创建第2个源IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipCallIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id} AddObjects ${1} ${objectDict}
Comment 创建目的IP
${addItemList1} Create Dictionary isSession=endpoint ip=${voipOutListenIp} port=0-65535 direction=0 protocol=0 isInitialize=0
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=endpoint isValid=${1} addItemList=${addItemLists}
${rescode} ${object_Ip_Id1} AddObjects ${1} ${objectDict}
Comment 创建to
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=test14
${rescode} ${object_Account_Id1} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-SIP-00001 policyType=tsg_security policyDesc=autotest action=monitor source=${object_Ip_Id}|TSG_SECURITY_SOURCE_ADDR destination=${object_Ip_Id1}|TSG_SECURITY_DESTINATION_ADDR filterList=${object_Account_Id1}|TSG_FIELD_SIP_TO userRegion={"protocol":"SIP"} isValid=${1} appIdObjects=${SIP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 monitor_sip_objectId37 ${object_Ip_Id}
insert_policyId_to_file1 monitor_sip_objectId38 ${object_Ip_Id1}
insert_policyId_to_file1 monitor_sip_objectId39 ${object_Account_Id1}
insert_policyId_to_file1 monitor_sip_policyId21 ${policyId}
SecurityPolicy-Monitor-SIP-00002
[Tags] calling ip port source
Comment 创建第二个源IP

View File

@@ -13,196 +13,64 @@ Library Custometest
Library SSHLibrary
*** Test Cases ***
SecurityPolicy-Allow-RTP-00005-onlysource
Open Connection ${voipListenIp}
SecurityPolicy-Allow-RTP-00005-1
Open Connection ${voipOutListenIp}
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 cd /home/yyq/Rtpp-3.6.0/data
Write Rtpp -sf reg.xml -inf reg6.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 ${voipListenIp} -m 50 192.168.40.158:5060
Write Rtpp -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 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
Write cd /home/yyq/Rtpp-3.6.0/data/uac
Write Rtpp -sf reg.xml -inf reg104.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 allowRtperror005.log
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/allowRtperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Allow-RTP-00005-2
Open Connection ${voipListenIp}
Open Connection ${voipOutListenIp}
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
Write cd /home/yyq/Rtpp-3.6.0/data
Write Rtpp -sf reg.xml -inf reg7.csv -p 6068 -i ${voipOutListenIp} -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
Write Rtpp -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 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
Write cd /home/yyq/Rtpp-3.6.0/data/uac
Write Rtpp -sf reg.xml -inf reg105.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 allowRtperror006.log
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/allowRtperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Allow-RTP-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
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 sipp -sf uas.xml -inf reg4.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
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/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
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 -allowRtperror_file allowRtperror003.log
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
SecurityPolicy-Allow-RTP-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-RTP-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-RTP-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-RTP-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-RTP-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-RTP-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-RTP-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
Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/allowRtperror003.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
# # 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

View File

@@ -13,7 +13,7 @@ Library Custometest
Library SSHLibrary
*** Test Cases ***
SecurityPolicy-Allow-SIP-00005-onlysource
SecurityPolicy-Allow-SIP-00005-1
Open Connection ${voipListenIp}
SSHLibrary.Login root Xxg-PUB<>90
Write cd /home/yyq/sipp-3.6.0/data
@@ -25,11 +25,11 @@ SecurityPolicy-Allow-SIP-00005-onlysource
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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Allow-SIP-00005-2
Open Connection ${voipListenIp}
@@ -42,12 +42,12 @@ SecurityPolicy-Allow-SIP-00005-2
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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Allow-SIP-00005-3
Open Connection ${voipListenIp}
@@ -60,12 +60,12 @@ SecurityPolicy-Allow-SIP-00005-3
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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Allow-SIP-00005-4
Open Connection ${voipListenIp}
@@ -78,131 +78,54 @@ SecurityPolicy-Allow-SIP-00005-4
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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Allow-SIP-00005-5
Open Connection ${voipListenIp}
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 ${voipListenIp} -m 50 192.168.40.158:5060
Write sipp -sf reg.xml -inf reg6.csv -p 6068 -i ${voipOutListenIp} -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
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 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
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
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
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
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
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 10
Write sipp -sf uas.xml -inf reg2.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 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
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
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
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/allowSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
# # 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

View File

@@ -13,196 +13,49 @@ Library Custometest
Library SSHLibrary
*** Test Cases ***
SecurityPolicy-Deny-RTP-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-Deny-RTP-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-Deny-RTP-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-Deny-RTP-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-Deny-RTP-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-Deny-RTP-00005-6
SecurityPolicy-Allow-RTP-00005-1
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
Write cd /home/yyq/sipp-3.6.0/data
Write sipp -sf reg.xml -inf reg18.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
Write sipp -sf uas.xml -inf reg18.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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror005.log
${res} Read delay=5s
Should Contain ${res} 500 Server Internal denySiperror
SecurityPolicy-Deny-RTP-00005-7
SecurityPolicy-Allow-RTP-00005-2
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
Write cd /home/yyq/sipp-3.6.0/data
Write sipp -sf reg.xml -inf reg19.csv -p 6068 -i ${voipOutListenIp} -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
Write sipp -sf uas.xml -inf reg19.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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
SecurityPolicy-Deny-RTP-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-Deny-RTP-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-Deny-RTP-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
Write grep "408" /home/yyq/sipp-3.6.0/data/uac/denySiperror006.log
${res} Read delay=5s
Should Contain ${res} 408 Request Timeout
# 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
# # 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

View File

@@ -13,196 +13,125 @@ Library Custometest
Library SSHLibrary
*** Test Cases ***
SecurityPolicy-Deny-SIP-00005-onlysource
SecurityPolicy-Deny-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
Write sipp -sf reg.xml -inf reg14.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
Write sipp -sf uas.xml -inf reg14.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
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
sleep 10
Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror001.log
${res} Read delay=5s
Should Contain ${res} 480 Temporarily Unavailable
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
# ${res} Read delay=2s
# Should Contain ${res} 200
SecurityPolicy-Deny-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
Write sipp -sf reg.xml -inf reg15.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
Write sipp -sf uas.xml -inf reg15.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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror002.log
${res} Read delay=5s
Should Contain ${res} 500 Server Internal denySiperror
SecurityPolicy-Deny-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
Write sipp -sf reg.xml -inf reg16.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
Write sipp -sf uas.xml -inf reg16.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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "408" /home/yyq/sipp-3.6.0/data/uac/denySiperror003.log
${res} Read delay=5s
Should Contain ${res} 408 Request Timeout
SecurityPolicy-Deny-SIP-00005-4
Open Connection ${voipListenIp}
Open Connection ${voipOutListenIp}
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
Write sipp -sf reg.xml -inf reg17.csv -p 6068 -i ${voipOutListenIp} -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
Write sipp -sf uas.xml -inf reg17.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 hbntest3 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_msg -message_file 0002.log
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
sleep 10
Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror004.log
${res} Read delay=5s
Should Contain ${res} 480 Temporarily Unavailable
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
# ${res} Read delay=2s
# Should Contain ${res} 200
SecurityPolicy-Deny-SIP-00005-5
Open Connection ${voipListenIp}
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 ${voipListenIp} -m 50 192.168.40.158:5060
Write sipp -sf reg.xml -inf reg18.csv -p 6068 -i ${voipOutListenIp} -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
Write sipp -sf uas.xml -inf reg18.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
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
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
Write grep "480" /home/yyq/sipp-3.6.0/data/uac/denySiperror005.log
${res} Read delay=5s
Should Contain ${res} 500 Server Internal denySiperror
SecurityPolicy-Deny-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
Write cd /home/yyq/sipp-3.6.0/data
Write sipp -sf reg.xml -inf reg19.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
Write sipp -sf uas.xml -inf reg19.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
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
sleep 10
# Write find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
SecurityPolicy-Deny-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-Deny-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-Deny-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-Deny-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
Write grep "408" /home/yyq/sipp-3.6.0/data/uac/denySiperror006.log
${res} Read delay=5s
Should Contain ${res} 408 Request Timeout
# 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
# # sipp -sf uac_1.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

View File

@@ -13,196 +13,65 @@ Library Custometest
Library SSHLibrary
*** Test Cases ***
SecurityPolicy-Monitor-RTP-00005-onlysource
SecurityPolicy-Monitor-RTP-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
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 sipp -sf uas.xml -inf reg2.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
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/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
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 find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/monitorRtperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Monitor-RTP-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
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 sipp -sf uas.xml -inf reg3.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
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/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
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 find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/monitorRtperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Monitor-RTP-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
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 sipp -sf uas.xml -inf reg4.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
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/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
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 find . | xargs grep -ri "200 OK" -l
${res} Read delay=2s
Should Contain ${res} 200
SecurityPolicy-Monitor-RTP-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-Monitor-RTP-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-Monitor-RTP-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-Monitor-RTP-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-Monitor-RTP-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-Monitor-RTP-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-Monitor-RTP-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
Write grep "404" /home/yyq/Rtpp-3.6.0/data/uac/monitorRtperror003.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
# # 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

View File

@@ -1,307 +1,131 @@
# *** 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
*** 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-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
*** Test Cases ***
SecurityPolicy-Monitor-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 reg8.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
sleep 10
Write sipp -sf uas.xml -inf reg8.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
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 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
sleep 10
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
SecurityPolicy-Monitor-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 reg9.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
sleep 10
Write sipp -sf uas.xml -inf reg9.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
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 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
sleep 10
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
SecurityPolicy-Monitor-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 reg10.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
sleep 10
Write sipp -sf uas.xml -inf reg10.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
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 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
sleep 10
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
SecurityPolicy-Monitor-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 reg11.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060
sleep 10
Write sipp -sf uas.xml -inf reg11.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
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 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
sleep 10
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
SecurityPolicy-Monitor-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 reg12.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
sleep 10
Write sipp -sf uas.xml -inf reg12.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
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 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
sleep 10
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
SecurityPolicy-Monitor-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 reg13.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060
sleep 10
Write sipp -sf uas.xml -inf reg13.csv -p 6068 -i ${voipOutListenIp} -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
# # ${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
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 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
sleep 10
Write grep "404" /home/yyq/sipp-3.6.0/data/uac/monitorSiperror002.log
${res} Read delay=5s
Should Contain ${res} 404 Not here
# 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
# # 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

View File

@@ -15,8 +15,11 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Allow-Rtp-00001
${objectids} set Variable ${allow_rtp_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_rtp_objectId9}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_rtp_policyId}]}
${s} Convert to String ${allow_rtp_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Rtp-00002
${objectids} set Variable ${allow_rtp_objectId}

View File

@@ -16,14 +16,59 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Allow-Sip-00001
#删除对象
${objectids} set Variable ${allow_sip_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId18}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId19}
${objectids} set Variable ${allow_sip_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId}]}
${s} Convert to String ${allow_sip_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_from test1
SecurityPolicy-Allow-Sip-00001-1
#删除对象
${objectids} set Variable ${allow_sip_objectId30}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId31}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId16}]}
${s} Convert to String ${allow_sip_policyId16}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_from test102
SecurityPolicy-Allow-Sip-00001-2
#删除对象
${objectids} set Variable ${allow_sip_objectId32}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId33}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId17}]}
${s} Convert to String ${allow_sip_policyId17}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_to test6
SecurityPolicy-Allow-Sip-00001-3
#删除对象
${objectids} set Variable ${allow_sip_objectId34}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId35}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId18}]}
${s} Convert to String ${allow_sip_policyId18}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_from test104
SecurityPolicy-Allow-Sip-00001-4
#删除对象
${objectids} set Variable ${allow_sip_objectId36}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId37}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId19}]}
${s} Convert to String ${allow_sip_policyId19}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_from test8
SecurityPolicy-Allow-Sip-00002
#删除对象
${objectids} set Variable ${allow_sip_objectId9}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId1201}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId11}]}
${s} Convert to String ${allow_sip_policyId11}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_to test4
SecurityPolicy-Allow-Sip-000012
#删除对象
${objectids} set Variable ${allow_sip_objectId20}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId21}
@@ -32,55 +77,67 @@ SecurityPolicy-Allow-Sip-00002
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId1}]}
${s} Convert to String ${allow_sip_policyId1}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-00003
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId2}]}
${s} Convert to String ${allow_sip_policyId2}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-00004
${objectids} set Variable ${allow_sip_objectId1}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId3}]}
${s} Convert to String ${allow_sip_policyId3}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-00005
${objectids} set Variable ${allow_sip_objectId2}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId4}]}
${s} Convert to String ${allow_sip_policyId4}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-00006
${objectids} set Variable ${allow_sip_objectId3}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId5}]}
${s} Convert to String ${allow_sip_policyId5}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-00007
${objectids} set Variable ${allow_sip_objectId4}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId6}]}
${s} Convert to String ${allow_sip_policyId6}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-00008
${objectids} set Variable ${allow_sip_objectId5}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId7}]}
${s} Convert to String ${allow_sip_policyId7}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-00009
${objectids} set Variable ${allow_sip_objectId6}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId8}]}
${s} Convert to String ${allow_sip_policyId8}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-000010
${objectids} set Variable ${allow_sip_objectId7}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId9}]}
${s} Convert to String ${allow_sip_policyId9}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-000011
${objectids} set Variable ${allow_sip_objectId8}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId10}]}
${s} Convert to String ${allow_sip_policyId10}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-000012
SecurityPolicy-Allow-Sip-00002
${objectids} set Variable ${allow_sip_objectId9}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_sip_objectId1201}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId11}]}
${s} Convert to String ${allow_sip_policyId11}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} voip_calling_account test4
SecurityPolicy-Allow-Sip-000013
${objectids} set Variable ${allow_sip_objectId10}
@@ -89,6 +146,7 @@ SecurityPolicy-Allow-Sip-000013
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId12}]}
${s} Convert to String ${allow_sip_policyId12}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-000014
${objectids} set Variable ${allow_sip_objectId13}
@@ -98,10 +156,12 @@ SecurityPolicy-Allow-Sip-000014
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId13}]}
${s} Convert to String ${allow_sip_policyId13}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-000015
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId14}]}
${s} Convert to String ${allow_sip_policyId14}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow
SecurityPolicy-Allow-Sip-000016
${objectids} set Variable ${allow_sip_objectId24}
@@ -113,4 +173,5 @@ SecurityPolicy-Allow-Sip-000016
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_sip_policyId15}]}
${s} Convert to String ${allow_sip_policyId15}
#GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action allow

View File

@@ -15,8 +15,11 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Deny-Rtp-00001
${objectids} set Variable ${allow_rtp_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_rtp_objectId9}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_rtp_policyId}]}
${s} Convert to String ${deny_rtp_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action deny
SecurityPolicy-Deny-Rtp-00002
${objectids} set Variable ${deny_rtp_objectId}

View File

@@ -15,8 +15,49 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Deny-SIP-00001
${objectids} set Variable ${monitor_sip_objectId38}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId39}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_sip_policyId}]}
${s} Convert to String ${deny_sip_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_from test112
SecurityPolicy-Deny-SIP-00001-1
${objectids} set Variable ${monitor_sip_objectId40}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId41}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_sip_policyId24}]}
${s} Convert to String ${deny_sip_policyId24}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_to test16
SecurityPolicy-Deny-SIP-00001-2
${objectids} set Variable ${monitor_sip_objectId42}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId43}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId44}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_sip_policyId25}]}
${s} Convert to String ${deny_sip_policyId25}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_from test114
SecurityPolicy-Deny-SIP-00001-3
${objectids} set Variable ${monitor_sip_objectId45}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId46}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId47}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_sip_policyId26}]}
${s} Convert to String ${deny_sip_policyId26}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} sip_to test18
SecurityPolicy-Deny-SIP-00001-4
${objectids} set Variable ${monitor_sip_objectId48}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId49}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId50}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_sip_policyId27}]}
${s} Convert to String ${deny_sip_policyId27}
SecurityPolicy-Deny-SIP-00001-5
${objectids} set Variable ${monitor_sip_objectId51}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId52}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId53}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_sip_policyId28}]}
${s} Convert to String ${deny_sip_policyId28}
SecurityPolicy-Deny-SIP-00002
${objectids} set Variable ${deny_sip_objectId}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_sip_policyId1}]}

View File

@@ -15,8 +15,11 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Monitor-Rtp-00001
${objectids} set Variable ${monitor_rtp_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_rtp_objectId9}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_rtp_policyId}]}
${s} Convert to String ${monitor_rtp_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${voipCallIp} ${s} common_action monitor
SecurityPolicy-Monitor-Rtp-00002
${objectids} set Variable ${monitor_rtp_objectId}

View File

@@ -15,9 +15,45 @@ ${objectids} ${EMPTY}
*** Test Cases ***
SecurityPolicy-Monitor-SIP-00001
${objectids} set Variable ${monitor_sip_objectId23}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId24}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_sip_policyId}]}
${s} Convert to String ${monitor_sip_policyId}
SecurityPolicy-Monitor-SIP-00001-1
${objectids} set Variable ${monitor_sip_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId26}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_sip_policyId17}]}
${s} Convert to String ${monitor_sip_policyId17}
SecurityPolicy-Monitor-SIP-00001-2
${objectids} set Variable ${monitor_sip_objectId27}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId29}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_sip_policyId18}]}
${s} Convert to String ${monitor_sip_policyId18}
SecurityPolicy-Monitor-SIP-00001-3
${objectids} set Variable ${monitor_sip_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId30}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId32}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_sip_policyId19}]}
${s} Convert to String ${monitor_sip_policyId19}
SecurityPolicy-Monitor-SIP-00001-4
${objectids} set Variable ${monitor_sip_objectId34}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId35}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId36}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_sip_policyId20}]}
${s} Convert to String ${monitor_sip_policyId20}
SecurityPolicy-Monitor-SIP-00001-5
${objectids} set Variable ${monitor_sip_objectId37}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId38}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_sip_objectId39}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_sip_policyId21}]}
${s} Convert to String ${monitor_sip_policyId21}
SecurityPolicy-Monitor-SIP-00002
${objectids} set Variable ${monitor_sip_objectId}
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_sip_policyId1}]}