2020-08-18 18:02:07 +08:00
|
|
|
|
*** Variables ***
|
|
|
|
|
|
#登录类型:api | cli | ${None}(tsg mib) | 未指定,默认为ui
|
2020-12-31 10:33:34 +08:00
|
|
|
|
${loginType} ui
|
2020-08-18 18:02:07 +08:00
|
|
|
|
#执行环境是否Widonws
|
2020-12-31 10:33:34 +08:00
|
|
|
|
${systemType} api
|
2020-08-18 18:02:07 +08:00
|
|
|
|
#API配置信息
|
2021-03-05 17:28:28 +08:00
|
|
|
|
${host} 192.168.44.71
|
2020-12-31 10:33:34 +08:00
|
|
|
|
${port} 8080
|
2020-08-18 18:02:07 +08:00
|
|
|
|
${authmode} 1
|
|
|
|
|
|
${authCode} ${EMPTY}
|
|
|
|
|
|
${ldapId} 27
|
|
|
|
|
|
${version} v1
|
|
|
|
|
|
${version2} v2
|
2021-03-22 18:24:26 +08:00
|
|
|
|
${username} lyf
|
|
|
|
|
|
${password} 1
|
2020-08-18 18:02:07 +08:00
|
|
|
|
${encodePassword} ${EMPTY}
|
|
|
|
|
|
${token} ${EMPTY}
|
|
|
|
|
|
#[Documentation] 测试终端IP统一配置
|
2021-03-05 17:28:28 +08:00
|
|
|
|
${testClentIP} 192.168.32.32
|
2020-12-31 10:33:34 +08:00
|
|
|
|
${testSubscriberID} $test57
|
2020-08-18 18:02:07 +08:00
|
|
|
|
#自动化标签
|
|
|
|
|
|
${userTagIds} ${EMPTY}
|
|
|
|
|
|
#Documentation] 是否添加测试终端IP到策略统一配置,0为不添加测试终端IP,1为添加测试终端IP,默认1
|
2020-12-07 18:15:14 +08:00
|
|
|
|
${addTestClentIPFlag} 0
|
2020-09-01 15:24:15 +08:00
|
|
|
|
#测试环境是否需要把tsgui和api添加为SecurityPolicy-Allow 1为需要,默认1 ,
|
2020-12-31 10:33:34 +08:00
|
|
|
|
${addTsgUIAPIFlag} 1
|
2020-08-18 18:02:07 +08:00
|
|
|
|
#执行需要暂停时间
|
|
|
|
|
|
#策略下发后到验证需等待时间
|
|
|
|
|
|
${policyVerificationSleepSeconds} 20
|
|
|
|
|
|
#策略验证后到验证策略日志需等待时间
|
|
|
|
|
|
${policyLogVerificationSleepSeconds} 60
|
2021-03-22 18:24:26 +08:00
|
|
|
|
${path} F:/tsg-git/tsg_autotest/05-Other/
|
2020-12-31 10:33:34 +08:00
|
|
|
|
${Downloadpath} C:/Users/byb11/Downloads/
|
2020-08-18 18:02:07 +08:00
|
|
|
|
${curlbatpath} ${path}/curl/
|
|
|
|
|
|
${mailpath} ${path}/mail/
|
|
|
|
|
|
${responsePageFiles} ${path}/response_pages_files/
|
|
|
|
|
|
#全流程分阶段测试参数
|
|
|
|
|
|
#[Documentation] 当前测试部分,all为一个终端全网全流程测试,
|
|
|
|
|
|
#1为添加策略和对象测试;
|
|
|
|
|
|
#2为功能端业务验证部分测试;
|
|
|
|
|
|
#3为llog日志验证测试
|
|
|
|
|
|
${testPart} all
|
|
|
|
|
|
#UI配置的本地IP名称
|
|
|
|
|
|
${LocahIPName} ${EMPTY}
|
|
|
|
|
|
${ipType} ipv4
|
|
|
|
|
|
${ipMask} 255.255.255.255
|
|
|
|
|
|
${browserType} chrome
|
|
|
|
|
|
# Cli自动化测试变量[start]
|
|
|
|
|
|
${cliHost} 192.168.40.165
|
|
|
|
|
|
${cliUsername} tsgadmin
|
|
|
|
|
|
${cliPassword} Cli2019
|
|
|
|
|
|
${timeout} 600s
|
|
|
|
|
|
${retryInterval} 300s
|
|
|
|
|
|
@{PolicyTypes} tsg_security pxy_manipulation
|
|
|
|
|
|
@{ObjectTypes} ip url fqdn keywords subscriberid fqdn_category account
|
|
|
|
|
|
... http_signature
|
|
|
|
|
|
# Cli自动化测试变量[end]
|
|
|
|
|
|
# SNMP服务测试变量[start]
|
|
|
|
|
|
${snmpHost} 192.168.40.165
|
|
|
|
|
|
${snmpPort} 50161
|
|
|
|
|
|
${snmpConnTimeout} 5 # 默认超时时间为6s,设置timeout值后超时时间为n*6s
|
|
|
|
|
|
${snmpCommunity} public
|
|
|
|
|
|
# SNMP服务测试变量[end]
|
|
|
|
|
|
#API配置信息
|
|
|
|
|
|
${oamHost} 192.168.40.210
|
|
|
|
|
|
${oamPort} 50080
|
2020-12-07 18:15:14 +08:00
|
|
|
|
${contrast} 0.1
|
2020-12-31 10:33:34 +08:00
|
|
|
|
${editpasswd} no #设置密码过期时是否需要修改密码,no为不修改,yes为修改
|
2020-12-24 20:33:39 +08:00
|
|
|
|
# Mysql数据库连接信息
|
2021-03-05 17:28:28 +08:00
|
|
|
|
${mysqlHost} host='192.168.44.71',port=3306,user='root',passwd='bifang!@#',database='tsg-bifang'
|
2021-02-20 15:05:32 +08:00
|
|
|
|
#休息时间
|
2021-03-05 17:28:28 +08:00
|
|
|
|
${sleep_min} 1
|
2021-03-22 18:24:26 +08:00
|
|
|
|
${sleep} 3
|
2021-03-05 17:28:28 +08:00
|
|
|
|
# 隐式等待时间
|
2021-03-22 18:24:26 +08:00
|
|
|
|
${sleep_Wait} 20
|
|
|
|
|
|
#name个人标识
|
|
|
|
|
|
${tag} lyf
|