This commit is contained in:
lyf
2020-07-21 19:21:36 +08:00
parent cad33ffd9c
commit 1dfde34716

View File

@@ -1,66 +1,64 @@
*** Variables *** *** Variables ***
#登录类型api | cli | ${None}tsg mib | 未指定默认为ui #登录类型api | cli | ${None}tsg mib | 未指定默认为ui
${loginType} api ${loginType} ui
#执行环境是否Widonws #执行环境是否Widonws
${systemType} Windows ${systemType} Windows
#API配置信息 #API配置信息
${host} 192.168.40.120 ${host} 192.168.40.120
${port} 8080 ${port} 8080
${authmode} 1 ${authmode} 1
${authCode} ${EMPTY} ${authCode} ${EMPTY}
${ldapId} 27 ${ldapId} 27
${version} v1 ${version} v1
${version2} v2 ${version2} v2
${username} autotest ${username} autotest
${password} 111111 ${password} 111111
${encodePassword} ${EMPTY} ${encodePassword} ${EMPTY}
${token} ${EMPTY} ${token} ${EMPTY}
#[Documentation] 测试终端IP统一配置 #[Documentation] 测试终端IP统一配置
${testClentIP} 192.168.41.255 ${testClentIP} 192.168.41.255
${testSubscriberID} $test2552 ${testSubscriberID} $test2552
#自动化标签 #自动化标签
${userTagIds} ${EMPTY} ${userTagIds} ${EMPTY}
#Documentation] 是否添加测试终端IP到策略统一配置0为不添加测试终端IP1为添加测试终端IP默认1 #Documentation] 是否添加测试终端IP到策略统一配置0为不添加测试终端IP1为添加测试终端IP默认1
${addTestClentIPFlag} 0 ${addTestClentIPFlag} 0
#执行需要暂停时间 #执行需要暂停时间
#策略下发后到验证需等待时间 #策略下发后到验证需等待时间
${policyVerificationSleepSeconds} 20 ${policyVerificationSleepSeconds} 20
#策略验证后到验证策略日志需等待时间 #策略验证后到验证策略日志需等待时间
${policyLogVerificationSleepSeconds} 60 ${policyLogVerificationSleepSeconds} 60
${path} E:/auto_git/eclipsegit/tsg_autotest/05-Other/ ${path} F:/tsg-git/tsg_autotest/05-Other/
${currentpath} E:/auto_git/eclipsegit/tsg_autotest/ ${currentpath} E:/auto_git/eclipsegit/tsg_autotest/
${curlbatpath} ${path}/curl/ ${curlbatpath} ${path}/curl/
${mailpath} ${path}/mail/ ${mailpath} ${path}/mail/
${responsePageFiles} ${path}/response_pages_files/ ${responsePageFiles} ${path}/response_pages_files/
#全流程分阶段测试参数 #全流程分阶段测试参数
#[Documentation] 当前测试部分all为一个终端全网全流程测试 #[Documentation] 当前测试部分all为一个终端全网全流程测试
#1为添加策略和对象测试 #1为添加策略和对象测试
#2为功能端业务验证部分测试 #2为功能端业务验证部分测试
#3为llog日志验证测试 #3为llog日志验证测试
${testPart} all ${testPart} all
#UI配置的本地IP名称 #UI配置的本地IP名称
${LocahIPName} ${EMPTY} ${LocahIPName} ${EMPTY}
${ipType} ipv4 ${ipType} ipv4
${ipMask} 255.255.255.255 ${ipMask} 255.255.255.255
${browserType} chrome ${browserType} chrome
# Cli自动化测试变量[start] # Cli自动化测试变量[start]
${cliHost} 192.168.40.165 ${cliHost} 192.168.40.165
${cliUsername} tsgadmin ${cliUsername} tsgadmin
${cliPassword} Cli2019 ${cliPassword} Cli2019
${timeout} 600s ${timeout} 600s
${retryInterval} 300s ${retryInterval} 300s
@{PolicyTypes} tsg_security pxy_manipulation @{PolicyTypes} tsg_security pxy_manipulation
@{ObjectTypes} ip url fqdn keywords subscriberid fqdn_category account @{ObjectTypes} ip url fqdn keywords subscriberid fqdn_category account
... http_signature ... http_signature
# Cli自动化测试变量[end] # Cli自动化测试变量[end]
# SNMP服务测试变量[start] # SNMP服务测试变量[start]
${snmpHost} 192.168.40.165 ${snmpHost} 192.168.40.165
${snmpPort} 50161 ${snmpPort} 50161
${snmpConnTimeout} 5 # 默认超时时间为6s设置timeout值后超时时间为n*6s ${snmpConnTimeout} 5 # 默认超时时间为6s设置timeout值后超时时间为n*6s
${snmpCommunity} public ${snmpCommunity} public
# SNMP服务测试变量[end] # SNMP服务测试变量[end]
#API配置信息 #API配置信息
${oamHost} 192.168.40.210 ${oamHost} 192.168.40.210
${oamPort} 50080 ${oamPort} 50080
#命中日志绝对值差,用于比对两种接口查询数据结果差值
${hitsAbs} 1000