2020-08-18 18:02:07 +08:00
|
|
|
|
*** Settings ***
|
|
|
|
|
|
Force Tags tsg-bfapi dashboard traffic
|
|
|
|
|
|
Library Collections
|
|
|
|
|
|
Resource ../../../03-Variable/BifangApiVariable.txt
|
|
|
|
|
|
Resource ../../../02-Keyword/tsg_bfapi/dashboard_keywords/TrafficStatistics.robot
|
|
|
|
|
|
Library GetTimeLibrary
|
2020-08-21 20:02:54 +08:00
|
|
|
|
Library REST
|
|
|
|
|
|
Resource ../../../02-Keyword/tsg_bfapi/dashboard_data_compare/PolicyActionHitStatistics.robot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-18 18:02:07 +08:00
|
|
|
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
|
|
|
|
|
|
|
|
Trafffics-001
|
|
|
|
|
|
# Traffics-带宽统计 统计类型:总:bytes packets sessions bifang和report对比
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 30s
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 s
|
|
|
|
|
|
Dashboard-Traffic-new ${startTime} ${endTime} lyf-trafffics-001
|
2020-08-21 20:02:54 +08:00
|
|
|
|
|
|
|
|
|
|
NewLive-002
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
Dashboard-Traffic-new ${startTime} ${endTime} NewLive-002
|
|
|
|
|
|
|
|
|
|
|
|
SecurityEventActionHit-003
|
|
|
|
|
|
# dashboard界面 安全策略默认动作命中计数 bifang和report对比
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
#结束时间格式Y-M-D h:i:s
|
|
|
|
|
|
${Time} get current date
|
|
|
|
|
|
${endTime}= add time to date ${Time} -00:05:00
|
|
|
|
|
|
${endTime} Get Substring ${endTime} \ -4
|
|
|
|
|
|
${startTime}= add time to date ${endTime}= -01:00:00
|
|
|
|
|
|
${startTime} Get Substring ${startTime} \ -4
|
|
|
|
|
|
SecurityEventActionHit-new ${startTime} ${endTime} 300 5 SecurityEventActionHit-003 1
|
|
|
|
|
|
|
|
|
|
|
|
ClientIPTopN-new-004
|
|
|
|
|
|
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
#dashboard 源IP统计 bifang和report对比
|
|
|
|
|
|
ClientIPTopN-new ${starttime} ${endtime} sessions 10 ClientIPTopN-new-004 sessions
|
|
|
|
|
|
|
|
|
|
|
|
ServiceIPTopN-new-005
|
|
|
|
|
|
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
#dashboard 源IP统计 bifang和report对比
|
|
|
|
|
|
ServiceIPTopN-new ${starttime} ${endtime} sessions 10 ServiceIPTopN-new-005 sessions
|
|
|
|
|
|
|
|
|
|
|
|
SecurityEventpolicyidtopHit-new-006
|
|
|
|
|
|
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
#dashboard 源IP统计 bifang和report对比
|
|
|
|
|
|
SecurityEventpolicyidtopHit-new ${starttime} ${endtime} 10 SecurityEventpolicyidtopHit-006
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SubscriberIDTopN-new-007
|
|
|
|
|
|
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
#dashboard 源IP统计 bifang和report对比
|
|
|
|
|
|
SubscriberIDTopN-new ${starttime} ${endtime} sessions 10 SubscriberIDTopN-new-007 sessions
|
|
|
|
|
|
|
2020-08-18 18:02:07 +08:00
|
|
|
|
|
2020-08-21 20:02:54 +08:00
|
|
|
|
DomainsTopN-new-008
|
2020-08-18 18:02:07 +08:00
|
|
|
|
|
2020-08-21 20:02:54 +08:00
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
#dashboard 源IP统计 bifang和report对比
|
|
|
|
|
|
DomainsTopN-new ${starttime} ${endtime} sessions 10 DomainsTopN-new-008 sessions
|
|
|
|
|
|
|
|
|
|
|
|
ProxyEventActionHit-009
|
|
|
|
|
|
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
#dashboard 源IP统计 bifang和report对比
|
|
|
|
|
|
ProxyEventActionHit-new ${starttime} ${endtime} 300 5 Proxy Event allow
|
|
|
|
|
|
|
|
|
|
|
|
ProxyPolicytopHit-new-010
|
|
|
|
|
|
|
|
|
|
|
|
#开始时间
|
|
|
|
|
|
${starttime} time1 5m
|
|
|
|
|
|
#结束时间
|
|
|
|
|
|
${endtime} time1 m
|
|
|
|
|
|
#dashboard 源IP统计 bifang和report对比
|
|
|
|
|
|
ProxyPolicytopHit-new ${starttime} ${endtime} 10 Proxy Event-2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-18 18:02:07 +08:00
|
|
|
|
|
|
|
|
|
|
|