2020-04-01 12:42:05 +08:00
|
|
|
|
*** Variables ***
|
2020-04-13 19:29:32 +08:00
|
|
|
|
#登录类型:api | cli | ${None}(tsg mib) | 未指定,默认为ui
|
2020-04-01 12:42:05 +08:00
|
|
|
|
${loginType} api
|
2020-04-07 12:51:52 +08:00
|
|
|
|
#执行环境是否Widonws
|
|
|
|
|
|
${systemType} Windows
|
2020-04-01 12:42:05 +08:00
|
|
|
|
#API配置信息
|
2020-06-11 09:26:43 +08:00
|
|
|
|
${host} 192.168.40.120
|
2020-04-01 12:42:05 +08:00
|
|
|
|
${port} 8080
|
|
|
|
|
|
${authmode} 1
|
|
|
|
|
|
${authCode} ${EMPTY}
|
|
|
|
|
|
${ldapId} 27
|
|
|
|
|
|
${version} v1
|
2020-06-11 09:26:43 +08:00
|
|
|
|
${username} uitest
|
2020-04-01 12:42:05 +08:00
|
|
|
|
${password} 111111
|
|
|
|
|
|
${encodePassword} ${EMPTY}
|
|
|
|
|
|
${token} ${EMPTY}
|
|
|
|
|
|
#[Documentation] 测试终端IP统一配置
|
2020-06-11 09:26:43 +08:00
|
|
|
|
${testClentIP} 192.168.50.2
|
|
|
|
|
|
${testSubscriberID} $test2
|
2020-04-29 19:39:52 +08:00
|
|
|
|
#自动化标签
|
2020-04-07 12:51:52 +08:00
|
|
|
|
${userTagIds} ${EMPTY}
|
2020-04-01 12:42:05 +08:00
|
|
|
|
#Documentation] 是否添加测试终端IP到策略统一配置,0为不添加测试终端IP,1为添加测试终端IP,默认1
|
|
|
|
|
|
${addTestClentIPFlag} 1
|
|
|
|
|
|
#执行需要暂停时间
|
|
|
|
|
|
#策略下发后到验证需等待时间
|
|
|
|
|
|
${policyVerificationSleepSeconds} 20
|
|
|
|
|
|
#策略验证后到验证策略日志需等待时间
|
2020-04-07 12:51:52 +08:00
|
|
|
|
${policyLogVerificationSleepSeconds} 60
|
2020-06-11 09:26:43 +08:00
|
|
|
|
${path} E:/auto_git/eclipsegit/tsg_autotest/05-Other/
|
|
|
|
|
|
${curlbatpath} ${path}/curl/
|
|
|
|
|
|
${mailpath} ${path}/mail/
|
2020-04-29 19:39:52 +08:00
|
|
|
|
${responsePageFiles} ${path}/response_pages_files/
|
2020-04-01 12:42:05 +08:00
|
|
|
|
#全流程分阶段测试参数
|
|
|
|
|
|
#[Documentation] 当前测试部分,all为一个终端全网全流程测试,
|
|
|
|
|
|
#1为添加策略和对象测试;
|
|
|
|
|
|
#2为功能端业务验证部分测试;
|
|
|
|
|
|
#3为llog日志验证测试
|
|
|
|
|
|
${testPart} all
|
|
|
|
|
|
#UI配置的本地IP名称
|
|
|
|
|
|
${LocahIPName} ${EMPTY}
|
|
|
|
|
|
${ipType} ipv4
|
|
|
|
|
|
${ipMask} 255.255.255.255
|
|
|
|
|
|
${browserType} chrome
|
|
|
|
|
|
# Cli自动化测试变量[start]
|
2020-04-07 12:51:52 +08:00
|
|
|
|
${cliHost} 192.168.40.165
|
|
|
|
|
|
${cliUsername} tsgadmin
|
|
|
|
|
|
${cliPassword} Cli2019
|
|
|
|
|
|
${timeout} 600s
|
2020-04-29 19:39:52 +08:00
|
|
|
|
${retryInterval} 300s
|
2020-04-13 19:29:32 +08:00
|
|
|
|
@{PolicyTypes} tsg_security pxy_manipulation
|
2020-04-29 19:39:52 +08:00
|
|
|
|
@{ObjectTypes} ip url fqdn keywords subscriberid fqdn_category account
|
|
|
|
|
|
... http_signature
|
2020-04-01 12:42:05 +08:00
|
|
|
|
# Cli自动化测试变量[end]
|
2020-04-13 19:29:32 +08:00
|
|
|
|
# SNMP服务测试变量[start]
|
2020-04-29 19:39:52 +08:00
|
|
|
|
${snmpHost} 192.168.40.165
|
|
|
|
|
|
${snmpPort} 50161
|
|
|
|
|
|
${snmpConnTimeout} 5 # 默认超时时间为6s,设置timeout值后超时时间为n*6s
|
|
|
|
|
|
${snmpCommunity} public
|
2020-04-13 19:29:32 +08:00
|
|
|
|
# SNMP服务测试变量[end]
|
2020-06-11 09:26:43 +08:00
|
|
|
|
#API配置信息
|
|
|
|
|
|
${oamHost} 192.168.40.210
|
|
|
|
|
|
${oamPort} 50080
|