*** Settings *** # Test Teardown run keywords Delete-Proxy-estimate ${PolicyName} # ... AND Delete-object-estimate ${ObjName} Force Tags tsg-ui settings TCPProxy Resource ../../../02-Keyword/tsg_ui/proxyTCPOptions/ProxyTCPOptions.robot Library OperatingSystem Resource ../../../02-Keyword/tsg_ui/Menu.robot Resource ../../../03-Variable/bifangapivariable.txt Resource ../../../02-Keyword/tsg_ui/objects/NewObjectPages.robot Resource ../../../02-Keyword/tsg_ui/objects/NewObject.robot Resource ../../../03-Variable/PolicyObjectDefault.txt *** Test Cases *** Proxy-TCP-Options001 #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}_FQDN keywordtext=*www.baidu.com #新建策略 ${TCPProxy} Create Dictionary Tcpname=${TEST NAME}_TCPName EnableTCPPassthrough=open BypassDuplicatedPacket=open ${Sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}_IP1 Ipclienttext1=192.168.40.11-192.168.40.110 Port=1-65535 ${Ip_name1} create list ${TEST NAME}_IP1 ${SourceAddIpList} Create List ${Sip1} ${SourceInfo} Create Dictionary sourceAddIpList=${SourceAddIpList} ${Dip1} Create Dictionary Sordtype=Destination Type1=Ip CreateOrSearch=Search ObjectName=${Ip_name1} ${DestinationAddIpList} Create List ${Dip1} ${DestinationInfo} Create Dictionary destinationAddIpList=${DestinationAddIpList} ${TCPClientDict} Create Dictionary ClientOverrideMSS=open ClientMSSvalue=800 ClientNoDelay=open Clientttlvalue=100 ClientKeepalive=open ClientProbeNumber=30 ... ClientIdleTime=30 ClientInterval=30 ClientUserTimeout=500 ${TCPServerDict} Create Dictionary ServerOverrideMSS=open ServerMSSvalue=800 ServerNoDelay=open Serverttlvalue=100 ServerKeepalive=open ServerProbeNumber=30 ... ServerIdleTime=30 ServerInterval=30 ServerUserTimeout=500 ${SNIname} create list ${TEST NAME}_FQDN ${Filter} create list SNI ${FilterInfo} Create Dictionary Filtercreate=${Filter} SNIname=${SNIname} UIAddProxyTCPOptions ${TCPProxy} ${TCPClientDict} ${TCPServerDict} SourceInfo=${SourceInfo} DestinationInfo=${DestinationInfo} FilterInfo=${FilterInfo} #编辑策略 ${EditTCPProxy} Create Dictionary Tcpname=${TEST NAME}_TCPName Edittcpname=${TEST NAME}_EditTCPname ${Sip2} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}_IP2 Ipclienttext1=192.168.40.11-192.168.40.200 Port=100 ${Sip3} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Search ObjectName=${Ip_name1} ${Ip_name2} create list ${TEST NAME}_IP1 ${TEST NAME}_IP2 ${EditSourceAddIpList} Create List ${Sip2} ${Sip3} ${EditSourceInfo} Create Dictionary sourceAddIpList=${EditSourceAddIpList} ${Dip2} Create Dictionary Sordtype=Destination Type1=Ip CreateOrSearch=Search ObjectName=${Ip_name2} ${EditDestinationAddIpList} Create List ${Dip2} ${EditDestinationInfo} Create Dictionary destinationAddIpList=${EditDestinationAddIpList} ${EditTCPClientDict} Create Dictionary ClientOverrideMSS=open ClientMSSvalue=801 ClientNoDelay=open Clientttlvalue=101 ClientKeepalive=open ClientProbeNumber=31 ... ClientIdleTime=31 ClientInterval=31 ClientUserTimeout=501 ${EditTCPServerDict} Create Dictionary ServerOverrideMSS=open ServerMSSvalue=801 ServerNoDelay=open Serverttlvalue=101 ServerKeepalive=open ServerProbeNumber=31 ... ServerIdleTime=31 ServerInterval=31 ServerUserTimeout=501 ${PolicyName} set variable ${EditTCPProxy}[Edittcpname] ${ObjName} Create Dictionary IP=${Ip_name2} FQDN=${SNIname} UIUpdateProxyTCPOptions ${EditTCPProxy} ${EditTCPClientDict} ${EditTCPServerDict} SourceInfo=${EditSourceInfo} DestinationInfo=${EditDestinationInfo} FilterInfo=${FilterInfo}